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 mounted a nfs server to ~/share. This works fine as long as I'm at home, where the nfs share is in reach. Whenver I'm not, this seems to break access to all manpages. Using man (or ls in my homedir) waits forever. Checking with strace reveals that they try to access the folder called share.

Unmounting fails too. Even with -l (lazy) and -f (force).

I am asking for three things here:

  • Is ``share'' a magic name? Does something like MANPATH exist, which I should avoid?
  • How do I unmount without rebooting? (I already commented the share out in fstab)
  • What would you suggest me to do, to have network/position based mounting of NFS shares?
share|improve this question
add comment

1 Answer 1

To answer your questions in order:

  • Yes, but it is a bit more involved. Use manpath to see what is the path search order for manual pages and for example MANPATH=/usr/share/man man <whatever> to use a specific path setting
  • It might not be possible to unmount without booting (this time), but in the future you should consider mounting with the intr option, i.e. mount -t nfs -o intr host:/path ~/share or similarly in fstab: host:/path /home/user/share nfs intr. Please see man 5 nfs for further information (if you continue have problems, see the soft and timeo options).
  • Try the above options, but if they fail, you could try CIFS or sshfs instead of nfs
share|improve this answer
add comment

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.