Thursday 10 September 2020

Mount Synology NFS shared drive in Linux

How to create a NFS share on a Synology NAS and mount it on a linux client machine using the guest account for all users.

Synology NAS steps

  1. Enable NFS in control panel > file services
  2. Create share in Control Panel > Shared Folder e.g, public
  3. Set NFS Permissions
    •     Hostname * (allow all hosts to connect)
    •     Privilege Read/Write
    •     Squash map all users to guest
    •     security sys
    •     Enable asynchronus
    •     Allow connections from non-privileged ports
  4. Enable the guest user account and ensure it has r/w access to the share

 

Linux client steps

 Install the nfs client if not already installed
  1.  sudo apt update
  2. sudo apt install nfs-common 
 Create a mount point directory
  1. mkdir /mnt/public

Mount the drive. NB use the share path as shown in the control panel e.g. /volume1/public

  1. sudo mount -t nfs 192.168.76.38:/volume1/public /mnt/public