Installing and Mounting an NFS Share

Installing

sudo apt update
sudo apt install nfs-common
sudo mkdir /mnt/nfs
sudo chmod -R 777 /mnt/nfs
sudo mount host_ip:/home /mnt/nfs/home

Mounting NFS at Boot

sudo nano /etc/fstab

Add the following line towards the bottom.

host_ip:/home /mnt/nfs/home  nfs      defaults    0       0

Back to Ubuntu Guides

Add a comment