Page 1 of 1

MPC cannot find USB

Posted: Tue Jan 21, 2014 5:55 pm
by stilliwigs
Hi,

So after a while of the RPI being dormant as I decided what to do with it, I finally decided to have a headless music player.

So I set up mpd and mpc, added my internet radio feeds and configured minidlna that now plays my USB files.

But. Thats not enough! I want to be able to play the files locally on the RPi.

So did an mpc add /usb0 (my mount point for the USB) and it states the directory is not found. So I tried mpc add /dev/sda1 which didnt work either.

So my question is how can I make it so I can access my USB files through mpd/mpc?

Re: MPC cannot find USB

Posted: Tue Jan 21, 2014 6:07 pm
by redhawk
You must mount /dev/sda1 to a mount point (a directory) before you can access files stored on it.
If you're running the GUI desktop this happens automatically, however since you're running purely from the console then you need to run the mount command to manually mount your storage device.

Richard S.

Re: MPC cannot find USB

Posted: Tue Jan 21, 2014 6:18 pm
by stilliwigs
Thanks for the speedy reply, I have already mounted my usb . it does so on boot

Re: MPC cannot find USB

Posted: Tue Jan 21, 2014 6:24 pm
by redhawk
If your device is mounted then I don't see why there should be a problem.

Can you browse files from your flash drive if you "cd" and "ls" from the console??

Does MPC have the correct security permissions to access the mount point (read/execute attributes) assuming it runs from a non-root account??

Richard S.

Re: MPC cannot find USB

Posted: Tue Jan 21, 2014 7:20 pm
by stilliwigs
I have found a work around by using Moc. Does what I needed mpd to do.

Cheers for your time