Re: RECOVERY: partition table

Guest section DW (dwguest@win.tue.nl)
Mon, 12 Jul 1999 17:53:32 +0200 (MET DST)


From: Steve Dodd <dirk@loth.demon.co.uk>

On Sun, Jul 11, 1999 at 02:32:29PM -0300, Garst R. Reese wrote:

> It seems like this would be a nice RT option for e2fsck.
> e2fsck --backup-partition-table /dev/fd0

No point.

dd if=/dev/hda of=/dev/fd0 bs=512 count=1

Clearly you think that the partition table lives in the MBR.
But the MBR only describes the primary partitions.
The rest of the partition table (describing the logical partitions)
lives scattered over the disk.

But "/sbin/sfdisk -d /dev/hda > hda.pt" yields a partition
table in readable format that can be restored by sfdisk again.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/