This shows you the differences between two versions of the page.
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 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 | ||
</ | </ | ||
+ | :!: The backslash keeps BASH from expanding the variable into '' |