Setting up NFS on Ubuntu and making a permanent mount is easy and
Install NFS through SSH.
Step 1 – Downloading and Installing NFS
sudo apt-get install cifs-utils
Step 2 – Create folder for mount point
To be able to mount an NFS target you will need to have an empty folder the mount binds to.
Step 3 – Setup mounting at boot
Edit the file that stores what folders to mount upon boot.
sudo nano /etc/fstab
192.168.1.50:/mnt/foldername /mnt/storage nfs auto 0 0
Things to change on the code above.
192.168.1.50: This is the IP to your NFS server.
/mnt/foldername: This is the folder you created in Step 2.
/mnt/storage: Is the NFS share path.
Step 4 – Mount and finish
Run the code to mount the new share.
sudo mount -a