Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have one server A that is configured to auto-mount an NFS path from server B, using the following entry in /etc/fstab:

serverB:/data/media/serverA  /data/media             nfs     defaults        0 0

During long power outages (and yes, I have a UPS good for about 30 minutes) or power cycles where both machines are rebooted at around the same time, I've noticed that this path is sometimes not auto-mounted in the case when serverA boots up while serverB is still offline.

I've written a simple script to manually run on serverA after serverB is online, that will fix the mount, but is there a better way to do this? I feel like some process should automatically be able to handle this scenario without some custom hack from me.

Does the entry in /etc/fstab not handle this case, or have I misconfigured it?

share|improve this question
up vote 4 down vote accepted

I'd probably change the 'default' to something like 'soft,intr,rw,bg'. The bg is especially important as it says if the mount fails, retry it in the background for (pretty large number) of times until the it gets mounted.

share|improve this answer
What system do you use those on? I've checked the man page for mount on Fedora and Ubuntu, and neither list "soft", "intr", or "bg" options. – Cerin Nov 8 '11 at 14:57
On fedora (as per the man page), check out nfs(5) – mdpc Nov 8 '11 at 16:58
Oh, man nfs, I see. Thanks. – Cerin Nov 9 '11 at 4:31

man mount and take a look at the _netdev option. You probably should use it to delay mounting until the network has been started:

serverB:/data/media/serverA  /data/media    nfs    _netdev,rw,...    0 0
share|improve this answer

This is a case where I would look at something like autofs or another auto-mounter. Using this tools file-systems are mounted on demand, not at boot time. A failure because the server is not available at boot time is then temporary. When you to access the mount-point after the server after it is ready, the file system will get mounted.

share|improve this answer

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.