Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using autofs to mount an NFS remote share at boot so it's mounted when I'm logged in. If the remote share is down, I can't login to Ubuntu, it hangs after entering my password.

Any way to set a timeout on the remote share so it forgets about mounting an unavailable share after N seconds and lets me login?

If not with NFS, then with SSHFS?

share|improve this question

1 Answer 1

After some searching, I found your answer in the Centos documentation.

In autofs, when you define your mount, you can set options in auto.master, including a time out, in the third field as an options

Example:

/misc   /etc/auto.misc --timeout 60

See http://www.centos.org/docs/4/4.5/System_Administration_Guide/Mounting_NFS_File_Systems-Mounting_NFS_File_Systems_using_autofs.html

share|improve this answer

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.