Beyond Linux® From Scratch - Version 7.5

Chapter 12. System Utilities

Hdparm-9.43

Introduction to Hdparm

The Hdparm package contains an
utility that is useful for controlling ATA/IDE controllers and hard
drives both to increase performance and sometimes to increase
stability.

This package is known to build and work properly using an LFS-7.5
platform.

Warning

As well as being useful, incorrect usage of Hdparm can destroy your information and in
rare cases, drives. Use with caution and make sure you know what
you are doing. If in doubt, it is recommended that you leave the
default kernel parameters alone.

Installation of Hdparm

Build Hdparm by running the
following command:

make

This package does not come with a test suite.

Now, as the root user:

make install

Note

Note that by default, hdparm is installed in
/sbin as some systems may require
it during the boot process before /usr is mounted. If you wish to install
hdparm under the
/usr hierarchy, then replace the
above command with the following: