Mount to SAMBA shared drive
Like NFS share, if you have music files on Windows or Samba server, you can mount a directory to the samba shared directory. Edit /etc/fstab as below:
# remountrw # vi /etc/fstab //192.168.1.101/public /mnt/public cifs username=
,password= ,file_mode=0644,dir_mode=0755,iocharset=utf8 0 0
This assumes you have 192.168.1.101 server with a Windows/Samba shared directory named “public”. You need to provide the username and password.
Like NFS mount, create a /mnt/public directory on Voyage MPD and mount to Windows/SAMBA server. Then create a symlink so that MPD is able to search the music files under the SAMBA shared directory.
# mkdir /mnt/public # mount –a # ln -s /mnt/public/ /var/lib/mpd/music/public # chmod –R ugo+r /mnt/public/
Note: If you are using Synology NAS, please use “username=<name of NAS>/admin” as user name parameter.