I have an external drive connected to my computer, I want this drive to be in sleep mode unless i'm executing some backup tool.
For some reason, after 14 minutes I think, the hard drive always wakes up.
** edit **
i tried the following things:
btrace /dev/myexternal- to see which system call calls my external hard drive. unfortunately at the moment my hd wakes up I don't see any call.
fuser /dev/myexternal - to see which processes use this hd.
lsof - to see if there are files which has accessed.
mount the external drive manually to /mnt
stop lightdm and several processes/services.
How can I find which process wakes the hard drive?