Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to spin down some hard-disks when they are idle. So I used hdparm package. In the /etc/hdparm.conf I added following lines:

command_line {
hdparm -Ss 241 /dev/sda }

My intention was to spin down hard disk after 30 minutes of idle time. However, my problem is, how I know for sure whether hard disk has spun down (assuming that it had exceed idle time of 30 minutes)??

Any ideas? Tips?? :) :)

share|improve this question
add comment

1 Answer 1

You can use hdparm -C /dev/sda. From man hdparm:

   -C     Check the current IDE power mode status, which will always be  one
          of  unknown  (drive  does  not  support this command), active/idle
          (normal operation), standby (low power mode, drive has spun down),
          or  sleeping  (lowest  power mode, drive is completely shut down).
          The -S, -y, -Y, and -Z options can be used to manipulate  the  IDE
          power modes.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.