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

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

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

Post 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?

:(
Last edited by Chris Corbyn on Mon Dec 04, 2006 9:00 am, edited 1 time in total.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 :)
Post Reply