Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

What's the best way to mount an NFS share during boot?

share|improve this question
up vote 3 down vote accepted

What is "better" depends on your needs. If it is your home box, I'd go with autofs. If you add an entry in /etc/fstab, which requires mount at boot time and there is anything wrong with the NFS server, then your boot will hang. Autofs based solution will let you boot every time, also if there's a problem with your NFS server.

If you decide to use fstab anyhow, then add netdev option. This prevents mount attempt until networking is up.

share|improve this answer
Great answer! This is on a server so I'll probably go with autofs. – Trent Scott Sep 18 '11 at 6:09
Look it up in your man page for mount. It's possible, that the option varies between versions/distributions. I took mine from RHEL 6 man page – Paweł Brodacki Sep 18 '11 at 6:20
Requires underscore on Ubuntu. Thanks! – Trent Scott Sep 18 '11 at 6:33

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.