How to view the hard disk model and hard disk serial number

  
under Linux

hdparm -i /dev/hda

Display the relevant settings of the hard disk [root@cnscn ~]# hdparm /dev/sda/dev/sda:IO_support = 0 (default 16-bit)readonly = 0 (off)readahead = 256 (on)geometry = 19929 [number of cylinders] /255 [number of heads] /63 [number of sectors], sectors = 320173056 [total number of sectors ], start = 0 [number of starting sectors]

. Display the cylinder, head, and number of sectors of the hard disk [root@cnscn ~]# hdparm -g /dev/sda/dev/sda:geometry = 19929 [Cylinder number] /255 [Number of heads] /63 [Number of sectors], sectors = 320173056 [Total number of sectors], start = 0 [Number of starting sectors]

. Evaluate the hard disk Read efficiency [root@cnscn ~]# hdparm -t /dev/sda/dev/sda:Timing buffered disk reads: 166 MB in 3.03 seconds = 54.85 MB/sec[root@cnscn ~]# hdparm -t /dev /sda/dev/sda:Timing buffered disk reads: 160 MB in 3.01 seconds = 53.11 MB/sec[root@cnscn ~]# hdparm -t /dev/sda/dev/sda:Timing buffered disk reads: 166 MB in 3.00 Seconds = 55.31 MB/sec

. Evaluate the read efficiency of the hard disk cache [root@cnsc n ~]# hdparm -T /dev/sda/dev/sda:Timing cached reads: 3784 MB in 2.00 seconds = 1894.60 MB/sec[root@cnscn ~]# hdparm -T /dev/sda/dev/sda:Timing Cached reads: 3816 MB in 2.00 seconds = 1909.06 MB/sec[root@cnscn ~]# hdparm -T /dev/sda/dev/sda:Timing cached reads: 3728 MB in 2.00 seconds = 1866.29 MB/sec

. Detect the power management mode of the IDE hard disk [root@cnscn ~]# hdparm -C /dev/sda/dev/sda:drive state is: standby [power saving mode]. Display the default hardware specifications of the IDE hard disk [root@ Cnscn ~]# hdparm -i /dev/sda

. directly detect the hardware specifications of the hard disk [root@cnscn ~]# hdparm -I /dev/sda/dev/sda:ATA device, with non-removable mediaModel Number: Maxtor 6B160M0Serial Number: B404PTJHFirmware Revision: BANC1BM0Standards:Supported: 7 6 5 4Likely used: 7Configuration:Logical max currentcylinders 16383 16383heads 16 16sectors/track 63 63–CHS current addressable sectors: 16514064LBA user addressable sectors: 268435455LBA48 user addressable sectors: 320173056device Size with M = 1024*1024: 156334 MBytesdevic e size with M = 1000*1000: 163928 MBytes (163 GB) Capabilities: LBA, IORDY (can be disabled) Queue depth: 32Standby timer values: spec& rsquo;d by Standard, no device specific minimumR/W multiple sector transfer: Max = 16 Current = 16Advanced power management level: unknown setting (0× 0000) Recommended acoustic management value: 192, current value: 254DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6Cycle time: min=120ns recommended=120nsPIO: pio0 pio1 pio2 Pio3 pio4Cycle time: no flow control=120ns IORDY flow control=120nsCommands/features:Enabled Supported:* NOP cmd* READ BUFFER cmd* WRITE BUFFER cmd* Host Protected Area feature set* Look-ahead* Write cache* Power Management feature setSecurity Mode Feature set* SMART feature set* FLUSH CACHE EXT command* Mandatory FLUSH CACHE command* Device Configuration Overlay feature set* 48-bit Address feature set* Automatic Acoustic Management feature setSET MAX security extensionAdvanced Power Management feature set* DOWNLOAD MICROCODE cmd* General Purpose Logging feature set* SMART self-test* SMART error loggingSecurity:Master password revision code = 65534supportednot enablednot lockednot frozennot expired: security countnot supported: enhanced eraseChecksum: correct

.Detect and set IDE hard disk 32-bit I/O mode detection [root@cnscn ~]# hdparm -c /dev/sda/dev/sda:IO_support = 0 (default 16-bit) [Default 16-bit I/O] setting [root@cnscn ~] # hdparm -c 1 /dev/sda

. Detect and set the DMA mode of the IDE hard disk [root@cnscn ~]# hdparm -d /dev/sda/dev/sda:…[root@cnscn ~ ]# hdparm -d 1 /dev/sda

. Check the number of sectors pre-cached when reading a file [root@cnscn ~]# hdparm -a /dev/sda/dev/sda :readahead = 256 (on)

. Query and set the number of sectors of the hard disk multi-sector access to improve the access efficiency of the hard disk [root@cnscn ~]# hdparm -m /dev/sda[ ,null,null,3],Root@cnscn ~]# hdparm -m parameter value is an integer value such as 8 /dev/sda. Write the internal buffer data to the hard disk and clear the buffer data [root@cnscn ~]# hdparm -f /dev/Sda

Copyright © Windows knowledge All Rights Reserved