[ltp] redhat-6.1 bootdisks with large disk support
Fabrice Bellet
linux-thinkpad@www.bm-soft.com
Tue, 19 Oct 1999 16:05:54 +0200
Hello,
I noticed that the standard 2.2.X kernel doesn't recognize the
14Gb thinkpad disks. Even when I add the 'hda=1826,240,63' boot time options,
my invocations of 'fdisk /dev/hda' fail (cannot open /dev/hda), although
each partition /dev/hdaX can be mounted separately. It seems to only
fail when partition table defines a partition after the 1024th cylinder
limit.
Rob Mayoff on Sat, 17 Jul 1999 12:50:15 -0500 (CDT) gave a patch to
to the kernel, that already is applied to the Mandrake sources, referenced
as 2.2.9.uniform-ide-6.19.hotel.patch :
@@ -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 */
It worked fine to me (I tried successfully pcmcia.img), and I decided to
add it to the redhat 6.1 bootdisks. You get test these patched bootdisks
at http://creatis.insa-lyon.fr/~bellet/redhat
Fabrice
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html