Hello, On Tue, 01 Feb 2005, [EMAIL PROTECTED] wrote: > dd if=bootnet.img of=/dev/hda
ouch > Then, as soon as I pressed enter, it was too late to realize that I > should've typed /dev/fd0 > instead of /dev/hda. > > This server we have, thank goodness, has not crashed. The size of > bootnet.img is just 1474560 bytes and I was relieved that it was just that > size. I'm sure the partition table got messed up. the partition table, and the file allocation table of your first partition. > Here's the output of fdisk -l > > # fdisk -l /dev/hda > Disk /dev/hda: 40.0 GB, 40020664320 bytes > 255 heads, 63 sectors/track, 4865 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Device Boot Start End Blocks Id System > /dev/hda1 ? 37025 28907 2082274171+ e1 DOS access > Partition 1 does not end on cylinder boundary. > /dev/hda2 ? 205730 157209 1757737216 6 FAT16 > Partition 2 does not end on cylinder boundary. > /dev/hda3 ? 92987 13629 1510045103+ b8 BSDI swap > Partition 3 does not end on cylinder boundary. > /dev/hda4 ? 87045 154994 545800106+ 5e Unknown > Partition 4 does not end on cylinder boundary. > > Partition table entries are not in disk order those entries are crap since your table has been flushed > Could someone point out how to restore my partition table (or how to > restore the first 1.44 MB that had been overwritten on /dev/hda). the partition table could be restored using a tool like gpart but in your case it's not only a bad partition table but you've f***** up the first 1.44MB which can't be restored. At least I could not imagine how to do that. Your best bet would be to make a _full_ backup of this server while it's still running. You may get errors on / but the rest should be ok till the reboot. After you've a backup boot a live CD of your choice and repartition your HD with the old values. Create new filesystems. Restore your backup. Chroot to your new old system. install grub/lilo in MBR. Reboot. Greetings Daniel -- Don't hate the player, hate the game _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
