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

Both sides previous revision Previous revision
Next revision
Previous revision
computing:storage:disk_power [2015/03/14 18:07]
gcooper
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'':+Here we disable APM on ''sda'', ''sdb'', ''sdc'' and ''sdd'' at startup:
  
 <file> <file>
Line 28: Line 28:
 # Disable power management on all hard drives # Disable power management on all hard drives
 # #
-for x in [abcd]; do hdparm -B 255 /dev/sd$x; done+for x in [abcd]; do hdparm -B 255 /dev/sd\$x; done
  
 EOF EOF
 </file> </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.1426378027.txt.gz · Last modified: 2015/03/14 18:07 by gcooper