Re: IDE drives with > 65535 cylinders

From: Tim Potter (Tim.Potter@anu.edu.au)
Date: Tue Jan 18 2000 - 23:49:44 EST


rvt writes:

> kernel 2.2.14 has support for large drives I believe.
> you can check this on www.linux.org.uk: release notes
>
> (itīs possible to get the 37er running with 2.2.13 but only with kernel
> patches etc.)
>
> fiddling with fdisk wonīt work.

I did mange to get it working with fdisk. You have to change the CHS
values and, in the same session, create a partition spanning the
entire disk.

> is this a SMP machine?

Sorry - I should have provided more details! How silly of me. I'm
using kernel 2.2.14 + raid-2.2.14-B1 + ide.2.2.14.20000111.patch.
It's a non-SMP machine with Promise ATA/66 adapters to hang the big
disks off.

Guest section DW writes:

> You do not reveal what kernel you use. Or what fdisk version.
>
> With a recent kernel and a recent cfdisk, all should be well.

The fdisk version is the one that comes with Redhat 6.1: fdisk-2.9w.
It has the value 65535 hard-coded into it so will need changing to
support big drives at some stage.

The same behaviour occurs with kernel 2.3.39 + ide 2.3.39.20000110.patch
i.e fdisk sees 7144 cylinders instead of 72680.

I can see two solutions:

  1) Fix fdisk to handle > 65535 cylinders and modify the
     implementation of HDIO_GETGEO to return 32-bit cylinder numbers.

  2) Get linux to translate CHS values so that they are <= 65535.

Tim.

-- 
Tim Potter, System Admin/Programmer              "This could lead to
Advanced Computational Systems CRC, RSISE Bldg      excellence, or
Australian National University, Canberra 0200,       serious injury." 
AUSTRALIA Ph: +61 2 62798813 Fax: +61 2 62798602       --They Might Be Giants

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



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:19 EST