HDparm shut down HDD

if you want to spin down your HDDs you could use hdparm.

to check your state use :

hdparm -C /dev/sdb

then to spin down the disk use :

hdparm -y /dev/sdb

if you want to spin down the disk after a time you could use the -S Parameter. From the man Page :

Values from 1 to 240 specify multiples of 5 seconds, yielding timeouts from 5 seconds to 20 minutes. Values from 241 to 251 specify from 1 to 11 units of 30 minutes, yielding timeouts from 30 minutes to 5.5 hours. A value of 252 signifies a timeout of 21 minutes. A value of 253 sets a vendor-defined timeout period between 8 and 12 hours, and the value 254 is reserved. 255 is interpreted as 21 minutes plus 15 seconds. Note that some older drives may have very different interpretations of these values.

hdparm -S XX /dev/sdb

For save your settings must add it to the “/etc/hdparm.conf” config:

/dev/sdc1 {
        spindown_time = 10

/dev/sdb1 {
        spindown_time = 10

don’t forget if your raid is rebuilding you cant shut down the HDDs, check this with :

cat /proc/mdstat

2 thoughts on “HDparm shut down HDD”

  1. Wonderful blog! I found it while browsing on Yahoo News.
    Do you have any tips on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get
    there! Many thanks

  2. I have read some good stuff here. Definitely
    worth bookmarking for revisiting. I surprise how a
    lot effort you set to create this sort of fantastic informative website.

Leave a Reply

Your email address will not be published.

thirteen + 17 =