Re: [RFH] Partition table recovery
From: Theodore Tso
Date: Mon Jul 23 2007 - 09:49:01 EST
On Mon, Jul 23, 2007 at 09:34:25AM +0200, Rene Herman wrote:
>
> The most profound issue is _what_ to save. I for example don't cylinder
> align my partitions (I hate wasting disk just to appease broken software)
> meaning that not all my end_head/sector values are consistent even at the
> best of times. Admittedly, I'm terminally analy retentive.
>
> Exactly. This is why I earlier said that really the only functional thing
> to do is not try to be smart and just grab things verbatim. This ofcourse
> does hinge on one's view of "good enough"...
Heh. Well, my definition of "good enough" is enough so that the C/H/S
fields are sane so that the BIOS can boot the system. So I don't care
about grabbing things verbatim since my higher priority is stuffing as
much data for as many partitions as possible into 512 bytes. Things
that require grabbing the C/H/S fields verbatim to avoid breakage I
would classify as "broken software". But, your mileage may vary. :-)
> That's not quite correct. Logicals have a start field relative to the
> encompassing extended (ie, for me always 1, for others often always 63) and
> the encompassing extended are relative not to the previous extended but to
> the level 0 extended (the one in the MBR).
This assumes that the extended partition is at the beginning of the
disk, yes? Why would anyone do that? I normally have /dev/hda1 at
the beginning of the disk, and I normally make /dev/hda4 my extended,
and place it *after* partitions at /dev/hda2, /dev/hda3, etc.
> So at most you get can 32-bit + 32-bit which could, yeah, in principle
> overflow into the 32nd bit -- it normally won't ofcourse since the start
> field, being relative, will be small, and I'd expect quite a few bits of
> software to break on this condition.
It would be interesting to see how badly modern Windows systems breaks
on this. If Windows 2000 and above works, and Linux works, then if
other things break it might be quite sufficient to consider them
"broken software" that we don't need to worry about.
> With 32-bit values (and 512-byte sectors) you can service 2TB -- anything
> above that requires something better than MS-DOS partition tables.
Well, in about 2-3 years or so we'll seeing having singleton disks
bigger 2TB. I'm not terribly sanguine about BIOS vendors and OS
providers migrating to something better by then, alas. Life is sure
going to be interesting. :-)
- Ted
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/