From dhamm@itserve.com Mon Jan 25 16:48:31 1999
From: David Hamm <dhamm@itserve.com>
Disk /dev/sdb: 64 heads, 32 sectors, 14864 cylinders
Aha! Very good. You lost precisely 2^27 sectors, that is 64 GiB,
or, more relevant, 2^16 cylinders.
No surprise, since cylinders is a short.
So, the following should improve things. (Unverified, untested.)
Andries
--- hdreg.h~ Fri Jan 22 16:49:34 1999
+++ hdreg.h Mon Jan 25 23:13:06 1999
@@ -114,7 +114,7 @@
struct hd_geometry {
unsigned char heads;
unsigned char sectors;
- unsigned short cylinders;
+ unsigned long cylinders;
unsigned long start;
};
-
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/