lkml.org 
[lkml]   [1999]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectover 5Gb missing from a 13.5Gb disk

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=40681/247/228, UDMA

hdparm seems to disagree with those numbers:

/dev/hda:

Model=IBM-DJNA-371350, FwRev=J76OA30K, SerialNo=GM0GM088910
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=34
BuffType=3(DualPortCache), BuffSize=1966kB, MaxMultSect=16, MultSect=off
DblWordIO=no, OldPIO=2, DMA=yes, OldDMA=2
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=26520480
tDMA={min:120,rec:120}, DMA modes: mword0 mword1 mword2
IORDY=on/off, tPIO={min:240,w/IORDY:120}, PIO modes: mode3 mode4
UDMA modes: mode0 mode1 *mode2 mode3 mode4
The cylinder/heads/sector count and the number of LAB sectors
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 = 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.

--
________________________________________________________________
/ 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 |[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:55    [from the cache]
©2003-2011 Jasper Spaans