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

Source: Internet
Author: User


How to view hard disk models and hard disk serial numbers in linux hdparm-I/dev/hda display hard disk settings [root @ cnscn ~] # Hdparm/dev/sda: IO_support = 0 (default 16-bit) readonly = 0 (off) readahead = 256 (on) geometry = 19929 [number of cylinders]/255 [number of magnetic heads]/63 [number of sectors], sectors = 320173056 [total number of sectors], start = 0 [number of starting sectors]. display the number of hard disk cylinders, heads, and sectors [root @ cnscn ~] # Hdparm-g/dev/sda: geometry = 19929 [number of cylinders]/255 [number of magnetic heads]/63 [number of sectors], sectors = 320173056 [total number of Slice], start = 0 [number of starting slice]. evaluate the Read efficiency of a hard disk [root @ cnscn ~] # Hdparm-t/dev/sda: Timing buffered disk reads: 166 MB in 3.03 seconds = 54.85 MB/sec [root @ cnscn ~] # Hdparm-t/dev/sda: www.2cto.com Timing buffered disk reads: 160 MB in 3.01 seconds = 53.11 MB/sec [root @ cnscn ~] # Hdparm-t/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 @ cnscn ~] # Hdparm-T/dev/sda: Timing cached reads: 3784 MB in 2.00 seconds = 1894.60 MB/sec [root @ cnscn ~] # Hdparm-T/dev/sda: Timing cached reads: 3816 MB in 2.00 seconds = 1909.06 MB/sec [root @ cnscn ~] # Hdparm-T/dev/sda: Timing cached reads: 3728 MB in 2.00 seconds = 1866.29 MB/sec. check the power management mode of the IDE Hard Disk [root @ cnscn ~] # Hdparm-C/dev/sda: drive state is: standby [power-saving mode]. display the specified hardware specifications of the IDE Hard Disk [root @ cnscn ~] # Hdparm-I/dev/sda. Check the hardware specification of the hard disk directly [root @ cnscn ~] # Hdparm-I/dev/sda: ATA device, with non-removable mediaModel Number: Maxtor 6B160M0Serial Number: B404PTJHFirmware Revision: BANC1BM0Standards: Supported: 7 6 5 4 Likely used: 7 Configuration: Logical max currentcylinders 16383 16383 heads 16 16 sectors/track 63 63-www.2cto.com
CHS current addressable sectors: 16514064LBA user addressable sectors: 268435455LBA48 user addressable sectors: 320173056 device size with M = 1024*1024: 156334 MBytesdevice size with M = 1000*1000: 163928 MBytes (163 GB) Capabilities: LBA, IORDY (can be disabled) Queue depth: 32
Standby timer values: spec 'd by Standard, no device specific minimumR/W multiple sector transfer: Max = 16 Current = 16 Advanced power management level: unknown setting (0 × 0000) export acoustic management value: 192, current value: 254DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 * runtime time: min = 120ns runtime = 120 nsPIO: pio0 pio1 pio2 pio3 runtime time: no flow control = 120ns IORDY flow control = 120 nsCommands/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 extension www.2cto.com Advanced Power Management feature set * download microcode cmd * General Purpose Logging feature set * SMART self-test * SMART error logging
Security: Master password revision code = 65534 supportednot enablednot lockednot frozennot expired: security countnot supported: enhanced eraseChecksum: correct. detects and sets 32-bit I/O mode detection for the IDE Hard Disk [root @ cnscn ~] # Hdparm-c/dev/sda: IO_support = 0 (default 16-bit) [default 16-bit I/O] Set [root @ cnscn ~] # Hdparm-c 1/dev/sda. Check and set the DMA mode of the IDE Hard Disk [root @ cnscn ~] # Hdparm-d/dev/sda :... Www.2cto.com [root @ cnscn ~] # Hdparm-d 1/dev/sda. Check the number of slice pre-stored in the cache when reading files. [root @ cnscn ~] # Hdparm-a/dev/sda: readahead = 256 (on ). query and set the number of multiple-sector access sectors to improve the disk access efficiency [root @ cnscn ~] # Hdparm-m/dev/sda [root @ cnscn ~] # The hdparm-m parameter value is an integer such as 8/dev/sda. Write the data in the buffer to the hard disk and clear the data in the buffer [root @ cnscn ~] # Hdparm-f/dev/sda
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.