[plug] Automount Magic...
John Usher (Maptek)
John.Usher at perth.maptek.com.au
Thu Sep 25 17:50:57 WST 2003
I once set something similar up with old automount (ie prior to autofs)
which tried to mount over nfs and connected to the first server to
respond. Not quite the same, but theres a chance theres something in
some way similar.
That was under IRIX though...
I've just taken a look at automount and it appears you can specify a map
type of 'program' which is given the key on the command line and
returns the entry on stdout.
This has potential to do what you want. You could use a perl script to
try and mount the usb device and if it mounts, dismount it (if
necessary? automount will want to mount it.) and returns the usb entry,
otherwise returns the nfs/filesystem entry.
Something like /mnt2 program:/my/perl/script/to/return/map/table/entry
in auto.master...?
...John...
-----Original Message-----
From: Trevor Phillips [mailto:T.Phillips at murdoch.edu.au]
Sent: Thursday, 25 September 2003 3:49 PM
To: PLUG Mail List
Is it possible with autofs to try mounting a second source, if the first
source fails?
For example, can I associate with a set directory an automount such that
it
first tries to mount a USB Flash device, and if that fails, try to mount
an
NFS share instead...
--
. Trevor Phillips - http://jurai.murdoch.edu.au/ .
: Web Technical Administrator - T.Phillips at murdoch.edu.au :
| IT Services - Murdoch University |
>--------------------------------------------------------------------<
| On nights such as this, evil deeds are done. And good deeds, of /
| course. But mostly evil, on the whole. /
\ -- (Terry Pratchett, Wyrd Sisters) /
_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
More information about the plug
mailing list