nfs filesystems can not be mounted automatically after reboot

Chris Jones jonesc at hep.phy.cam.ac.uk
Wed Jul 21 09:59:43 UTC 2010


> Been there, done that, cursed Ubuntu to hell and back, wrote cron scripts to
> check for NFS mounts and try to remount every hour:
> 
>     WHAT=server:/path
>     [ -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.

This is just a poor mans implementation of part of what automount does 
for you ;)




More information about the ubuntu-users mailing list