I have a corrupted hard drive and when I run parted to try and fix it, I see:
#parted /dev/sda print
Warning: /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?
[correct partition table details then printed here]
It seems to me that the information can be retrieved (since it is printed out). I would like to save that information in a repaired GPT table so that it can be used. The next time I invoke any kind of parted print, I get the same thing (which can be recovered again but is not saved).
I think (maybe for no good reason) that it needs a label -- when I invoke parted mklabel it warns me that all the data on the disk will be lost ... so I opt out of that.
I believe all the data is still on the drive uncorrupted (except some reference to that GPT stuff). I want to recover/fix this so that I can boot to FC16 again. To clarify, I do not have any vital data on this disk. I just think something must be wrong that I can not recover when the information is clearly available (either something wrong with documentation in that I can't find how to do it -- or something is lacking in the tools being unable to do something more subtle than wipe the data from the drive). Since I couldn't find out how to do this after expending some substantial amount of time, I'm hoping that I can find an answer for others to reference in the future, as well as gaining some understanding of how to use some basic system tools.
I tried parted rescue (and I have the partition data to feed it), but that apparently did not address the GPT issue. I want to recover my GPT table and get GRUB working to be able to boot again.
I don't think this stuff makes a difference, but:
I'm on an x86_64 system w/ x86_64 install.
I corrupted the disk attempting to install FreeBSD (and failing to install that as well).
Before attempting the install of FreeBSD, I checked that I could boot into FC16 (as I have done using this FC16 install several time before).
The FreeBSD install was attempted on unused disk space and failed to complete with some warning about not being able to find the (FreeBSD) swap partition.