I'm dual booting Ubuntu 13.10 beside Windows 8, and was having some problems with the installer not detecting Windows 8. I followed the suggestions in this answer: https://askubuntu.com/a/287862/118240 to use gdisk to zap the GPT table. After that, I could not boot into Windows 8; the boot goes directly to the USB drive with Ubuntu. Anyways, fortunately I had created a backup with the gdisk 'b' command. I restored the backup with 'r', 'l', and 'w'.
Now, upon loading, GParted shows the error: /dev/sda contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted - possibly by a program that doesn't understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table. Is this a GPT partition table?
When I click yes, GParted shows my partitions, but with red errors that make me nervous:
Running sudo gdisk /dev/sda
shows this:
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: present
Found valid GPT with corrupt MBR; using GPT and will write new protective MBR on save.
I don't have proof, but I'm 95% sure that before I zapped the GPT table, MBR said something other than not present
. And I'm 50% sure it wasn't present
, but I can't remember what (I'll probably remember in a few days when this is solved...).
I don't have any important data on Windows (I just purchased the computer), but I'd rather not have to re-install it (I'm don't know if I'd have to re-purchase Windows 8, as it shipped already installed on the computer and I don't have a CD?).
Anyways, can I safely write a new protective MBR with gdisk? Will that preserve my partitions, or have I done too much damage already? If not, are there any steps I can take?
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
This doesn't say anything about MBR. Why would it be writing GPT data? Am I on the right track? – Joel Dec 05 '13 at 05:05