[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

partition table woes



I screwed up my partition table today and, like an idiot, I don't have
a record of it.  Are there any tools I can use to determine where my
partitions were?  

I have a 10GB IDE disk, hda.  I had hda1 as /, hda2 as swap and hda3
as /home.  The space was approximately evenly divided between / and
/home and 256MB swap.  Obviously / starts at sector 1.  I determined,
through trial-and-error, that / ends not before sector 748, but fsck
doesn't complain if I make the partition too big.  I don't think I
have the size quite right because when I add 256MB to that and
allocate /home I get errors about an invalid superblock.  I can run
debugfs on / and see all the data in that superblock.  There must be
some way (even looking at the raw bits on the disk) to determine where
the partitions started prior to my screw up.  It is (was) a woody
system and I have potato CDs (ie rescue disk).

Thanks for any pointers and suggestions.

-D



Reply to: