hdparm -y /dev/hdb hdparm -Y /dev/hdb hdparm -S 36 /dev/hdb
These commands will: cause the drive to switch to Standby mode, switch to Sleep mode, and finally set the Automatic spindown timeout. This last includes a numeric variable, whose units are blocks of 5 seconds (for example, a value of 12 would equal one minute).