Ubuntu 14.04
Sponsored Link

Display Hard Drive info2016/01/27

 
Display Hard Drive Infomation with hdparm command.
[1] Install hdparm.
root@dlp:~#
apt-get -y install hdparm
[2] Display HDD Infomation.
root@dlp:~#
hdparm -i /dev/sda


/dev/sda:

 Model=TOSHIBA THNSNH128GCST, FwRev=HTRAN101, SerialNo=Y3TS108TTPEY
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=250069680
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=yes: unknown setting WriteCache=enabled
 Drive conforms to: Unspecified:  ATA/ATAPI-3,4,5,6,7

 * signifies the current active mode

# display details

root@dlp:~#
hdparm -I /dev/sda


/dev/sda:

ATA device, with non-removable media
        Model Number:       TOSHIBA THNSNH128GCST
        Serial Number:      Y3TS108TTPEY
        Firmware Revision:  HTRAN101
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
        Supported: 9 8 7 6 5
        Likely used: 9
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
.....
.....
[3] Display the settings of HDD.
root@dlp:~#
hdparm /dev/sda


/dev/sda:
 multcount     = 16 (on)
 IO_support    =  1 (32-bit)
 readonly      =  0 (off)
 readahead     = 256 (on)
 geometry      = 15566/255/63, sectors = 250069680, start = 0
[4] Test the readable speed of HDD.
root@dlp:~#
hdparm -Tt /dev/sda


/dev/sda:
 Timing cached reads:   21468 MB in  2.00 seconds = 10746.50 MB/sec
 Timing buffered disk reads: 1458 MB in  3.00 seconds = 485.64 MB/sec
Matched Content