Mailinglist Archive: opensuse (1486 mails)

< Previous Next >
Re: [opensuse] Losing NFS mounts on 11.1
  • From: Ciro Iriarte <cyruspy@xxxxxxxxx>
  • Date: Mon, 3 Aug 2009 11:19:55 -0400
  • Message-id: <a998a0140908030819q695962a2y1b45eabb6c0853e@xxxxxxxxxxxxxx>
2009/8/3 James Pifer <jep@xxxxxxxxxxxxxxxx>:
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:
storage     rw      192.168.0.22:/storage
mythtv      rw      192.168.0.16:/mythtv


Start the autofs service.


In /var/log/messages I get nothing, but it doesn't automount either.

Any ideas?

Thanks,
James


Did you try to access /home/user/shares/storage or
/home/user/shares/mythtv ?, they won't be mounted until you try to
access them (try ls $dir).... They'll be unmounted 60 seconds after
the last process releases any open file.

Regards,

--
Ciro Iriarte
http://cyruspy.wordpress.com
--
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >