Re: Kernel & BIOS return differing head/sector geometries

Frank Cusack (fcusack@fcusack.com)
Mon, 23 Jun 2003 17:31:24 -0700


On Tue, Jun 24, 2003 at 01:39:08AM +0200, Andries Brouwer wrote:
> Linux does not use the BIOS, and does not use CHS either, so geometry is
> totally and completely irrelevant to Linux.

Is that also true for 2.2? I've had problems where large drives (60+G)
do these geometry tricks, and if I don't force the geometry to what I
want, fdisk (actually, sfdisk, dunno about fdisk) doesn't see the
entire drive.

Sometimes the BIOS doesn't report the specific geometry that the kernel
detects means "LBA" (I think this depends partly on drive firmware) and
then the kernel writes out some goofy geometry to the partition table
(I assume kernel geometry info is kept there?) and again I have problems
accessing the entire drive.

Also, if I later change the geometry, the previous partition table seems
to become incorrect. This one really confuses me, shouldn't the partition
table be indexed by sectors?

Anyway, it's been a very long time since I've worked directly on this
problem, so lots of my characterizations may be wrong. But I do know
that we force the geometry to specific values in our install, to combat
specific problems we've encountered.

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