Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can anyone suggest a method of mounting a partition (e.g. an NFS share) when a user changes into the directory it is set to be mounted to, and not on the system startup?

So far I've been unable to propose such a method, aside from editing BASH built-in cd implementation and forcing an fstab/mtab check before the working directory is actually changed.

share|improve this question
up vote 2 down vote accepted

http://www.linux-consulting.com/Amd_AutoFS/autofs-3.html#ss3.1 <-- That's what you want to use.

share|improve this answer
    
+1 for autofs. I like the docs at autofs.org better though. – Zoredache Apr 2 '10 at 8:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.