That will
work from the shell, but if you are using a filemanager it won't show
the directory till you attempt to cd to it and it then mounts, which is
why I put the symlinks.
My use of them was for Kiosk machines which were to be used with ppl
with low level PC skills, so I had to make it as simple as possible.
Still have some problems with some key's not liking to be re-mounted
before a reboot which is annoying but since the owners shut down the
machines each night it's not so much of a problem. If anyone has an
answer though it'd be appreciated.
Paul
Ben de Luca wrote:
or cd /mnt/removable/usbkey
On 22/09/2004, at 9:36 PM, Paul Robinson wrote:
Hi David,
Had fun with these suckers and autofs myself.
Basically you
have to cd to the dir for autofs to check and mount the key. The way I
solved that was to mount somewhere else and then do a symlink at the
location you actually want to "use" it from. That way you can ls the
symlink and autofs will then automount and ls will complete it's due
course.
Hope this helps,
Paul
Perry, David wrote:
I'm trying to automatically mount a usbkey on Redhat 9 when it
is plugged in and then unmount it after it stops being accessed. I
wish it to be available to all users not just root. This recipe came
from
www.systemsaligned.com/learn/howto/hwtusbkey In
theory the usbkey is suppossed to mount as soon as it is
accessed and unmount one second afer the access ceases.
I created a directory /mnt/removable
a file /etc/auto.removable which contains
usbkey -fstype=vfat,umask=000 :/dev/sda
a file /etc/auto.master which contains
/mnt/removable /etc/auto.removable --timeout=1
restarted autofs
This is not mounting the usbkey when I try #ls /mnt/removable
The key works perfectly when I manually mount it with #mount -t vfat
/dev/sda1 /mnt/removable
Any advice? The instructions say to use sda not sda1 in the
auto.removable file and I have tried sda1 with no success.
Thanks in advance
David
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
|
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html