Page 1 of 1

[SOLVED] Oops. Deleted partition table and cannot remember.

Posted: Mon Dec 04, 2006 8:41 am
by Chris Corbyn
I had a disk with a 10.0GB Fat32 partition and a 70GB ext2 partition. Well, technically a fat32 partition and a linux partition with ext2 formatted on it.

Anyway, I fired up GNU parted and stupidly overwrote the partition table only having the values:

Code: Select all

root@pc-cac:/media/usbdisk/Albums# parted /dev/sdc
GNU Parted 1.7.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            

Disk /dev/sdc: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      32.3kB  10.7GB  10.7GB  primary  fat32        lba  
 2      10.7GB  80.0GB  69.3GB  primary  ext2         boot
Now I cannot put the partition table back. I can get the fat32 one back again using "mkpart 0 10.7GB" where it detects the rest but using "mkpart 10.7GB 100%" or "mkpart 10.7GB 80.0GB" it will not find my ext2 filesystem and e2fsck cannot scan it neither.

I've tried the "rescue" option in parted but it's not finding it. I had so much stuff on that partition and haven't touch the filesystem so I know it's still there but does anybody have any hints as to how to rescue or determine *actual* the start and end sectors of the filesystems?

:(

Posted: Mon Dec 04, 2006 9:00 am
by Chris Corbyn
Heh. Of all the things that fixed it (and I was fearsome of doing it) I put the disk in a windows machine and used the disk utility to do what was done with it in the first place apart from formatting. My parititions are now alive again :)