Steps to configure NFS (Network File System)
1. Mount CD1.
2. Install nfs package:
#Rpm-ivh /mnt/cdrom/RedHat/RPMS/nfs*
3. #Service nfs start
#service portmap start
Service nfslock start
4. Change directory
# cd /
5. #mkdir /nfsserver
#ls
#touch /nfsserver/demo1
#touch /nfsserver/demo2
#ls /nfsserver
6. #gedit /etc/exports
Write directory name to this file as follows:
/nfsserver *(rw,sync)
Save the file and close it.
7. #service nfs restart
#service portmap restart
#Service nfslock restart
8. #showmount –e 192.168.192.129 //(write ip address of nfs server)
#exportfs –r
9. Open a new terminal, change directory, create a nfsclientt directory in / and check the list of
files in it. This directory is empty at this time.
# cd /
#mkdir /nfsclient
#ls /nfsclient
nfsclient directory is empty
10. Mount –t nfs IP address :/nfsserver /nfsclient
11. Now type
# ls /nfsclient
It will show two files demo1 and demo2 which were created in directory nfsserver.
For linux to windows(Cross platform)
1. In programs and featrures strat NFS services
2. Open cmd write
a. Mount –o ipaddroflinus:/nfsserver W:
(W: is a drive letter for windows file system)
W: is a directory letter for linux mounting(share data)
Output: It will map with all shared dir of server