Mounting NFS

  • We need NFS to do the mounting
sudo apt install nfs-common
  • First select a filesystem which has to be mounter on an another network :

Lets take /hosting_nfs as the file system

vi /etc/exports
/hosting_nfs *(rw,sync,no_root_squasj)
service nfs reload
service nfs restart

Following changes on the server which the directory has to be mounted :

  1. Manual Mount :
mount -vvvv heapwizard.net.intra:/hosting_nfs /remote_nfs
unmount /remote_nfs
service nfs reload
service nfs restart

2. Automatic Mount :

vi /etc/fstab
heapwizard.net.intra:/hosting_nfs /remote_nfs nfs rsize=8192. wsize=8192, timeo=14, intr
reboot
service nfs reload
service nfs restart

Leave a Comment