Author Topic: Drive size... data reported from hdparm  (Read 5125 times)

0 Members and 1 Guest are viewing this topic.

Offline judb

  • Administrator
  • Veteran.
  • *****
  • Posts: 1329
  • ph4t l3wtz
Drive size... data reported from hdparm
« on: April 04, 2005, 12:27:24 am »
Hey fellas..

I am looking at the numbers that hdparm / fdisk give me back under linux and this 10 gig drive reports the LBA mode in one and some other mode in another.

http://www3.toshiba.co.jp/storage/english/spec/hdd/mk1017.htm

says
16,383 cylinders
16 heads
63 Sectors per Track
19,640,880 total sectors

but fdisk shows
9590 Cylinders
64 heads
32 sectors per track
19,640,880 total sectors.

Anyone know which one is right?
I did a quick search and didnt see anything.


Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Re: Drive size... data reported from hdparm
« Reply #1 on: April 04, 2005, 12:45:53 am »
I would expect that hdparm is right, and fdisk is doing LBA conversion....

here's my hdparm info


/dev/hda:

Model=PhatNoise DMS 10GB, FwRev=U1.14 F, SerialNo=52D92359T
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=46
BuffType=unknown, BuffSize=0kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=19640880
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes:  pio0 pio1 pio2 pio3 pio4
DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 *udma4
AdvancedPM=yes: unknown setting WriteCache=disabled
Drive conforms to: device does not report version:

* signifies the current active mode


ATA device, with non-removable media
Model Number:       PhatNoise DMS 10GB                      
Serial Number:      52D92359T          
Firmware Revision:  U1.14 F
Standards:
Supported: 5 4 3 2
Likely used: 6
Configuration:
Logicalmaxcurrent
cylinders1638316383
heads1616
sectors/track6363
--
CHS current addressable sectors:   16514064
LBA    user addressable sectors:   19640880
device size with M = 1024*1024:        9590 MBytes
device size with M = 1000*1000:       10056 MBytes (10 GB)
Capabilities:
LBA, IORDY(can be disabled)
bytes avail on r/w long: 46Queue depth: 1
Standby timer values: spec'd by Vendor, with device specific minimum
R/W multiple sector transfer: Max = 16Current = 16
Advanced power management level: unknown setting (0x0080)
DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4
    Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
    Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
EnabledSupported:
  *NOP cmd
  *READ BUFFER cmd
  *WRITE BUFFER cmd
  *Host Protected Area feature set
  *Look-ahead
Write cache
  *Power Management feature set
Security Mode feature set
  *SMART feature set
SET MAX security extension
  *Advanced Power Management feature set
Security:
Master password revision code = 65534
supported
notenabled
notlocked
frozen
notexpired: security count
notsupported: enhanced erase
16min for SECURITY ERASE UNIT.
HW reset results:
CBLID- above Vih
Device num = 0 determined by the jumper
Checksum: correct


and fdisk:


Disk /dev/hda: 10.0 GB, 10056130560 bytes
64 heads, 32 sectors/track, 9590 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

  Device Boot      Start         End      Blocks   Id  System
/dev/hda1               2         261      266240    b  W95 FAT32
/dev/hda2             262        9590     9552896    5  Extended
/dev/hda5             262        9590     9552895+   b  W95 FAT32