How to access files on Synology NAS within the local network (NFS) (DSM 4)
Overview
Synology DiskStation is designed to make storing and sharing files within your local network quick and simple, allowing you to directly access shared folders and files on the DiskStation without going through the hassle of logging into DSM everytime. For example, you'll be able to access files on your DiskStation with NFS just like other network devices.
This article guides you through the steps of using your Linux computer to access your DiskStation within the local network.
Contents
- Before You Start
- Enabling NFS on Your DiskStation
- NFS Privileges of Shared Folders
- Mounting Shared Folders with NFS
1. Before You Start
This article assumes that you have already done the following:
- Set up your Synology DiskStation.
- Installed Synology DiskStation Manager (DSM) on your DiskStation.
- Created at least one volume (see this tutorial).
- Created at least one shared folder (see this tutorial).
- Create at least one user with access privileges to the shared folder (see this tutorial).
- Configured your DiskStation to be accessible over the Internet (see this tutorial).
For information about basic hardware and software setup, please refer to the Quick Installation Guide for your Synology product. In addition, you can also see Synology DiskStation User's Guide for additional information related to this article. Both documents are available at the Synology Download Center.
2. Enabling NFS on Your DiskStation
Before accessing a shared folder with your NFS client, you will need to change the system settings of your DiskStation to allow sharing via NFS. Please follow the steps below.
- Log into DSM with an account belonging to the administrators group.
- Go to Main Menu.
- Open Control Panel.
- Go to Win/Mac/NFS.
- Go to the NFS Service tab.
- Check the box Enable NFS.
- Click Apply to save settings.
3. NFS Privileges of Shared Folders
Before accessing any shared folders with your NFS client, you must first configure the NFS privileges of the shared folder you wish to access. The steps below will guide you through the process of changing NFS privileges of the shared folders on your DiskStation.
- Go to Control Panel > Shared Folder.
- Select the shared folder that you wish to access with your NFS client.
- Click Privileges.
- Select NFS Privileges.
- On the Edit NFS privileges page, click Create.
- When the Create an NFS rule page appears, edit the following fields:
- Hostname or IP: Enter the IP address of the NFS client which will access the shared folder.
- Privileges: Select read/write privileges for the NFS client.
- Root Squash: This field allows you to control the root user access privileges of the NFS client. Please select one of the following:
- No Mapping: Allows the NFS client to maintain root access privileges.
- Map to admin: Assigns access privileges to the NFS client equivalent to the admin user access privileges on your system.
- Map to guest: Assigns access privileges to the NFS client equivalent to the guest access privileges on your system.
- Asynchronous: Checking this option allows your DiskStation to reply to requests from NFS clients before any changes to files are completed, yielding better performance.
- When finished defining the NFS rule, click OK.
- Back on the Edit NFS privileges page, note the mount path of the shared folder, which follows the format / [volume name] / [shared folder name ].
- Click OK to save your settings.
4. Mounting Shared Folders via NFS
Once you have completed the steps above, you can mount the shared folder with your NFS client. In the section below, we will access the shared folder using Linux.
- Open Linux command console.
- Enter the mount command as follows:
mount [DiskStation IP address] : [mount path of shared folder] / [mount point on NFS client] - Finally, enter the disk free (df) command to confirm you have successfully mounted the shared folder.
Need technical support? Submit Support Form