After I installed Ubuntu 12.04 Precise Pangolin my disk kept spinning down and up all the time. I needed to add the following to /etc/hdparm.conf:
/dev/sda {
apm_battery = 128
}
What is suggested on
https://wiki.ubuntu.com/DanielHahler/Bug59695 did not work, perhaps it is only suitable for older Ubuntu versions.