Ubuntu: Can't auto-mount NFS share using fstab



Question:

In Ubuntu 14.04 Server I've got a share mounting correctly with the following command:

sudo mount -a 192.168.10.5:/mnt/sf_nas/movies /mnt/movies  

However, when I add the below line to /etc/fstab and reboot, the share is not mounted:

192.168.10.5:/mnt/sf_nas/movies /mnt/moviesnfs auto,noatime,nolock,bg,nfsvers=4,intr,tcp,actimeo=1800 0 0  

Can anyone tell me what I'm missing here? Thanks in advance!


Solution:1

Setting nfsvers=4 would cause the mount to fail if your NFS service is version 3. You need to set nfsvers=3, or not set it at all (from man nfs):

nfsvers=n      The  NFS  protocol  version  number  used to contact the                 server's NFS service.  If the server  does  not  support                 the requested version, the mount request fails.  If this                 option  is  not  specified,  the  client  negotiates   a                 suitable  version  with  the  server,  trying  version 4                 first, version 3 second, and version 2 last.  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »