IDE drives with > 65535 cylinders

From: Tim Potter (Tim.Potter@anu.edu.au)
Date: Tue Jan 18 2000 - 19:27:41 EST


Hello. I've got a couple of IBM 35.7 GB DeskStar IDE drives which
seem to confuse Linux and fdisk as they report >65535 cylinders when
probed.

hde: IBM-DPTA-353750, 35772MB w/1961kB Cache, CHS=72680/16/63
hdf: IBM-DPTA-353750, 35772MB w/1961kB Cache, CHS=72680/16/63
hdg: IBM-DPTA-353750, 35772MB w/1961kB Cache, CHS=72680/16/63

Now fdisk gets really confused as the HDIO_GETGEO ioctl returns
(unsigned short)drive->bios_cyl which is equal to 72680 % 65535 = 7145
cylinders. This is about 10% of the actual drive capacity.

It's possible to use the fdisk expert menu to fool around with the CHS
settings and create a usable partition, but afterwards fdisk *still*
gets things wrong with respect to the actual number of cylinders on
the drive although by a slightly different margin - 8191.

Is there any reason why there is a 32-bit limit on the number of
cylinders apart from the ATAPI spec? (-: It would be nice to have
Linux support these drives straight off.

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