LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Automount Problems (https://www.linuxquestions.org/questions/slackware-14/automount-problems-286106/)

apachedude 02-04-2005 04:09 AM

Automount Problems
 
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, /dev/jumpdrive_128, 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.

/etc/auto.master
Quote:

/var/autofs/removable /etc/auto.removable --timeout=2
/etc/auto.removable
Quote:

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?

keefaz 02-04-2005 04:24 AM

Actually I access my devices with cd /misc/mydevice, I used auto.misc instead of your
auto.removable, so you may access your device with cd /removable/cruzer_micro_256, I don't know.

Why use auto.removable as it is auto.misc by default ?
When you install autofs package, it installs templates in /usr/doc/autofs-x.x.x/samples, so just copy
auto.master and auto.misc in /etc.


All times are GMT -5. The time now is 10:30 PM.