I have a problem with an udev-rule. i simply want to mount a usb stick when it is plugged in. the rule correctly executes a script which mkdir the mount point and then calls mount. everything seems to work, but the stick is never mounted. if I execute the script manually everything works and i can access the stick
KERNEL=="sd?1", SUBSYSTEMS=="usb", ACTION=="add", SYMLINK+="adminStick", RUN+="/usr/bin/logger Start mounting", RUN+="/usr/local/bin/mountAdmin"
#!/bin/bash /usr/bin/logger Creating /media/adminStick mkdir -p /media/adminStick /usr/bin/logger Trying to mount adminStick mount /dev/adminStick /media/adminStick
Feb 28 19:27:25 alarmpi logger: Start mounting Feb 28 19:27:25 alarmpi logger: Creating /media/adminStick Feb 28 19:27:25 alarmpi logger: Trying to mount adminStick Feb 28 19:27:25 alarmpi kernel: EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null)
System: Arch for Raspberry Pi ARMv6