The command to spin down the hard disk after 50 seconds (5x10) being idle:
/sbin/hdparm -S10 /dev/hda
View the discussion thread.