nfs filesystems can not be mounted automatically after reboot

Marius Gedminas marius at
Wed Jul 21 09:49:34 UTC 2010

On Wed, Jul 21, 2010 at 04:49:39AM -0400, Tom H wrote:
> On Wed, Jul 21, 2010 at 1:09 AM, Peng Yu <pengyu.ut at> wrote:
> >
> > I have the following fstab. The nfs filesystem can not be
> > automatically mounted after reboot. I have to run 'mount -a' to mount
> > them. Does anybody know how to enable automatic mount?

Been there, done that, cursed Ubuntu to hell and back, wrote cron scripts to
check for NFS mounts and try to remount every hour:

    [ -z "$(grep "$WHAT.* nfs " /proc/mounts)" ] && {
        echo "$WHAT is not NFS-mounted, trying to remount"
        mount -a -t nfs
        [ -z "$(grep "$WHAT.* nfs " /proc/mounts)" ] && {
            echo "... mount -a -t nfs didn't help"

This feels like a server papercut to me.

> Add "_netdev" to your nfs mounts in fstab.

Best answer in this thread, thank you!  I had no idea about the _netdev fstab
option.  The fstab(5) or mountall(8) manual pages don't mention it.
Google finds a mention in

Any ideas about which Ubuntu versions support/require this?

Marius Gedminas
        "A child of 5 could understand this!  Fetch me a child of 5."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <>

More information about the ubuntu-users mailing list