I'm pretty new to Linux, so bear with me. On my
2.6.28-13-server #45-Ubuntu SMP, I am using
hdparm -W1 -S120 /dev/sda
to spindown the HD after 10 minutes. But every one or two hours or so, it spins up again for no apparent reason. I suspected
/var/log/debug, kern.log, messages, syslog and
auth.log since I had to fiddle some with the logging to get it to not write to these files every so often, but I have no indications of such behaviour any longer.
dhclient3, are also among my suspects, but for no real reason.
I tried logging
and then checking back in a few hours, and that gave me nothing, so I guess that whoever is spinning up the disk is opening a file, writing to it, then closing it again?
Is there any way to find the culprit? Diagnose tool of some sort? Or simple script?
Edit: crontab is checked, and cron should not be the problem (if that table is the only possible way to generate disk writes from cron). Since I'm down to one write every few hours, I think I might get rid of "idle" writes entirely, it probably comes down to a single program.