User Tools

Site Tools


computing:storage:disk_power

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
computing:storage:disk_power [2015/03/14 18:03]
gcooper created
computing:storage:disk_power [2015/03/14 18:12] (current)
gcooper
Line 21: Line 21:
 Here we add that command to ''rc.local'': Here we add that command to ''rc.local'':
  
 +Here we disable APM on ''sda'', ''sdb'', ''sdc'' and ''sdd'' at startup:
  
 +<file>
 +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
 +</file>
 +
 +:!: The backslash keeps BASH from expanding the variable into ''rc.local'' and would be omitted if entering the command at the bash prompt.
computing/storage/disk_power.1426377839.txt.gz · Last modified: 2015/03/14 18:03 by gcooper