User Tools

Site Tools


computing:storage:disk_power

This is an old revision of the document!


Hard Disk Drive Power Management

Linux

Desktop hard drives often have fairly aggressive APM (advanced power management) settings configured by default.

Check your current drive's APM configuration (adjust device as needed):

hdparm -I /dev/sda |grep "Advanced power management level"

If you install 'desktop' hard drives in a server, you probably want to disable APM. This might give you longer drive life at the expense of slightly higher power utilization.

Here we disable APM on sda, sdb, sdc and sdd:

for x in [abcd]; do hdparm -B 255 /dev/sd$x; done

Here we add that command to rc.local:

Here we disable APM on sda, sdb, sdc and sdd at startup:

cat << EOF >> /etc/rc.local
#
# Disable power management on all hard drives
#
for x in [abcd]; do hdparm -B 255 /dev/sd$x; done

EOF
computing/storage/disk_power.1426378048.txt.gz · Last modified: 2015/03/14 18:07 by gcooper