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.

link|improve this question

feedback

1 Answer

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.

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

Your Answer

 
or
required, but never shown

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