Symbolic Links on Synology DS209+

Synology’s Disk Station Manager (DSM) creates folders (e.g. volume1/music) for you when you activate e.g AudioStation or iTunes. Currently there is no possiblity to change this. But what if you want to use your own folder structure? The solution is to use Symbolic links. This article describes how you can do this.

Because I also have a NMT (HDX-1000) I created a Multimedia folder which I shared. Reason for this is that I only had to create one mapping via NFS and not for every folder (music / video / etc.).

Currently I have the following structure
Multimedia
Multimedia/Music
Multimedia/Video

1. Synology DSM

1. Login as Administrator.
2. Go to network services, Web services
3. Enable Audiostation and press OK. (DSM automatically creates a /volume1/music folder)

2. Putty

I assume that you have Putty installed, otherwise you can download it here.

1. Open Putty and login with username “root” and your administrator password.
2. Type cd /volume1 and press Enter
3. When you type dir and press Enter you will see a folder “music”.
4. Type rm -r /volume1/music and press Enter to remove the “music” folder.
5. Type ln -s /volume1/Multimedia/Music /volume1/music and press Enter to create a symbolic link. (Note: uppercase/lowercase)
6. Type dir and press enter and you will see a music folder with “-> /volume1/Multimedia/Music” behind it.

Symbolic link

Symbolic link

3. Audio Station

Copy some MP3 files to the /volume1/Multimedia/Music folder. When you’re done login to audio station and go to the library. Now you don’t see any files yet. This is because the files are not indexed yet.

4. Synology DSM

1. Go to network services, iTunes.
2. Press re-index (will take some time)
3. When finished go to the Audio station again and you’ll see your files.

Note: You don’t need to have iTunes activated. iTunes uses also the /volume1/music folder, so this will do.

5. File Station

When you click on the music folder in File Station I get a message “System is busy”. I think File Station can’t handle symbolic links but I am not sure.

6. Revert

1. Remove the Symbolic link by typing rm /volume1/music and press Enter. This doesn’t remove the /volume1/Multimedia/Music folder!
2. Typ mkdir /volume1/music and press Enter to create a music folder.

7. Problems

When you can’t connect with Putty, make sure you have enabled SSH service. (Network services, Terminal)

Tip

Tip: Create also .m3u playlist files for your albums. Those will picked up automatically.

 Synology Firmware: DSM 2.0-0731

4 comments to Symbolic Links on Synology DS209+

  • Jorrit

    Audio station works, thanks !

    FTP server also goes bad:

    Command: CWD /music/usb-music
    Response: 550 No such file or directory.
    Error: Failed to retrieve directory listing

  • Jorrit

    This works for Audio Station / FTP / File Station and Samba shares:

    mount –bind /volumeUSB1/usbshare/usb-music/ /volume1/music/usb-music/
    and
    mount –bind /volumeUSB1/usbshare/usb-music/ /volume1/video/usb-video/

    Only problem to solve is that it doesn’t work after reboot off the DS.

    I’ve found this on synlogy forum:
    [quote]
    I’ve found that editing /usr/syno/etc.defaults/rc.d/S03bootup.sh works like a charm, although perhaps not the most elegant solution. Adding the mounts to the end of that script should do the job.[/quote]
    Will try that now. Maybey someone has a beter solotion? I’m ussing externel USB, don’t know what wil happen if that is not connected

  • Jorrit

    Editing /usr/syno/etc.defaults/rc.d/S03bootup.sh does not work for me. Still working on it 😉

    Something else (and I like it):
    mounting does not alter rights

    User “Dad”
    /volumeUSB1/usbshare/ No acces
    /volume1/music/usb-music/ (mounted from /volumeUSB1/usbshare/usb-music/) RW acces

  • silverback

    Hmmm, why didn’t you use /etc/fstab ??
    see: http://www.tuxfiles.org/linuxhelp/fstab.html
    That’s the way to go for ux systems I guess.

    e.g. put this in /etc/fstab:

    /volumeUSB1/usbshare/usb-music/ /volume1/video/usb-video/ none bind 0 2

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>