Created by [/u/electricpollution](https://www.reddit.com/user/electricpollution) on [/r/synology](https://www.reddit.com/r/synology/)): [Mounting a NFS share from Synology to Linux How-TO : synology (reddit.com)](https://www.reddit.com/r/synology/comments/i95mal/mounting_a_nfs_share_from_synology_to_linux_howto/) ## Other helpful links I typed a quick how-to on mounting nfs shares from Synology to Linux as it seems to be a common question. The post will be long, but once you do it once or twice, you can do in about two minutes. Things to note: - Shares on Synology **cannot** be encrypted that have NFS permissions - Shares on Synology cannot have mounted folders inside them - You must have root/sudo permission on the Linux box you are working on 1. Go to **Control Panel** > **File Services**. ![https://preview.redd.it/dmf776t8ctg51.png?width=1000&format=png&auto=webp&s=25a6a82901e48ea033e4505a5054042d4ea73655](https://preview.redd.it/dmf776t8ctg51.png?width=1000&format=png&auto=webp&s=25a6a82901e48ea033e4505a5054042d4ea73655) On the **Win/Mac/NFS** tab, tick the box **Enable NFS**. [https://preview.redd.it/j8tfz0vectg51.png?width=1003&format=png&auto=webp&s=12ac0bfc423817cf19838fe01876b378b40a3fa8](https://preview.redd.it/j8tfz0vectg51.png?width=1003&format=png&auto=webp&s=12ac0bfc423817cf19838fe01876b378b40a3fa8) **Assign NFS Permissions:** Go to **Control Panel** > **Shared Folder**. Select the shared folder that you wish to access with your NFS client, and click **Edit**. [https://preview.redd.it/9nfbuf9mctg51.png?width=1000&format=png&auto=webp&s=28e2587b9ab9afddf4871bc29386d504b25e2f6d](https://preview.redd.it/9nfbuf9mctg51.png?width=1000&format=png&auto=webp&s=28e2587b9ab9afddf4871bc29386d504b25e2f6d) Go to the **NFS Permissions** tab. Click **Create**. [https://preview.redd.it/z8435xeqctg51.png?width=806&format=png&auto=webp&s=5af260467a2e99d917d9c8c3791ce16257004e3b](https://preview.redd.it/z8435xeqctg51.png?width=806&format=png&auto=webp&s=5af260467a2e99d917d9c8c3791ce16257004e3b) Edit the fields for you scenario [https://preview.redd.it/weiz1nfuctg51.png?width=549&format=png&auto=webp&s=3880e094e3cc0249286fba96910e20f97b5e67b3](https://preview.redd.it/weiz1nfuctg51.png?width=549&format=png&auto=webp&s=3880e094e3cc0249286fba96910e20f97b5e67b3) For me and home labing, this is what I usually do above. - **IP**: subnet or host IP - **Privilege**: read/write (for plex, Read only might be safer) - **Squash**: Map all users to admin, this gives the least resistance for permission issues, but if you need more security, you can do none, or what you need. - **Security**: sys - **Enable asynchronous**: checked - **Allow users to access mounted sub folders**: checked Full Specs: - **Hostname or IP**: Enter the IP address of the NFS client which will access the shared folder. You may specify a host in three ways: - **Single Host**: The fully qualified domain name (FQDN), or an IP address. - **Wildcards**: *, *.synology.com - **IP networks**: 203.74.205.32/255.255.252.0, /24 - **Privilege**: Select read/write permissions for the NFS client. - **Security**: Specify the security flavor to implement. - **AUTH_SYS**: Use the NFS client's UID (user identifier) and GID (group identifier) to check access permissions. - **Kerberos authentication**: Perform Kerberos authentication when the NFS client connects to the shared folder. The client can only access the shared folder after passing Kerberos authentication. - **Kerberos integrity**: Perform Kerberos authentication and ensure the integrity of packets during data transfer. - **Kerberos privacy**: Perform Kerberos authentication and encrypt the NFS packets during data transfer, thus preventing malicious parties from tampering with NFS traffic. - **Squash**: This field allows you to control users' access privileges of the NFS client. Please select one of the following: - **No mapping**: Allows all users of NFS client, including root users, to maintain original access privileges. - **Map root to admin**: Assigns access privileges to root users of NFS client equivalent to the admin user access privileges on your system. - **Map root to guest**: Assigns access privileges to root users of NFS client equivalent to the guest access privileges on your system. - **Map all users to admin**: Assigns access privileges to all users of NFS client equivalent to the admin user access privileges on your system. - **Asynchronous**: Checking this option allows your Synology NAS to reply to requests from NFS clients before any changes to files are completed, yielding better performance. - **Allowed non-privileged port**: Checking this option allows NFS clients to use non-privileged ports (i.e. ports greater than 1024) when connecting to the Synology NAS. # NOW GO TO YOUR LINUX BOX This was written from and Ubuntu (Debain) server box, commands should be similar on other flavors Install **nfs-common**: `sudo apt-get update && sudo apt-get install nfs-common -y` Create a mount point, this can be anywhere on the system, but is generally done under **/mnt/**: You can change the permission with chmod, if you wish but not required `sudo mkdir /mnt/media` Edit your **fstab**: `sudo -e /etc/fstab` or `sudo nano /etc/fstab` At the bottom of the file create a new line for your mount. Notice that you may need to change what volume your data is on depending on what volume it resides on you synology. You can have as many mount points as you like, one per line. DO NOT EDIT anything already there above, These are your actual hard drives, any changes can break your system. `10.0.0.50:/volume1/Media /mnt/media nfs auto,defaults,nofail 0 0` [https://preview.redd.it/kay1hus8etg51.png?width=613&format=png&auto=webp&s=2e8511d5243ccd056cb9f20f6d39d66093b2fdc8](https://preview.redd.it/kay1hus8etg51.png?width=613&format=png&auto=webp&s=2e8511d5243ccd056cb9f20f6d39d66093b2fdc8) Above is a very basic example A. IP of the DiskStation B. Volume on the DiskStation C. Share name. This is Case Sensitive! D. Local folder/mount point on Linux box that you created above E. Mount point type, nfs in this case F. Mount On startup G. Will continue to boot the system if mount fails instead of halting For more mounting options visit: [https://help.ubuntu.com/community/SettingUpNFSHowTo](https://help.ubuntu.com/community/SettingUpNFSHowTo) Save the **fstab** Mount the shares immediately: `sudo mount -a` If you don’t receive any errors you should be good! The most common error is permission denied and usually are from the following: 1. Wrong ip permissions on synology, doesn't match from the host you are coming from 2. bad user mapping on synology - (Squash) 3. Mistyping in fstab 4. Case sensitive share names e.g. if you have a share call Media, it must also have a capital "M" in the fstab 5. Wrong volume specified Edits: spelling