770Z using the full 14G drive

Rob Mayoff linux-thinkpad@www.bm-soft.com
Sat, 17 Jul 1999 12:50:15 -0500 (CDT)


| Where can I get more info on the patch that Mandrake applied to
| support the large drive?

I wish I knew. The name of the patch file in the Mandrake sources
is "2.2.9.uniform-ide-6.19.hotel.patch". However, I haven't been
able to figure out where they got the patch. (On the other hand, I
haven't actually asked Mandrake.) I can send it to you if you like
(it's 268K). The important chunk for us is this, which applies to
linux/drivers/block/ide-disk.c:

@@ -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 */