[ltp] Thinkpad 770Z with 14.1 GB Drive.

Fabrice Bellet linux-thinkpad@www.bm-soft.com
Wed, 24 Nov 1999 16:50:39 +0100


On Wed, Nov 17, 1999 at 02:52:38PM +1000, dgeorge@au1.ibm.com wrote:
> Whenever I do fdisk -l /dev/hda, I get *nothing* returned. fdisk on its own
> says it can't open /dev/hda.
> 
> I have no problem mounting any of my partitions, and I've worked out that
> if I want to create or delete any partitions, I have to duck into NT, do
> the job then duck back to linux. Yuck :-(
> 
> Anyone got any tips?

The kernel needs to be patched for big disks support (>8Gb). This patch
is called 2.2.9.uniform-ide-6.19.hotel.patch into the Mandrakes' kernel
sources . File linux/drivers/block/ide-disk.c is concerned :

@@ -101,6 +105,15 @@
                id->cyls = lba_sects / (16 * 63); /* correct cyls */
                return 1;       /* lba_capacity is our only option */
        }
+       /*
+        * ... and at least one TLA VBC has POS instead of brain and can't
+        * tell 16 from 15.
+        */
+       if ((id->lba_capacity >= 15481935) && (id->cyls == 0x3fff) &&
+           (id->heads == 15) && (id->sectors == 63)) {
+               id->cyls = lba_sects / (15 * 63); /* correct cyls */
+               return 1;       /* lba_capacity is our only option */
+       }
        /* perform a rough sanity check on lba_sects:  within 10% is "okay" */
        if ((lba_sects - chs_sects) < _10_percent) {
                return 1;       /* lba_capacity is good */


The patch is available in Alan Cox's pre-2.2.14 kernel. So we
hopefully can think it'll be available in the next 2.2.14 release.
(ftp.kernel.org/pub/linux/kernel/people/alan/...)

Fabrice
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html