Daily Weekly Monthly

Daily Shaarli

All links of one day in a single page.

May 7, 2020

How to create a symbolic link to a folder on a Synology NAS – albertogonzalez.net

Using mount command

Maybe your first option would be to use the ln command but I’m sorry to say that it will maybe not work properly because the access to symbolic links via Samba/FTP is disabled on the NAS for security reasons and I haven’t found a way to enable it. So the symbolic link might work in some cases, such as using an UPnP client or on the DS audio app, but not from the DS file app or on File Station.

Having said that, a better solution is to use the mount command. For using it we will access to the Synology NAS via your preferred Telnet/SSH client. I use the ssh command on a Mac Terminal window.

ssh admin@<NAS IP Address>
Copy

And then, assuming that the source folder you want to link is /volume1/music and the “symbolic link” folder you want to create is /volume2/share/music

mkdir /volume2/share/music
sudo mount --bind /volume1/music /volume2/share/music
Copy

Permanent solution

However, this symbolic link will only work until the NAS is restarted. If you want the folder to be mounted every time the NAS is restarded you should edit the /etc/rc.local file adding the mount command line.

sudo vi /etc/rc.local
sudo mount --bind /volume1/music /volume2/share/music