MPD cannot read my music files
MPD cannot read my music files on USB disk, NFS or Windows/Samba file shares when running “mpc listall”
If you use USB disk, first check if the USB device is mounted successfully, run:
# root@voyage:~# df Filesystem 1K-blocks Used Available Use% Mounted on ... /dev/sda1 1941504 1368856 474024 75% /media/usb0 ...
You should see the entry like above.
First check you use NFS mount or Windows/Samba shares, you should see the following entry (below show NFS mount):
Filesystem 1K-blocks Used Available Use% Mounted on ... 192.168.1.101:/home/public 103343616 80710144 17383936 83% /mnt/public ...
If you see the corresponding entries, problem the music files does not have proper permission set correctly, run:
# cd /media/usb0 # chmod –R 777 /media/usb0
# cd /mnt/public # chmod –R 777 /mnt/public
The above commands will set the permission of all files (and under all sub-directories) to be publicly readable. Then run “mpc update; mpc listall” should see all music file scanned by MPD daemon.