Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
Simply: Use symlink(s)
Explanation: Music Player Daemon only supports one directory for the music_directory option in mpd.conf. There is a good reason for that and it is because MPD fully supports symlinks. Symlinks are easy to use. The following example will give you an idea of how to setup multiple directories under your music_directory.
- Start off by going to your music_directory, for instance if your music_directory is "/home/mpd/root" you type
user@computer ~ $ cd /home/mpd/root
at a shell prompt.
- Next, if I wanted to link to /mnt/music/albums it would go like this:
user@computer /home/mpd/root $ ln -s /mnt/music/albums user@computer /home/mpd/root $ mpc update
If you wish to give the symlink a different name, simply specify so after the command above.
A common problem: Remember that a symlink only points to the directory, the symlink itself has all permissions to do anything, but the directory it points to may not, if you have issues using symlinks it is probably a permissions problem with the target directory, be sure to check this.
For Ubuntu users, if your directories and files are on other devices, like /dev/hda1, you must add mpd user to "plugdev" group.
For more information see: Symbolic_link