Mount a NFS share using fstab

Mount nfs using fstab

The fstab file, generally located at /etc/fstab lists the differents partitions and where to load them on the filesystem. You can edit this file as root by using the following command

sudo nano /etc/fstab

in the following example, we want to mount a NFS v3 share from : * server : 192.168.1.2 * mountpoint (on the server) : /volumeUSB2/usbshare * mountlocation (on the client) : /mnt

we specify

192.168.1.2:/volumeUSB2/usbshare  /mnt  nfs nfsvers=3,users 0  0

the client will then automatically mount the share ont /mnt at startup.

Related

you can reload the fstab file using this method : https://redoules.github.io/linux/Reloading_fstab.html

You can create a NFS share on a Synology using the method : https://redoules.github.io/linux/share_nfs_share.html