I'm creating a new basic rule
/etc/udev/rules.d/10-myrule.rules
containing:
KERNEL!="sdb*", GOTO="auto_mount_end"
ACTION=="add", RUN+="/usr/bin/mount /dev/sdb1 /media"
LABEL="auto_mount_end"
I saved, rebooted, and inserted a SD card (recognized by /dev/sdb1
, I see it with dmesg
), but nothing happens.
When I do manually mount /dev/sdb1 /media
, it works.
How can I troubleshoot / debug such an udev
rule?
Note: I'm using ArchLinux, but it should be the same on any distro?
99-myrule.rules
...systemd
change something to the normal udev behaviour?udevadm monitor
, see this and thisudevadm test
and validated rules against reality withudevadm info
.