Skip to main content
added 25 characters in body
Source Link
meuh
  • 54.7k
  • 2
  • 70
  • 138

Note that some drives do not implement this feature, even if the command passes. You may also need to reduce the Advanced Power Management level to 127 or less with hdparm -B 127 /dev/sda. From the man page:

-B Get/set Advanced Power Management feature... values 1 through 127 (which permit spin-down), and values 128 through 254 (which do not permit spin-down).

If all fails, you can write a small script that polls /proc/diskstats or /sys/block/sda/stat for the number of read/writes on the device and explicitly puts the drive in standby if they don't change over several minutes. See the hd-idle utility.

Note that some drives do not implement this feature, even if the command passes. You may also need to reduce the Advanced Power Management level to 127 or less with hdparm -B 127 /dev/sda. From the man page:

-B Get/set Advanced Power Management feature... values 1 through 127 (which permit spin-down), and values 128 through 254 (which do not permit spin-down).

If all fails, you can write a small script that polls /proc/diskstats for the number of read/writes on the device and explicitly puts the drive in standby if they don't change over several minutes. See the hd-idle utility.

Note that some drives do not implement this feature, even if the command passes. You may also need to reduce the Advanced Power Management level to 127 or less with hdparm -B 127 /dev/sda. From the man page:

-B Get/set Advanced Power Management feature... values 1 through 127 (which permit spin-down), and values 128 through 254 (which do not permit spin-down).

If all fails, you can write a small script that polls /proc/diskstats or /sys/block/sda/stat for the number of read/writes on the device and explicitly puts the drive in standby if they don't change over several minutes. See the hd-idle utility.

Source Link
meuh
  • 54.7k
  • 2
  • 70
  • 138

Note that some drives do not implement this feature, even if the command passes. You may also need to reduce the Advanced Power Management level to 127 or less with hdparm -B 127 /dev/sda. From the man page:

-B Get/set Advanced Power Management feature... values 1 through 127 (which permit spin-down), and values 128 through 254 (which do not permit spin-down).

If all fails, you can write a small script that polls /proc/diskstats for the number of read/writes on the device and explicitly puts the drive in standby if they don't change over several minutes. See the hd-idle utility.