Make NFS in RHEL/Centos and Fedora


Please shareShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditDigg thisShare on StumbleUponShare on VKBuffer this page

This tutorial shows you how to use nfs successfully, you have to configure the server and the client. In this example, the client is and the server is The folder to be shared is


/home/sharing, and to be mounted to /mnt on the client

On the server

1: make   this  diretory :

[root@unixmen_net ~]# mkdir /home/sharing

2:Edit /etc/exports, insert the client computer  ip

 vi /etc/exports

and  add  this line:


 save  and  exit

3:  Edit /etc/hosts.allow

vi  /etc/hosts.allow

add  :  portmap:

save  and  exit.

 4:  start nfsand  portmap :

[root@unixmen_net ~]#  /etc/init.d /nfs start

[root@unixmen_net ~]#  /etc/init.d /portmap start

On the client


/etc/init.d/portmap start

Mount the nfs folder

mount /mnt

 Check /var/log/messages for any error that might occur

tailf /var/log/messages

Use mount to check if the folder is mounted properly

the  output  should  be  like : on /mnt type nfs (rw,addr=

Edit /etc/fstab to mount the shared folder on boot  :

vi /etc/fstab

add mnt nfs rw,hard,intr 0 0

 save  and  exit .

 Voila :”)


 Greets unixmen team 

 You can post your comment for this article below , we want to inform you that we don`t answer the comments , issues and problems please report them on the forum.