#-----------------------------------------------------------------# ########## Content: short linux hints ############################# #-----------------------------------------------------------------# # all by scan@hypertext.at; no (c) #-----------------------------------------------------------------# # per hint # # Command: # Output example: # References: #-----------------------------------------------------------------# # INDEX # ## get harddisk information # ################################################################### ## ISSUE: ## get harddisk information ## # Command: $ hdparm /dev/hda # Output example: /dev/hda: multcount = 16 (on) IO_support = 0 (default 16-bit) unmaskirq = 0 (off) using_dma = 1 (on) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) geometry = 65535/16/63, sectors = 80026361856, start = 0 # References: $ man hdparm #-----------------------------------------------------------------# # Command: $ hdparm -i /dev/hda # Output example: /dev/hda: Model=FUJITSU MHT2080AH, FwRev=006C, SerialNo=NP00T44259EW Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156301488 IORDY=yes, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a: * signifies the current active mode # References: $ man hdparm #-----------------------------------------------------------------# # Command: $ hdparm -I /dev/hda 2>&1 | less # Output example: /dev/hda: ATA device, with non-removable media Model Number: FUJITSU MHT2080AH Serial Number: NP00T44259EW Firmware Revision: 006C Standards: Used: ATA/ATAPI-6 T13 1410D revision 3a Supported: 6 5 4 3 Configuration: Logical max current cylinders 16383 16383 heads 16 16 sectors/track 63 63 -- CHS current addressable sectors: 16514064 LBA user addressable sectors: 156301488 device size with M = 1024*1024: 76319 MBytes device size with M = 1000*1000: 80026 MBytes (80 GB) Capabilities: LBA, IORDY(cannot be disabled) bytes avail on r/w long: 4 Queue depth: 1 Standby timer values: spec'd by Standard, no device specific minimum R/W multiple sector transfer: Max = 16 Current = 16 Advanced power management level: 128 (0x80) Recommended acoustic management value: 254, current value: 254 DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=240ns IORDY flow control=120ns Commands/features: Enabled Supported: * 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 * Mandatory FLUSH CACHE command * Device Configuration Overlay feature set * Automatic Acoustic Management feature set * SET MAX security extension Power-Up In Standby feature set * Advanced Power Management feature set * DOWNLOAD MICROCODE cmd * SMART self-test * SMART error logging Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count not supported: enhanced erase 80min for SECURITY ERASE UNIT. HW reset results: CBLID- above Vih Device num = 0 determined by the jumper Checksum: correct # References: $ man hdparm #-----------------------------------------------------------------# # Command: $ hdparm -Tt /dev/hda # Output example: /dev/hda: Timing cached reads: 3108 MB in 2.00 seconds = 1553.90 MB/sec Timing buffered disk reads: 100 MB in 3.00 seconds = 33.33 MB/sec # References: $ man hdparm #-----------------------------------------------------------------# ## eof