fstab を使用して NFS 共有を自動マウントできない

fstab を使用して NFS 共有を自動マウントできない

Ubuntu 14.04 Server では、次のコマンドで共有を正しくマウントできました。

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

ただし、以下の行を追加して/etc/fstab再起動すると、共有はマウントされません。

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

ここで何が欠けているか誰か教えてもらえますか? よろしくお願いします!

答え1

を設定するnfsvers=4と、NFSサービスがバージョン3の場合、マウントが失敗します。 を設定するnfsvers=3か、まったく設定しないでください(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.

関連情報