Hi there, On Mon, 03 Aug 2009, 14:54:03 +0200, James Pifer wrote:
On Sat, 2009-08-01 at 19:09 -0400, Ciro Iriarte wrote:
AutoFS might be a good option too, it will mount the share on demand (each time a user requests to access the mount point.
Regards, Ciro
Trying autofs. No luck getting it to work so far. Looking at the man page and google, but not sure what I'm doing wrong.
My auto.master has: # # 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 # # NOTE: mounts done from a hosts map will be mounted with the # "nosuid" and "nodev" options unless the "suid" and "dev" # options are explicitly given. # #/net -hosts # # Include central master map if it can be found using # nsswitch sources. # # Note that if there are entries for /net or /misc (as # above) in the included master map any keys that are the # same will not be seen as the first read key seen takes # precedence. # +auto.master /home/user/shares auto.shares
I created an executable /etc/auto.shares and it has:
No need to make it executable; this is only needed for a real shell script emitting some dynamically calculated data - for an example, take a look at /etc/auto.net
storage rw 192.168.0.22:/storage mythtv rw 192.168.0.16:/mythtv
This should look like: storage -tcp,rw,hard,intr,rsize=32768,wsize=32768 192.168.0.22:/storage mythtv -tcp,rw,hard,intr,rsize=32768,wsize=32768 192.168.0.16:/mythtv With this map, you can access e.g. 192.168.0.22:/storage at /home/user/shares/storage . Of course, the "tcp", "rsize=" and "wsize=" options depend on your actual network settings. You can find all the details about the autofs *maps* in autofs(5).
Start the autofs service.
In /var/log/messages I get nothing, but it doesn't automount either.
Any ideas?
Thanks, James
HTH, cheers. l8er manfred -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org