(02-13-2020, 07:11 AM)a491765 Wrote: I have no music source added in moode option, the usb is directly attached to the pi running moode. So the usb is automatic source detected and mounted.
I see that the owner for /medi/myusb is root i tried : sudo chown -R pi:pi /media/myusb but permission denied too.
The simple way will be to have the root access from filezilla. What is the root password ?
Is see, I've not used a local USB drive with Moode so didn't realize these don't show in the music sources after mounting.
Logging in as root is not a solution as you can potentially create files and directories that other users (like the mpd user) can't read thus perpetuating your permissions issues.
The simplest solution is to just fix the permissions on your files (if need be) which were presumably put there using another computer.
So the ownership of the mount point (/media/myusb) is not that relevent if the filesystem is mounted read-write and the mount point permissions is world writable.
You can see the effective mount options on your mounted filesystem by running;
... you should be able to see an
ro or an
rw in the output which denotes being mounted as a read-only or read-write filesystem.
The automounting is handled by udevil which also determines the default mount options depending on what type of filesystem is on a connected disk.
To assist you further, run the following and post the output...
Code:
mount | grep media
ls -ld /media/myusb
ls -l /media/myusb