Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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


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.