Retrieving and setting hard drive parameters with hdparm

Disk Inspector

Article from Issue 145/2012
Author(s):

Hdparm is the tool to use when it comes to tuning your hard disk or DVD drive, but it can also measure read speed, deliver valuable information about the device, change important drive settings, and even erase SSDs securely.

In 2005, Canadian Mark Lord developed the small hdparm utility to test Linux drivers for IDE hard drives. Since then, the program has developed into a valuable tool for diagnosis and tuning of hard drives. For example, it tests the speed of hard drives and solid state disks, puts devices to sleep, and turns the energy-saving mode on or off. With modern devices, it can activate the acoustic mode and clean up SSDs. Before your first experiments with hdparm, you should read about safety concerns in the “Warning!” box.

Need for Communication

All reasonably new distributions already include hdparm in the basic installation. You only need to open a terminal and call up

hdparm ‑I /dev/sda | more

as administrator.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • hdparm and DMA

    A simple command helps you switch on the afterburner for your hard disks and drives. hdparm improves the performance of your storage devices.

  • Ask Klaus!

    Klaus Knopper answers your Linux questions.

  • Hdparm Goes 8.1

    Moving from version 7.7 to 8.1 gives users of the hard disk tool new options and new information displays.

  • TKperf

    TKperf combines several SSD tools under one roof. You can use TKperf to investigate SSDs before deployment and even to measure performance.

  • Ask Klaus!

    Klaus Knopper is the creator of Knoppix and co-founder of LinuxTag expo. He currently works as a programmer, teacher, and consultant. If you have a configuration problem, or if you just want to learn more about how Linux works, send your questions to: klaus@linux-magazine.com

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News