Difference between revisions of "Hdparm"

From ArchWiki
Jump to: navigation, search
m (KDE => 4.4.4 and hdparm: # or sudo, not both)
m
Line 1: Line 1:
 
[[Category:File systems (English)]]
 
[[Category:File systems (English)]]
Hdparm is a performance tool for your Hard Disk (SATA/IDE). Be careful, it's easy to destroy your HDD with hdparm!
+
Hdparm is a performance tool for your Hard Disk (SATA/IDE). {{Warning|Be careful, it's easy to destroy your HDD with hdparm!}}
  
 
== Information ==
 
== Information ==

Revision as of 07:49, 25 April 2011

Hdparm is a performance tool for your Hard Disk (SATA/IDE).
Warning: Be careful, it's easy to destroy your HDD with hdparm!

Information

hdparm is available in the [core] repository. For SCSI devices, take sdparm.

To get information about your disk, just do:

# hdparm -I /dev/sda

Reading speed MB/s

To measure how many MB/s your Hard Disk (IDE/SATA) can read:

# hdparm -t --direct /dev/sda

Writing speed MB/s

$ sync;time bash -c "(dd if=/dev/zero of=bf bs=8k count=500000; sync)"

Don't forget to ctrl+c and rm bf after that.

Parking your HDD

If your HDD is clicking many times, the kernel is parking the reading head of the HDD. This happens often on laptops (2.5" IDE HDDs). If it happens too often, it could damage your HDD.

This will just park the reading head when you shutdown:

# hdparm -B254 /dev/sd

Default value is -B128. An average value could be -B199 if it's parking too often.

KDE => 4.4.4 and hdparm

To stop KDE version 4.4.4 or greater from messing around with your (manually) set hdparm values, enter:

# touch /etc/pm/power.d/harddrive

and you should be done.