Is there anyway to find out if a hard drive has spun down? I've been using the following command to spin it down after idle time:

hdparm -S 120 /dev/hdX

However im not sure it's working correctly and was wondering how to check the current power state to see if has correctly powered down.

Thanks

link|improve this question
feedback

1 Answer

You can find out the power status with the -C flag to hdparm:

hdparm -C /dev/hdX

As explained by man 8 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 sleep‐ ing (lowest power mode, drive is completely shut down). The -S, -y, -Y, and -Z flags can be used to manipulate the IDE power modes.

link|improve this answer
Caution: many people report that hdparm -C wakes up the drive and recommend using smartctl -i -n standby instead. (see serverfault.com/questions/275364/… or serverfault.com/questions/204227/when-hdd-wakes-up) – Benoit Blanchon Feb 26 at 10:16
feedback

Your Answer

 
or
required, but never shown

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