At Wed, 5 Mar 2003 20:03:26 +1100, Doug Stalker wrote: > The Solaris automounter implements a /net directory which will automatically > mount the entire tree from an NFS server. (i.e.: accessing /net/hostname > automatically mounts hostname:/ on /net/hostname) > > Is there any way to get the same funcionality using linux? I've been > playing around with autofs, but so far havn't had any success.
you need to use the "autofs4" kernel module, not just "autofs". (add "probe autofs autofs4 autofs" to /etc/modules.conf and run kernel 2.4 or a patched 2.2) then its a simple matter of mounting an automount point with a suitable executable automount script. see "auto.net" which is probably in the autofs sample scripts somewhere. On Debian, all of this is the default (assuming a 2.4 kernel) and there's an auto.net automount point already setup and mounted on /var/autofs/net/. -- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
