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.
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
HTH!
Bill Ward
-----Original Message-----
From: Matthew Saltzman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 11:51 AM
To: [EMAIL PROTECTED]
Cc: recipient.list.not.shown; @nswcphdn.navy.mil
Subject: Automounting a volume to a subdirectory
I am using autofs to automount NFS volumes. I would like to configure
it to mount, say, server:/var/remotedir on my local mount point
/net/server/var/remotedir. Can that be done?
Currently, auto.master contains
/net /etc/auto.net --timeout 60
and auto.net contains
server/var/remotedir -rw,hard,intr server:/var/remotedir
but that doesn't seem to work (i.e., nothing gets mounted). I *can*
mount the volume on the mount point by hand. The server is a Solaris
2.6 machine, and other Solaris machines on the network have no trouble
automounting.
I'm running a kernel compiled from kernel-source-2.2.14-1.5.0 (the
Rawhide kernel) and autofs-3.1.3-9.
Thanks.
Matthew Saltzman
Clemson University Math Sciences
[EMAIL PROTECTED]
http://www.math.clemson.edu/~mjs
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.