Re: suspecious ide hdparm results with 2.4.1 (and a minor capacity question)

Andries.Brouwer@cwi.nl
Thu, 8 Feb 2001 01:22:14 +0100 (MET)


>> There are two entirely different things both called LBA.
>> Neither of them wastes any space.

> You sure?

Yes. One is the hardware disk access - all disk access is LBA
these days, certainly by Linux, but if the disk is small
one can also use CHS access, when it is old one has to use CHS.

The other thing called LBA is a translation scheme.
Translation means that the BIOS will use one set of parameters
when talking to the disk, and another when talking to DOS or so.
This just means that the same sector on the disk has different
names.

But when you partition your disk using DOS fdisk, it will want
to use an integral number of "cylinders" for each partition,
and for example with 8MB cylinders you may have the bad luck
that the rounding costs you almost 8MB. But here each of the
possible translations can be lucky or unlucky.
Under Linux there is no restriction that a partition has to
start on a cylinder boundary, but an integral number of blocks
is used, so for example with 1KB blocks and an odd number of
sectors this may cost you 512 bytes.
These days one sees various (rather ugly) patches floating around
just to get at this last sector. (But they are unnecessary, I think.)

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