I soon realized that my HDD would never spin down and enter sleep mode. I then installed ownCloud and the HDD not sleeping continued. I then shutdown (powered down not sleep or hibernate) machines on my network one by one to find out which machine might be keeping the drive awake. As it turns out the Macbook was the problem. I subsequently stopped the Netatalk service and bingo, the drive went to sleep. Since then I've been using ownCloud exclusively for file sharing on my network.
Here is where we come to the problem. The drive going to sleep is very erratic. At one point I power-cycled the Pi and now the drive won't sleep again. I tried Iotop to see if there any processes writing to the disk and thus preventing it from sleeping but there were none. Tried the technique of turning off all machines on my network that have ownCloud installed and still the drive wont sleep. What am I missing here? Here is how the drive is mounted in /etc/fstab:
Code: Select all
UUID="XXXXXXX" /cloud defaults,noatime,uid=33,gid=33,umask=007 0 0Code: Select all
/dev/sda1:
setting Advanced Power Management level to 0x7f (127)
SG_IO: bad/missing sense data, sb[]: 70 00 01 00 00 00 00 0a 00 00 00 00 00 1d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
setting standby to 120 (10 minutes)
SG_IO: bad/missing sense data, sb[]: 70 00 01 00 00 00 00 0a 00 00 00 00 00 1d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
APM_level = 127