[Voyage-linux] Enabling USB autofs

Neil B (spam-protected)
Wed Oct 6 19:48:11 HKT 2010


Hiya

I'm new to Voyage Linux as I've just bought an Alix board.  I've spent 
quite a few hours trying to crack this issue and I can't work it out, or 
find the answer with the power of Google...

I can happily plug in a USB stick, issue this:
mkdir /tmp/stick ; mount /dev/sda1 /tmp/stick
and the access my USB stick on /tmp/stick

For the project I'm tinkering with, I need this to auto mount..  so I've 
installed autofs using apt-get and configured it like this:
/etc/auto.master
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#/misc  /etc/auto.misc --timeout=60
#/smb   /etc/auto.smb
#/misc  /etc/auto.misc
#/net   /etc/auto.net
#/var/autofs/misc /etc/auto.misc --timeout=3
/tmp/misc  /etc/auto.misc --timeout=3

and
/etc/auto.misc
#
# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven Exp $

usbstick        -fstype=auto,rw,sync    :/dev/sda1

But - its not working!  It doesn't even create the folder /tmp/misc let 
along /tmp/misc/usbstick

It strikes me that I'm missing something really simple.. but I can't 
find it - its driving me up the wall!

Thanks for your help,

Neil




More information about the Voyage-linux mailing list