Difference between revisions of "Hdparm"

From ArchWiki
Jump to: navigation, search
m
m (Information)
Line 2: Line 2:
 
Hdparm is a performance tool for your Hard Disk (SATA/IDE). {{Warning|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 ==
+
== Installation ==
  
hdparm is available in the [core] repository. For SCSI devices, take sdparm.
+
{{Package Official|hdparm}} can be installed from the core repository. For use with SCSI devices, install {{Package Official|sdparm}}.
 
+
  # pacman -S hdparm
To get information about your disk, just do:
+
  # hdparm -I /dev/sda
+
  
 
== Reading speed MB/s ==
 
== Reading speed MB/s ==

Revision as of 22:20, 8 July 2011

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

Installation

Template:Package Official can be installed from the core repository. For use with SCSI devices, install Template:Package Official.

# pacman -S hdparm

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.