Accueil‎ > ‎

Mount NFS (easy method)

posted 9 Oct 2017, 00:59 by Christophe Noël   [ updated 9 Oct 2017, 03:34 ]

A way to mount an NFS share from another machine is to add a line to the /etc/fstab file. 

The general syntax for the line in /etc/fstab is as follows:

server:/target    /here   nfs    nolock

The mount point /here must exist on the client machine. After adding this line to /etc/fstab on the client system, type the command mount /here at a shell prompt, and the mount point /here will be mounted from the server.

You may also type "mount -a".


1. Install NFS-Utils (to reckognize this type of fs)

[root@sandbox ~]# yum install nfs-utils

2. systemctl  enable rpcbind then start rpcbind

3. On server-side, file /etc/exports (requires also nfs-utils). Then 

 sudo systemctl enable nfs-server

Content of etc/exports:




Then exportfs -ra