syntax:hdparm [-CFGHIIQTTVYYZ] [-a < cache partition >][-a <0 or 1>][-c <i/o mode >][-d <0 or 1>][-k <0 or 1 >][-k <0 or 1>][-m < partitions >][-n <0 or 1>][-p < PIO mode >][-p < number of partitions >][-r <0 or 1>][-s < time > ][-u <0 or 1>][-w <0 or 1>][-x < transfer mode >][device]
Supplemental Note:Hdparm can detect, display and set parameters for IDE or SCSI hard drives.
Parameters:
-a< Cache partition > Set the number of partitions that are pre-deposited into the chunk when the file is read, and if the < cache partition > option is not added, the current setting is displayed.
-a<0 or 1> to start or close the cache when the file is read.
-C<I/O mode > Set IDE32 bit I/O mode.
-C detects the power management mode of the IDE hard drive.
-d<0 or 1> settingsDiskDMA mode.
-F writes the memory buffer's data to the hard disk, and the buffer is clear.
-G Displays the magnetic track, head, magnetic region and other parameters of the hard drive.
-h displays Help.
-I displays hardware specification information for the hard disk, which is provided by the hard disk itself at boot time.
-I directly reads the hardware specifications provided by the hard drive.
-k<0 or 1> when resetting the hard drive, the settings of the-DMU parameter are preserved.
-k<0 or 1> when resetting the hard drive, the settings of the-APSWXZ parameter are preserved.
-m< number of magnetic regions > Sets the number of partitions accessed by the hard disk.
-n<0 or 1> ignores errors that occur when the hard disk is written.
-p<pio mode > Set the PIO mode of the hard drive.
-p< number of magnetic regions > Set the number of partitions on the hard drive internal cache.
-Q does not display any information on the screen when the subsequent parameters are executed.
-r<0 or 1> sets the read/write mode of the hard drive.
-s< time > Set the wait time before the hard drive enters power save mode.
-T evaluates the read efficiency of the hard drive (without disk cache).
-T evaluation of the read efficiency of the hard drive cache.
-u<0 or 1> allows other interrupt requests to be performed while the hard disk is accessed.
-V Displays the relevant settings for the drive.
-w<0 or 1> sets the drive's write cache.
-x< Transfer Mode > set the transmission mode of the hard drive.
-y causes the IDE hard drive to enter power-saving mode.
-y causes the IDE hard drive to enter sleep mode.
-Z turns off the automatic power-down function for some Seagate hard drives.
----------------------------------------
Supplemental Note: Hdparm can detect, display and set parameters for IDE or SCSI hard drives.
Test each hard disk read speed to determine the hard drive failure eg:
Execute the following command in the server-side command window
Hdparm-t/dev/hda (IDE hard disk)
Hdparm-t/dev/sda (SATA, SCSI, hard raid card array)
Hdparm-t/dev/md0 (soft RAID device)
Hdparm-tt/dev/sda
This article is from the "learning diligence for the Boat" blog, please be sure to keep this source http://bluecountry.blog.51cto.com/9602056/1705112
Hdparm Hard Drive Test