Might be able to do it with udev rules but I have not tried. Try a google on
I try to mount a ntfs disk with a autofs rule.
here is the slave file:
# cat /etc/autofs/auto.windows
# automount second disk which contains windows data
/windows -fstype=ntfs-3g,uid=n0t,gid=n0t,nofail,users :/dev/sdb2
and the concerning line in auto.master:
# cat /etc/autofs/auto.master
I'm running Archlinux and this is what I get from
I'm using Fedora 19. I created a simple Udev rule that I expect to work whenever a usb device is plugged in:
SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/bin/echo 'testing' > /home/john/log.txt"
But it is not working.