Difference between revisions of "Hdparm"

From ArchWiki
Jump to: navigation, search
m (Information)
m (minor changes)
Line 7: Line 7:
 
  # pacman -S hdparm
 
  # pacman -S hdparm
  
== Reading speed MB/s ==
+
== Usage ==
 +
 
 +
=== Disk info ==
 +
To get information about your disk, issue:
 +
# hdparm -I /dev/sda
 +
 
 +
=== Reading speed MB/s ===
  
 
To measure how many MB/s your Hard Disk (IDE/SATA) can read:
 
To measure how many MB/s your Hard Disk (IDE/SATA) can read:
Line 17: Line 23:
 
Don't forget to ctrl+c and rm bf after that.
 
Don't forget to ctrl+c and rm bf after that.
  
== Parking your HDD ==
+
=== 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.
 
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.
Line 26: Line 32:
 
Default value is -B128. An average value could be -B199 if it's parking too often.
 
Default value is -B128. An average value could be -B199 if it's parking too often.
  
== KDE => 4.4.4 and hdparm ==
+
==Tips and tricks==
 +
=== 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:
 
To stop KDE version 4.4.4 or greater from messing around with your (manually) set hdparm values, enter:

Revision as of 22:23, 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

Usage

= Disk info

To get information about your disk, issue:

# 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.

Tips and tricks

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.