testdisk [&W10] thinks an MBR partition is GPT - what would be the result of repairing it?
Posted: 15 Apr 2020, 17:12
I made a stupid mistake. I accidentally converted an MBR SSD to GPT.
The MBR SSD had two NTFS partitions (and some blank overprovisioned space): one active with W7-64 on it & the other data.
Unsurprisingly, W7 would no longer boot.
So, I took the SSD out, put it in an external enclosure and connected it to another computer.
There I used the same tool to convert the disk back to MBR.
(I had not yet heard of testdisk at this point)
Then I used partition wizard first to recover the partitions, and then to rebuild the MBR.
Then I ran chkdsk to attempt to fix the disk.
I could read files on the disk again.
So I put the disk back in and tried to boot. Did not work.
Exploring many things I discovered in diskpart that the partitions were marked as hidden. So I removed that attribute.
At this point W7 would boot again. (probably I was pretty lucky)
However - in this a system I have another SSD on which I have installed W10. (I unplugged all other drives when I installed W10)
When I am in W7, I can see and access the W10 GPT SSD.
When I am in W10, I can see but cannot access the W7 MBR SSD. (originally I could, but not since this gaffe)
In W10 the W7 SSD is online, but the partitions are marked as offline.
When in W10 I use diskpart and issue the "online volume" command, diskpart says that it cannot online the volume.
But it does not say why, or how to fix it.
After some more poking around I found that the partition type field was set incorrectly for one of the partitions, not to 07-NTFS but to 06-FAT16. So I corrected that as well. Did not help.
In partition wizard in W10 again, I found that if I would hide each of the 2 W7 SSD partitions and then unhide them, they would become accessible again. Great! That is, until I reboot W10, then they go back to being inaccessible.
(BTW, I ran chkdsk on the W7 SSD partitions from both W7 and W10 and they come through clean now)
A long intro (sorry) but ... it was at this point that I discovered testdisk.
So I downloaded it and fired it up. When it gets to the point of showing what kind of partition table it has found on the W7 SSD, it says EFI GPT!!
Now that is interesting.
So the type of partition table is probably marked incorrectly (my guess).
W7 seems to be able to boot and run fine with the partition type marked incorrectly, but W10 seems to pay attention to it and mark the 2 partitions as RAW.
I stopped testdisk at this point.
My question is: what would happen if I instead I tell testdisk that it is an Intel [by which I suppose is meant MBR] disk, and presumably (I have not got that far yet) allow it to repair it?
Will that work, or will I still ruin my disk and make the OS & files completely inaccessible?
Thank you in advance
The MBR SSD had two NTFS partitions (and some blank overprovisioned space): one active with W7-64 on it & the other data.
Unsurprisingly, W7 would no longer boot.
So, I took the SSD out, put it in an external enclosure and connected it to another computer.
There I used the same tool to convert the disk back to MBR.
(I had not yet heard of testdisk at this point)
Then I used partition wizard first to recover the partitions, and then to rebuild the MBR.
Then I ran chkdsk to attempt to fix the disk.
I could read files on the disk again.
So I put the disk back in and tried to boot. Did not work.
Exploring many things I discovered in diskpart that the partitions were marked as hidden. So I removed that attribute.
At this point W7 would boot again. (probably I was pretty lucky)
However - in this a system I have another SSD on which I have installed W10. (I unplugged all other drives when I installed W10)
When I am in W7, I can see and access the W10 GPT SSD.
When I am in W10, I can see but cannot access the W7 MBR SSD. (originally I could, but not since this gaffe)
In W10 the W7 SSD is online, but the partitions are marked as offline.
When in W10 I use diskpart and issue the "online volume" command, diskpart says that it cannot online the volume.
But it does not say why, or how to fix it.
After some more poking around I found that the partition type field was set incorrectly for one of the partitions, not to 07-NTFS but to 06-FAT16. So I corrected that as well. Did not help.
In partition wizard in W10 again, I found that if I would hide each of the 2 W7 SSD partitions and then unhide them, they would become accessible again. Great! That is, until I reboot W10, then they go back to being inaccessible.
(BTW, I ran chkdsk on the W7 SSD partitions from both W7 and W10 and they come through clean now)
A long intro (sorry) but ... it was at this point that I discovered testdisk.
So I downloaded it and fired it up. When it gets to the point of showing what kind of partition table it has found on the W7 SSD, it says EFI GPT!!
Now that is interesting.
So the type of partition table is probably marked incorrectly (my guess).
W7 seems to be able to boot and run fine with the partition type marked incorrectly, but W10 seems to pay attention to it and mark the 2 partitions as RAW.
I stopped testdisk at this point.
My question is: what would happen if I instead I tell testdisk that it is an Intel [by which I suppose is meant MBR] disk, and presumably (I have not got that far yet) allow it to repair it?
Will that work, or will I still ruin my disk and make the OS & files completely inaccessible?
Thank you in advance