Re: Disk geometry from /sys

From: Francis Moreau
Date: Thu Apr 10 2008 - 15:15:29 EST


Hi,

On Thu, Apr 10, 2008 at 2:22 PM, linux-os (Dick Johnson)
<linux-os@xxxxxxxxxxxx> wrote:
>
> It becomes, as you say contentious, because with disk drives
> manufactured during the past ten or so years, anything about
> the physical geometry is fictitious. The PC BIOS continues to
> calculate C/H/S because that's what BIOS interrupt 0x13 uses
> to boot the machine. The boot code needs to know what the
> BIOS claims or else it may fail to boot. However, once Linux
> is up, there are no C/H/S unless they were invented --and
> hopefully, the same as what the BIOS claims.
>

Some bootloaders want the partition starts to be aligned on a
cylinder size boundary. Try for example to setup a disk partition
table by using parted. It almost always complains about the
the size of the parts I try to create and suggest me others. The
same stands for sfdisk except that it just gives you some
warnings.

Thanks
--
Francis
--
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/