Não é possível montar automaticamente o compartilhamento NFS usando fstab

Não é possível montar automaticamente o compartilhamento NFS usando fstab

No Ubuntu 14.04 Server eu tenho um compartilhamento montado corretamente com o seguinte comando:

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

No entanto, quando adiciono a linha abaixo /etc/fstabe reinicio, o compartilhamento não é montado:

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

Alguém pode me dizer o que estou perdendo aqui? Desde já, obrigado!

Responder1

A configuração nfsvers=4causaria falha na montagem se o seu serviço NFS fosse a versão 3. Você precisa configurá-lo nfsvers=3ou não configurá-lo (deman 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.

informação relacionada