I asked about configuring autofs to mount a subdirectory, and
Ward William E PHDN <[EMAIL PROTECTED]> replied:
>As an aside answer to your question, change the hard to soft
>on your auto.net line. You REALLY shouldn't do hard mounts if you
>can help it. You can hose your NFS mounts, requiring a reboot, if the
>server goes down or you somehow break your network connection.
Interesting. The mount man page suggests that hard,intr is the way
to go. It says about soft: "Usually it just causes lots of trouble."
>The answer to your question, though, is that your link needs to be
>in /etc/fstab.
>
>For example, I have lines similar to this that gets done everytime.
>
>server:/far/directory /local/directory nfs
>user,exec,dev,suid,rw,bg,soft 1 1
>server:/different/directory /different/directory nfs
>user,exec,dev,suid,rw,bg,soft 1 1
OK, I added something. I now have:
auto.master contains
/net /etc/auto.net --timeout 60
auto.net contains
server/var/remotedir -rw,hard,intr server:/var/remotedir
and fstab contains
server:/var/remotedir /net/server/var/remotedir nfs \
noexec,dev,nosuid,rw,noauto 0 0
Still nothing.
I added an entry in auto.net for
server1 -rw,hard,intr server:/var/remotedir
Now, *that* succeeds in automounting server:/var/remotedir on
/net/server1, even without an entry in fstab. So I ask again: what do
I need to do to mount the same directory on /net/server/remotedir? I
need to have it in the right place because it contains a license file
that knows where it should be mounted and won't run if it's not
mounted in the right place.
Thanks again.
Matthew Saltzman
Clemson University Math Sciences
[EMAIL PROTECTED]
http://www.math.clemson.edu/~mjs
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.