1

I recently suffered the joy of a server crash (Ubuntu 12.04) and a subsequent failure to reboot.

It appears that the OS attempted to mount the NFS shares in the /etc/fstab file before networking had been loaded by the OS, meaning the OS failed to get past that point in the boot cycle.

My fstab file is correct and this server has been rebooted before, so I can only think this is a race condition?

Is there any way I can mount the directories in the fstab after the OS has booted OR at least do it at the very end of the boot process?

3

1 Answer 1

4

A workaround is to edit /etc/fstab to use the _netdev mount option. From mount man page:

_netdev The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).

Other possibilities are to use the soft or intr mount options.

Please note that all these options have their drawback, the bigger being the fact the they will skip NFS mount entirely, without trying later.

The real solution probably is to use the autofs mechanism, for on-demand mounts.

Or, at least, try to mount your NFS share very late in the boot process - maybe using rc.local (or the likes).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .