I've got my Slackware installation almost the way I want it, but I'm a few steps away.
I used some udev rules to point my devices to precisely where I'd like them. In particular, I have devices /dev/cruzer_micro_256
, and /dev/lexar_sd_512
So I began writing my autofs rules, following this page closely: http://www.greenfly.org/tips/usb_drive.html
I got this far through my udev rules.
/var/autofs/removable /etc/auto.removable --timeout=2
cruzer_micro_256 -fstype=vfat,uid=1002,gid=1002,umask=002 :/dev/cruzer_micro_256
jumpdrive_128 -fstype=vfat,uid=1002,gid=1002,umask=002 :/dev/jumpdrive_128
lexar_sd_512 -fstype=vfat,uid=1002,gid=1002,umask=002 :/dev/lexar_sd_512
The author of the above tutorial also has written a bash script /etc/hotplug/usb/usb-storage
to symlink his devices where he'd like them. I'm not worried about that yet, although I'll make an attempt at that when I get the autofs working.
From what I understand, as soon as I access /var/autofs/removable
, any devices that are attached should be mounted. So if my jumpdrive is plugged in, /var/autofs/removable/jumpdrive
should be created. But this isn't the case. The devices themselves do work if I mount them manually, so I know there's a problem in the autofs process--can someone help?