I have created a NFS share on my Windows Server 2012 R2 file server. I want to mount this to a Ubuntu 12.04 server in the same domain and subnet.
The command mount -t nfs fileservername:/nfssharename /mountpoint_name produces the error “mount.nfs: mount system call failed”. However the same command on a Ubuntu 14 or Debian 8 server works fine
The Server for NFS role installed on the Windows file server uses NFS version 4 by default (To see how to check your environment click here) . Older versions of Ubuntu use either NFS version 2 or 3. Whilst Windows Server 2012 R2 is also capable of using these earlier NFS versions there is no auto-negotiation between the two servers to use a common version, Windows will only ever use the highest version enabled. The mount option must specifically state the version, in this case NFS version 3. So the command that worked included the option -o nfsvers=3:
mount -t nfs -o nfsvers=3 fileservername:/nfssharename /mountpoint_name
Disclaimer: provided “AS IS” with no warranties and confer no rights