LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] How to mount a directory?

[ILUG] How to mount a directory?

Timothy Murphy gayleard at eircom.net
Wed Jul 22 15:30:53 IST 2009


On Tuesday 21 July 2009 22:23:06 Brendan Minish 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
...
> http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Deployment_Guid
>e-en-US/s1-nfs-client-config-autofs.html

Thanks very much.
It is clear that autofs is the way to go.

I found the autofs documentation very difficult to follow;
like much Linux documentation
it seemed to be directed at people running enormous systems
with extraordinarily complicated mounting problems.
It took some time to work out what was the difference 
between direct and indirect maps,
or even what a "map" was.

In the end I yum-installed autofs on my Fedora-11 laptop,
changed /etc/auto.master to the single line
	/-              auto_direct
and wrote  a single line /etc/auto_direct
	/common -rw,sync alfred:/common

This seems to work fine on re-booting.
Thanks again.






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell