Category: nfs

How to configure the NFS server and mount NFS shares (Xubuntu 14.04)

NFS Server

Just one package to install:

apt-get update
apt-get install nfs-kernel-server

Create the folder which we want to share

mkdir /srv/nfs

Change the ownership of the folder in order to limit the rights of the client:

chown nobody:nogroup /srv/nfs

PS: do not share the /home directory because it will cause a massive permissions problem.

Now we have to inform the NFS server about what we what to share:

nano /etc/exports

and add the sharing point /srv/nfs:

/srv/nfs          *(rw,no_root_squash,async,no_subtree_check)

or in case we want to limit the share to a single client with IP=


Next update the NFS table with the new sharing point

exportfs -rav

Finally start the NFS service:

service nfs-kernel-server start


NFS Client

Just one package to install:

sudo apt-get update
sudo apt-get install nfs-common

create the NFS mount point:

sudo mkdir -p /mnt/nfs

Next mount the NFS shared folder:

sudo mount -t nfs /mnt/nfs/

Now we are connected with the NFS share, we will crosscheck it as follows:

mount -t nfs on /mnt/nfs type nfs (rw,vers=4,addr=,clientaddr=
Permanent NFS mounting

Add the NFS share in /etc/fstab file

 nano /etc/fstab


 [...] /mnt/nfs nfs defaults 0 0

WordPress Themes