Mounting a Synology NAS on Linux is simple, but can present challenges and potentially waste valuable time. This repository outlines the procedure to mount a Synology DS1821+ (DSM 7.1.1) on an Ubuntu 20 system. The outlined steps are likely compatible with other Synology models and Linux distributions, requiring minimal modifications if any.
- Click the pull-down menu icon on the top-left bar
- Goto
Settings
- On the
Ethernet (...)
connection in use, click on thegear
- Goto
IPv4
and take note of theIPv4 Address
. Ex 150.61.178.19
- Goto
Control Panel
- Click
Shared Folder
and find your share you want to mount - Click
Edit
- Goto
NFS Permissions
- Click
Create
- In the
Hostname or IP
box, enter the Ubuntu 20IPv4 Address
found above - Click save
- Take note of the
Mount path
located at the bottom of the window. Ex /volume1/jagraz - Click save
- Open Terminal and type:
sudo apt-get install nfs-common -y
- Make a directory to mount to using the command below. Replace
my_mount_location
for the directory name of your choosing
sudo mkdir /media/my_mount_location
- Change the access premissions, at the Open Terminal type:
sudo chmod -R 755 my_mount_location
- At the Open Terminal, type:
sudo gedit /etc/fstab
- At the bottom of the fstab file, type:
# automount from synology box
150.65.138.4:/volume1/shared_folder /media/my_mount_location nfs nouser,rsize=8192,wsize=8192,atime,auto,rw,dev,exec,suid 0 0
Where:
150.65.138.4
is the static IP of the Synology box
/volume1/shared_folder
is your mount path shared folder noted earlier
/media/my_mount_location
is the folder created in step 2
- Save the fstab file and on the Open Terminal type command below or reboot:
sudo mount -a
- Navigate to the folder created in Step 2, files should be there
- Remove the text in the fstab file from step 5, reboot, and start over
- Make sure the permissions on the mounting directory in step 3 are correct
- Verify the IP addresses for the Ubuntu machine and Synology box are correct
- Verify the IP address entered in
Hostname or IP
box is correct - Check directory/files permissions. Check user "id -u" and if need be, change permissions using the code below:
sudo chown -R $(id -u):$(id -g) /path/to/directory