Spinning Down Drives

January 19, 2012

I have a mythtv box that spends most of its time idle. I want to spin down the data drive when not in use.

The command to do this is:

# hdparm -S 120 /dev/sdb

This sets the standby time for the drive to 10 minutes - after 10 minutes of not using it, it'll power down, and automatically spin up again when the drive is needed again.

To automatically run this at boot time, edit the file /etc/rc.local and add this command to the end of the file.

Tags: hdparm rc.local