Category Archives: NFS Shares

List all NFS mounts

The Scenario:

I need to view only the NFS mounts on my Linux server i.e. omit all the system mounts.

The Problem: 

Running mount -l lists types of mounts

The Solution:

mount -l -t nfs

Advertisements

mount: wrong fs type, bad option, bad superblock

The Scenario:

I need to mount an NFS share on a Ubuntu server using the mount command

The Problem:

The mount command fails with the error “mount: wrong fs type, bad option, bad superblock". 

Also /sbin/mount.nfs is missing

The Solution:

Install NFS. Run the following: apt-get install nfs-common. Then rerun the mount command.

 

Disclaimer: provided “AS IS” with no warranties and confer no rights

Windows 2012 NFS Versions

The Scenario:

I am trying to mount an NFS share from my Server 2012 File server onto a Linux client, but to do so I need to know what versions of NFS Windows supports

The Problem:

Nowhere in the properties of the NFS share is there a mention of the supported NFS versions.

NFS_properties

The Solution:

The NFS versions are visible via the Server Manager. Highlight the top-level servers list, right-click the File server serving the NFS share and select NFS Settings

NFS_Settings

The first tab of the NFS settings shows the NFS versions available (these can be selected/deselected as required)

NFS_Versions

Disclaimer: provided “AS IS” with no warranties and confer no rights

NFS Mount Error: mount.nfs: mount system call failed

The Scenario:

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 Problem:

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 Solution:

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