I use nfs quite a lot. It allows local access to remote files i.e. the remote folder is mounted locally so you can access the remote files locally.
Often overlooked, make sure the proper NFS RPC-based services are enabled for portmap (not required for nfs4). Issue the following command as root:
This should list some lines mentioning mountd.
To install nfs (here on centos):
Proper install details are descriped in https://www.tecmint.com/how-to-setup-nfs-server-in-linux/
/etc/exports is the file that needs to list the folders accessible to nfs, for example this directory called photo on my nas:
The showmount will list all the mount points at a parcticular ip address while the command mount will show them on your local machine, if any.
You shouldn’t need to restart NFS every time you make a change to /etc/exports. All that’s required is to issue the appropriate command after editing the /etc/exports file:
To verify whether nfs is actually running you need to check two daemons
Type the following command:
On older system (NFSv3 and older), you also need to make sure portmap service is running:
Finally I needed to check whether /etc/hosts was set properly on the server. On a windows machine that file is located in windows/system32/drivers/etc/hosts and translates an ip address to a server name e.g.
Note that on a synology nas you need to set the permissions of the folder via the control panel. I initially tried via the terminal window but got stuck in no time.