How-Tos/Computing
Synology Tips
Synology provides some well-thought out Network Attached Storage (NAS) units, but their OS has some peculiarities which sometimes make it awkward to use. These tips have been tested on a DS220+ running DSM 7.2.2.
Creating symbolic links
DSM does not let you use symbolic links, so you have to rely on mount --bind commands at boot time instead:
- In the Control Panel, under Services, select Task Scheduler.
- Click on Create, and select Triggered Task, then User-defined script. This creates a new Create task window
- Under General, fill in the fields:
- Task: (use whatever you desire, e.g. symlinks)
- User: root
- Event: Boot-up
- Pre-task: (leave blank)
- Check Enabled box
- Under the Task Settings, fill in:
- Notification: (whatever you want)
- Run command:
mount --bind /volume1/dir1 /volume1/dir2
where dir1 is the target directory, and dir2 is where to link it to. If you need multiple links, use multiple commands on multiple lines.
The log files will go where specified in this section:
- In the Control Panel, under Services, select Task Scheduler.
- Click on Settings.
- Check Save output results box
- Save to: (select directory desired)
To test it, or run right away:
- In the Control Panel, under Services, select Task Scheduler.
- Click on the task you just created.
- Click on Run, confirm, then view the log file created above, and correct any mistakes.
Using SMB instead of NFS to avoid @eaDir directories
to do