Posts: 33
Threads: 2
Joined: Oct 2022
Reputation:
0
(10-05-2022, 01:11 PM)TheOldPresbyope Wrote: @Phosphoric
When the Linux Mint File Manager tells you a password is required for your SMB share, tell it to connect as registered user pi and whatever password you gave user pi on your moOde player.
ETA: Sorry, this reply assumes you got a share list back. I should have gone back to read your original post. Where in the mounting sequence, exactly, do you encounter the "unable to..." message?
Regards,
Kent
Thanks Kent,
I click on Computer, Network and 4 directories open: Moode, Raspberrypi (my NAS), My Desktop and Windows desktop.
If I click on Moode I get the "Unable to mount location etc" message. If I click on Raspberrypi, various directories open including Media where I can then edit the contents.
If I revert back to ver. 7.6x and click on Moode, the directories open and I can select my USB mounted sd card and edit it normally.
There's just some difference between the two versions that my Linux PC doesn't like........me included.
Posts: 14,003
Threads: 318
Joined: Mar 2018
Reputation:
571
(10-05-2022, 03:05 PM)Phosphoric Wrote: (10-05-2022, 10:55 AM)Tim Curtis Wrote: Even with sudo you can't write to the drive?
Try the mount manually with rw and userid=Guest
Samba shares are specified in the file /etc/samba/smb.conf.
Default access control for each share is:
read only = No
guest ok = Yes
And the SMB server proxies as root to access whats behind a share
guest account = root
Code: pi@moode:~ $ cat /etc/samba/smb.conf
[global]
server string = Moode SMB Server
multicast dns register = no
security = User
map to guest = Bad User
guest account = root
log level = 0
load printers = No
printcap name = /dev/null
disable spoolss = Yes
printing = bsd
preferred master = No
local master = No
domain master = No
dns proxy = No
create mask = 0775
directory mask = 0775
browseable = Yes
veto files = /._*/.DS_Store/
delete veto files = yes
[NAS]
comment = NAS Shares
path = /mnt/NAS
read only = No
guest ok = Yes
[Playlists]
comment = Playlist Directory
path = /var/lib/mpd/playlists
read only = No
guest ok = Yes
[SDCard]
comment = SDCARD Storage
path = /mnt/SDCARD
read only = No
guest ok = Yes
[VFAT128]
comment = USB Storage
path = /media/VFAT128
read only = No
guest ok = Yes
Thanks Tim, but as my first post, the smb.conf files are exactly the same in ver.7.6x and ver. 8.xx 7.6x works perfectly 8xx won't.
Right but the debug needs to happen using your 8 system.
Try mounting the share manually from your Mint box. Below is what a mount string looks like when creating an SMB Music Source config in moOde. Note that the default is to mount using "ro" (read-only). You would need to change to "rw".
Example:
Code:
Code: mount -t cifs "//TRX/VFAT128/FLAC" -o username="Guest",password="",rsize=61440,wsize=65536,iocharset=utf8,vers=3.1.1,ro,noserverino,dir_mode=0777,file_mode=0777 "/mnt/NAS/TRX-SMB-FLAC"
I ran a quick test on using "rw" and no issues writing to "/mnt/NAS/TRX-SMB-FLAC" in the above example.
Also, in a previous post do I understand correctly that you tried sudo on your moOde 8 system and it did not work?
Posts: 6,208
Threads: 184
Joined: Apr 2018
Reputation:
249
@ Phosphoric
Ah, I'll bet you missed a recent change to moOde. You now have to enable SMB in the System Config menu under the heading File Sharing. The setting is off by default.
Regards,
Kent
Posts: 33
Threads: 2
Joined: Oct 2022
Reputation:
0
(10-05-2022, 03:35 PM)Tim Curtis Wrote: (10-05-2022, 03:05 PM)Phosphoric Wrote: (10-05-2022, 10:55 AM)Tim Curtis Wrote: Even with sudo you can't write to the drive?
Try the mount manually with rw and userid=Guest
Samba shares are specified in the file /etc/samba/smb.conf.
Default access control for each share is:
read only = No
guest ok = Yes
And the SMB server proxies as root to access whats behind a share
guest account = root
Code: pi@moode:~ $ cat /etc/samba/smb.conf
[global]
server string = Moode SMB Server
multicast dns register = no
security = User
map to guest = Bad User
guest account = root
log level = 0
load printers = No
printcap name = /dev/null
disable spoolss = Yes
printing = bsd
preferred master = No
local master = No
domain master = No
dns proxy = No
create mask = 0775
directory mask = 0775
browseable = Yes
veto files = /._*/.DS_Store/
delete veto files = yes
[NAS]
comment = NAS Shares
path = /mnt/NAS
read only = No
guest ok = Yes
[Playlists]
comment = Playlist Directory
path = /var/lib/mpd/playlists
read only = No
guest ok = Yes
[SDCard]
comment = SDCARD Storage
path = /mnt/SDCARD
read only = No
guest ok = Yes
[VFAT128]
comment = USB Storage
path = /media/VFAT128
read only = No
guest ok = Yes
Thanks Tim, but as my first post, the smb.conf files are exactly the same in ver.7.6x and ver. 8.xx 7.6x works perfectly 8xx won't.
Right but the debug needs to happen using your 8 system.
Try mounting the share manually from your Mint box. Below is what a mount string looks like when creating an SMB Music Source config in moOde. Note that the default is to mount using "ro" (read-only). You would need to change to "rw".
Example:
Code:
Code: mount -t cifs "//TRX/VFAT128/FLAC" -o username="Guest",password="",rsize=61440,wsize=65536,iocharset=utf8,vers=3.1.1,ro,noserverino,dir_mode=0777,file_mode=0777 "/mnt/NAS/TRX-SMB-FLAC"
I ran a quick test on using "rw" and no issues writing to "/mnt/NAS/TRX-SMB-FLAC" in the above example.
Also, in a previous post do I understand correctly that you tried sudo on your moOde 8 system and it did not work?
Thanks again Tim,
sadly I can't quite understand what you are trying to get me to do. I can't reconcile that code with what I have on my PC.
How does "//TRX/VFAT128/FLAC" become "/mnt/NAS/TRX-SMB-FLAC"?
I think my mount point is MOODE/media/'Moode playe'
I'm also not sure to which command you are asking if I used sudo?
Posts: 33
Threads: 2
Joined: Oct 2022
Reputation:
0
10-05-2022, 04:26 PM
(This post was last modified: 10-05-2022, 04:32 PM by Phosphoric.
Edit Reason: additional info
)
Oh and by the way, the smb.conf files of both my versions of mo0de do not have VFAT128 ref in them but Moode player.
comment = SDCARD Storage
path = /mnt/SDCARD
read only = No
guest ok = Yes
[Moode player]
comment = USB Storage
path = /media/Moode player
read only = No
guest ok = Yes
~
sorry, I don't know how to enclose things in a code box!
I'm also a bit slow to respond as I don't seem to get email notifications even though enabled in my profile?
Posts: 14,003
Threads: 318
Joined: Mar 2018
Reputation:
571
(10-05-2022, 04:20 PM)Phosphoric Wrote: (10-05-2022, 03:35 PM)Tim Curtis Wrote: (10-05-2022, 03:05 PM)Phosphoric Wrote: (10-05-2022, 10:55 AM)Tim Curtis Wrote: Even with sudo you can't write to the drive?
Try the mount manually with rw and userid=Guest
Samba shares are specified in the file /etc/samba/smb.conf.
Default access control for each share is:
read only = No
guest ok = Yes
And the SMB server proxies as root to access whats behind a share
guest account = root
Code: pi@moode:~ $ cat /etc/samba/smb.conf
[global]
server string = Moode SMB Server
multicast dns register = no
security = User
map to guest = Bad User
guest account = root
log level = 0
load printers = No
printcap name = /dev/null
disable spoolss = Yes
printing = bsd
preferred master = No
local master = No
domain master = No
dns proxy = No
create mask = 0775
directory mask = 0775
browseable = Yes
veto files = /._*/.DS_Store/
delete veto files = yes
[NAS]
comment = NAS Shares
path = /mnt/NAS
read only = No
guest ok = Yes
[Playlists]
comment = Playlist Directory
path = /var/lib/mpd/playlists
read only = No
guest ok = Yes
[SDCard]
comment = SDCARD Storage
path = /mnt/SDCARD
read only = No
guest ok = Yes
[VFAT128]
comment = USB Storage
path = /media/VFAT128
read only = No
guest ok = Yes
Thanks Tim, but as my first post, the smb.conf files are exactly the same in ver.7.6x and ver. 8.xx 7.6x works perfectly 8xx won't.
Right but the debug needs to happen using your 8 system.
Try mounting the share manually from your Mint box. Below is what a mount string looks like when creating an SMB Music Source config in moOde. Note that the default is to mount using "ro" (read-only). You would need to change to "rw".
Example:
Code:
Code: mount -t cifs "//TRX/VFAT128/FLAC" -o username="Guest",password="",rsize=61440,wsize=65536,iocharset=utf8,vers=3.1.1,ro,noserverino,dir_mode=0777,file_mode=0777 "/mnt/NAS/TRX-SMB-FLAC"
I ran a quick test on using "rw" and no issues writing to "/mnt/NAS/TRX-SMB-FLAC" in the above example.
Also, in a previous post do I understand correctly that you tried sudo on your moOde 8 system and it did not work?
Thanks again Tim,
sadly I can't quite understand what you are trying to get me to do. I can't reconcile that code with what I have on my PC.
How does "//TRX/VFAT128/FLAC" become "/mnt/NAS/TRX-SMB-FLAC"?
I think my mount point is MOODE/media/'Moode playe'
I'm also not sure to which command you are asking if I used sudo?
From your OP
"I can connect to the moode server via ssh pi@192.168.xxx.xxx and see all the files on the sd card but I am unable to write to the media file (you do not have permission)"
# Test to see if USB drive allows writes
1. ssh pi@192.168.xxx.xxx
2. ls /media
Your USB/uSD drive should be listed here. The name will be its drive label
3. cd /media/DRIVE_LABLE
4. sudo touch ./test.txt
If no errors
5. sudo rm ./test.txt
What are the results of this test?
Posts: 33
Threads: 2
Joined: Oct 2022
Reputation:
0
(10-05-2022, 04:18 PM)TheOldPresbyope Wrote: @Phosphoric
Ah, I'll bet you missed a recent change to moOde. You now have to enable SMB in the System Config menu under the heading File Sharing. The setting is off by default.
Regards,
Kent
I did spot that one Kent, believe me, I've tried every setting over the last few days!
Posts: 33
Threads: 2
Joined: Oct 2022
Reputation:
0
10-05-2022, 04:49 PM
(This post was last modified: 10-05-2022, 04:56 PM by Phosphoric.)
(10-05-2022, 04:38 PM)Tim Curtis Wrote: (10-05-2022, 04:20 PM)Phosphoric Wrote: (10-05-2022, 03:35 PM)Tim Curtis Wrote: (10-05-2022, 03:05 PM)Phosphoric Wrote: (10-05-2022, 10:55 AM)Tim Curtis Wrote: Even with sudo you can't write to the drive?
Try the mount manually with rw and userid=Guest
Samba shares are specified in the file /etc/samba/smb.conf.
Default access control for each share is:
read only = No
guest ok = Yes
And the SMB server proxies as root to access whats behind a share
guest account = root
Code: pi@moode:~ $ cat /etc/samba/smb.conf
[global]
server string = Moode SMB Server
multicast dns register = no
security = User
map to guest = Bad User
guest account = root
log level = 0
load printers = No
printcap name = /dev/null
disable spoolss = Yes
printing = bsd
preferred master = No
local master = No
domain master = No
dns proxy = No
create mask = 0775
directory mask = 0775
browseable = Yes
veto files = /._*/.DS_Store/
delete veto files = yes
[NAS]
comment = NAS Shares
path = /mnt/NAS
read only = No
guest ok = Yes
[Playlists]
comment = Playlist Directory
path = /var/lib/mpd/playlists
read only = No
guest ok = Yes
[SDCard]
comment = SDCARD Storage
path = /mnt/SDCARD
read only = No
guest ok = Yes
[VFAT128]
comment = USB Storage
path = /media/VFAT128
read only = No
guest ok = Yes
Thanks Tim, but as my first post, the smb.conf files are exactly the same in ver.7.6x and ver. 8.xx 7.6x works perfectly 8xx won't.
Right but the debug needs to happen using your 8 system.
Try mounting the share manually from your Mint box. Below is what a mount string looks like when creating an SMB Music Source config in moOde. Note that the default is to mount using "ro" (read-only). You would need to change to "rw".
Example:
Code:
Code: mount -t cifs "//TRX/VFAT128/FLAC" -o username="Guest",password="",rsize=61440,wsize=65536,iocharset=utf8,vers=3.1.1,ro,noserverino,dir_mode=0777,file_mode=0777 "/mnt/NAS/TRX-SMB-FLAC"
I ran a quick test on using "rw" and no issues writing to "/mnt/NAS/TRX-SMB-FLAC" in the above example.
Also, in a previous post do I understand correctly that you tried sudo on your moOde 8 system and it did not work?
Thanks again Tim,
sadly I can't quite understand what you are trying to get me to do. I can't reconcile that code with what I have on my PC.
How does "//TRX/VFAT128/FLAC" become "/mnt/NAS/TRX-SMB-FLAC"?
I think my mount point is MOODE/media/'Moode playe'
I'm also not sure to which command you are asking if I used sudo?
From your OP
"I can connect to the moode server via ssh pi@192.168.xxx.xxx and see all the files on the sd card but I am unable to write to the media file (you do not have permission)"
# Test to see if USB drive allows writes
1. ssh pi@192.168.xxx.xxx
2. ls /media
Your USB/uSD drive should be listed here. The name will be its drive label
3. cd /media/DRIVE_LABLE
4. sudo touch ./test.txt
If no errors
5. sudo rm ./test.txt
What are the results of this test? Thanks Tim,
That installed a file test.txt in to my 'Moode playe' directory with no errors
That ssh pi@192.168.xxx.xxx was from my Linux PC on the network discovery section which is a GUI. What I have just done is ssh in from the terminal in my Linux pc, I don't know if there is a difference?
Posts: 14,003
Threads: 318
Joined: Mar 2018
Reputation:
571
10-05-2022, 04:53 PM
(This post was last modified: 10-05-2022, 04:56 PM by Tim Curtis.
Edit Reason: ETA
)
What is output from the following commands on the 192.168.x.x system?
Code: ls -l /media
systemctl status smbd
Btw, Code Box icon is on the toolbar on the right side. You have to be in Compose or Preview Post mode.
Posts: 6,208
Threads: 184
Joined: Apr 2018
Reputation:
249
(10-05-2022, 04:41 PM)Phosphoric Wrote: (10-05-2022, 04:18 PM)TheOldPresbyope Wrote: @Phosphoric
Ah, I'll bet you missed a recent change to moOde. You now have to enable SMB in the System Config menu under the heading File Sharing. The setting is off by default.
Regards,
Kent
I did spot that one Kent, believe me, I've tried every setting over the last few days!
The only way I've been able to repro the "Unable to mount location....' message has been to start with a fresh image of moOde 8.2.0 with the SMB service disabled. When I browse the network from my Linux Mint file manager I see an icon for the moOde player but clicking on it gives me this message.
Once I've enabled the SMB service, I can click on the icon to get to all the shares on the player. To open any of them I have to enter the user pi credentials as I said previously. Same is true if I open them on my Apple iPad using OWLfile app, for example.
For SMB sources, I have tried both single partition USB thumbdrives and two-partition uSD cards (with moOde image on them) in a USB adapter. All work just fine browsing, reading, and writing all the file systems available.
Incidentally, once I've gone through all this I find that if I disable the moOde player's SMB service again, clicking on the host icon in my Linux Mint File Manager no longer triggers the error message. I just get an empty view of shares on that host. Clearly there's some caching going on in Linux Mint or its File Manager.
Regards,
Kent
|