[ILUG] How to mount a directory?
Brendan Minish
bminish at minish.org
Tue Jul 21 22:23:06 IST 2009
On Tue, 2009-07-21 at 15:55 +0100, Timothy Murphy wrote:
> If I just add it to /etc/fstab
> there is an inordinate delay if alfred cannot be seen.
Use the autofs to mount it when you access it and it will also un-mount
it when done. This avoids the need to do it at login but makes it
available (if present) when you try to access it
you can also symlink the directory from the /net dir (possibly assuming
redhat like distros.) to where you want
ln -s /net/alfred/common /common
now
ls /common
will automount the share and do the needful
some help on the autofs auto-mounter here for redhat like distros,
others will presumably be very similar
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Deployment_Guide-en-US/s1-nfs-client-config-autofs.html
.brendan
More information about the ILUG
mailing list