On Mon, Mar 18, 2019 at 11:39:43PM +0100, Wolfgang Pfeiffer wrote:
Looks like I found it: udisks2 seems to be the culprit.
The ugliest thing actually: the two tests below didn't show even
the slightest hints that udisks2 could be involved:
# btrace /dev/sdd &> /tmp/btrace.wi.udisks2.running.log
# inotifywait -m --format "%T %w %e %f" --timefmt "%H:%M:%S" /dev -o
/tmp/inotify.wi.udisks.running
I started both tracers above with a running udisks2 service right
before I mounted an internal disk: /dev/sda. At that moment, as usual,
sadly, an external USB disk (dev/sdd), connected to the same computer,
same time, got spun up. The logs show nothing about what accessed
/dev/sdd.
Or better: Nothing about udisks* ..
Wolfgang