[Off topic] Trashed NT disk
Yar Tikhiy
yar at freebsd.org
Thu Jul 24 09:25:14 PDT 2003
On Thu, Jul 24, 2003 at 07:58:18PM +0400, Yar Tikhiy wrote:
>
> On the dmesg vs. BIOS issue: To a programmer's view, a modern drive
> is just a linear array of sectors. However, software has stuck to
> the cylinder/head/sector (CHS) way of addressing. So drives report
> some fictitious geometry, with traditional IDE values for the number
> of heads and sectors per track at 16 (or perhaps 15) and 63,
> correspondingly.
BTW, the nature of these numbers seems to be as follows:
16 heads is a limitation of the ATA (IDE) protocol.
63 sectors is a limitation of the old BIOS interface.
> Now BIOS seems to be the only consumer of the old, CHS, fields in
> MBR -- the rest of software uses the logical offset and size fields
> that were introduced to the MBR format at some moment. That's why
> it's the BIOS geometry that you should care about when partitioning
> a drive.
After some reading, I'm afraid that the "logical" (or "relative")
fields were present in the original MBR format. However they had
been miscalculated by MS-DOS fdisk and not used by anything else
until drives grew large enough to really reqire them for partitioning.
--
Yar
More information about the freebsd-fs
mailing list