Re: [RFC] Restoring HDIO_GETGEO semantics (was: Re: workaround for BIOS / CHS stuff)

Andries Brouwer
2004-07-03T20:12:29Z

On Sun, Jul 04, 2004 at 12:45:00AM +1000, Andrew Clausen wrote:

> I was under the impression that 2.6 provides a mechanism for setting the
> HDIO_GETGEO thingy... so any program can tell Parted (and everything
> else, for that matter) what they want the geometry to be.

It is not a good idea to ask the user to tell the kernel so that the kernel
can tell parted. It is easier if one can tell parted directly.

> It contains this:
>
> echo "bios_cyl:C bios_head:H bios_sect:S" > /proc/ide/hda/settings
>
> Isn't the kernel the right place for this kind of communication to
> be happening, anyway?

No. This is stuff that is going away. It is a kludge that happens to work today.

Andries