$ cat /etc/pm/sleep.d/50-hdparm_pm #/bin/dash if [ "$1" == "resume" ] || [ "$1" == "thaw" ]; then hdparm -B 254 /dev/sda > /dev/null fi