I have an external 2TB WD Elemens harddisk recently purchased plugged into the USB of my Raspberry Pi with Xbian 1.0 beta 2 installed. This disk has internal power management so it enters stand-by mode after approx 30 minutes of not being read or written. So, although the disk does stop (spin down) after a while when no one uses the Pi, it spins up again after 10-15 minutes without any external intervention.
Why could this happen, what could be accessing it? I did the following things trying to prevent daemons from read/writing it and figure out what's causing it:
- Added
exit 0before any command in/etc/init.d/hdparm,ntp,rsync,anacron,smartmontools,smartd - Commented everything out in
/etc/init/anacron.conf,cron.conf - Commented all out in
/etc/cron.*/0anacronfiles - Commented all out in
/etc/crontab - Added
exit 0before all commands in/etc/apm/event.d/*and/etc/apm/other.d/ifplugd - Tested on Openelec - here the non-needed spin-up down does not occur, the disk stays on stand-by undefinetely if the Pi is not used
- I unmounted the disk and this still happens, so perhaps some kind of diagnostic request is sent to it through USB, but by which program?
- Mounted the disk with
noatime, no success.
Any idea would be appreciated.