nfs filesystems can not be mounted automatically after reboot

Tom H tomh0665 at gmail.com
Wed Jul 21 08:49:39 UTC 2010


On Wed, Jul 21, 2010 at 1:09 AM, Peng Yu <pengyu.ut at gmail.com> 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?
>
> $ cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # Use 'blkid -o value -s UUID' to print the universally unique identifier
> # for a device; this may be used with UUID= as a more robust way to name
> # devices that works even if disks are added and removed. See fstab(5).
> #
> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> proc            /proc           proc    nodev,noexec,nosuid 0       0
> # / was on /dev/sda1 during installation
> UUID=11bf0413-4054-492e-b5f3-b1b074fc4ea4 /               ext4
> errors=remount-ro 0       1
> # swap was on /dev/sda5 during installation
> UUID=685e3202-fe16-424f-bf7f-8d562ed29e16 none            swap    sw
>           0       0
>
> xxx.xxx.xxx.xxx:/home    /home   nfs     rw      0       0
> xxx.xxx.xxx.xxx:/data   /data   nfs     rw      0       0
> #pearson nfs
> yyy.yyy.yyy.yyy:/pearson/data    /pearson/data   nfs     rw      0

Add "_netdev" to your nfs mounts in fstab.




More information about the ubuntu-users mailing list