PDA

View Full Version : [ubuntu] Partition table completely gone



bgdorazio
October 19th, 2010, 03:40 AM
I Inadvertently deleted a good partition while trying to clean up after a 10.10 update install failure that left grub broken and prevented me from using my working Linux partition. (installed 10.4 in a new partition)

Used testdisk to restore the deleted partition which resulted in the entire partition table being wiped out.
All partions are gone, win Xp, 2 Linux partitions, 2 Linux swap partitions.

Testdisk deep search does see the partitions but will not recreate the table.
Is their anything I am doing wrong in Testdisk that it won't write the table?

Nothing else has been written to the disk.

I very carefully recorded the partition information - is their any way to manually enter?


Any help would be greatly appreciated.

oldfred
October 19th, 2010, 05:20 AM
You can totally use fdisk or sfdisk but I am no expert.

What does this do. If you see no partitions do not write.

sudo fdisk /dev/sda
x # enter expert mode
f # fix partition table
r # return
p # to print
v # to verify partition
if ok
w # write the changes to disk