I know this isn't quite a hardware question, more low-level software, but this forum seemed the right level of techiness to ask
. Anyway, I've managed to bugger my partition table. This was either: 1 when i deleted my /boot
(don't worry, i recovered it) 2. When i hard rebooted mid-load
(I wanted to check my /boot fix had worked, and linux was very early on in the boot process) or 3. when i started to install gentoo.
I think 1 is most likely, but to be honest i don't really care why it happened. This is the result:
Out of the following:
/etc/fstab (still accessible)
/dev/hda7 swap swap defaults 0 0
/dev/hda1 / ext2 defaults 1 1
/dev/hda9 /usr ext2 defaults 1 2
/dev/hda10 /boot ext2 defaults 1 2
/dev/hda5 /home ext2 defaults 1 2
/dev/hda6 /var ext2 defaults 1 2
/dev/hda8 /stuff ext2 defaults 1 0
with /dev/hda3 being spare to load other distros
1 3 and 5 are accessible, so i can boot into slack but do little else (using knoppix right now).
I downloaded www.planetmirror.com/pub/gpart/
and did the scan. This confirmed what i feared, a corrupt partition table but did\t correctly find my partitions. However, it struck me i have a printout of fdisk -l from YESTERDAY (prelimary to installing gentoo) ao I have the geometry and all.
I wondered if i can use fdisk and manually repair the partition table. Would it just be a case of adding the partitions in exactly the same place and printing the table? Might i salvage some stuff? I wanted to check here first (and i did search, but i think theses matters are handled best on a case to case basis) to see if this would be a good idea, cos i'm fed up of finding my partition ideas are bad the hard way.
Cheers for any help