...
Create the directory where the mount is going to go. We are using
/data
in this example:No Format sudo mkdir /data
Add an entry to your /etc/fstab. In this basic example we assume our server is on 192.168.1.1:
No Format echo "192.168.1.1:/data nfs defaults 0 0" | sudo tee -a /etc/fstab > /dev/null
You may add extra options to your entry.
The shared filesystem will be automatically mounted on the next reboot. To mount it straight away, you may run:
No Format sudo mount -av
Using the
...
NFS share
When you use an NFS share across multiple machines, the machines need to agree on the identity of the users in order to properly support permissions, otherwise you will see a lot of "permission denied" difficulties.
...