over 5Gb missing from a 13.5Gb disk

Wichert Akkerman (wichert@cistron.nl)
Sun, 5 Dec 1999 16:59:58 +0100


--r5Pyd7+fXNt84Ff3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

I'm having a problem with a new IBM IDE disk I just bought. It is
a 13.5Gb disk, but I can't access more then somewhat less then 8Gb
from it..

This is what the kernel reports:

ide0: BM-DMA at 0x1440-0x1447, BIOS settings: hda:DMA, hdb:pio
hda: IBM-DJNA-371350, ATA DISK drive
hda: IBM-DJNA-371350, 12949MB w/1966kB Cache, CHS=3D40681/247/228, UDMA

hdparm seems to disagree with those numbers:

/dev/hda:

Model=3DIBM-DJNA-371350, FwRev=3DJ76OA30K, SerialNo=3DGM0GM088910
Config=3D{ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=3D16383/16/63, TrkSize=3D0, SectSize=3D0, ECCbytes=3D34
BuffType=3D3(DualPortCache), BuffSize=3D1966kB, MaxMultSect=3D16, MultSect=
=3Doff
DblWordIO=3Dno, OldPIO=3D2, DMA=3Dyes, OldDMA=3D2
CurCHS=3D16383/16/63, CurSects=3D16514064, LBA=3Dyes, LBAsects=3D26520480
tDMA=3D{min:120,rec:120}, DMA modes: mword0 mword1 mword2=20
IORDY=3Don/off, tPIO=3D{min:240,w/IORDY:120}, PIO modes: mode3 mode4=20
UDMA modes: mode0 mode1 *mode2 mode3 mode4=20

The cylinder/heads/sector count and the number of LAB sectors=20
corresponds to what is printed on the disk label. Since the kernel
gets the sizes wrong I have to enter them manually in fdisk.. no
big problem. Now I create one big partition for the disk:

Disk /dev/hda: 16 heads, 63 sectors, 16383 cylinders
Units =3D cylinders of 1008 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 16383 8257000+ 83 Linux

However the result partition is somewhat smaller than the expected
13Gb:

/dev/hda1 7.8G 20k 7.4G 0% /mnt

It doesn't matter if I enable or disable LBA addressing in the BIOS..
the effects are exactly the same.

Wichert.

--=20
________________________________________________________________
/ Generally uninteresting signature - ignore at your convenience \
| wichert@liacs.nl http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |

--r5Pyd7+fXNt84Ff3
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjhKi/4ACgkQPLiSUC+jvC0TcQCgmICN3Sq4HVqrjLl+wKo4Mh/V
+bsAn3X18BHo16U7RJ28fmbr6SvOtSKD
=u0E3
-----END PGP SIGNATURE-----

--r5Pyd7+fXNt84Ff3--

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