Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpd NAS mount use comment information to mount #110

Open
pesimon opened this issue Jul 29, 2020 · 7 comments
Open

mpd NAS mount use comment information to mount #110

pesimon opened this issue Jul 29, 2020 · 7 comments
Labels
bug next update This issue will be addressed in the next update cycle

Comments

@pesimon
Copy link

pesimon commented Jul 29, 2020

Looks like Comment field is used in share name when mounting NAS shares

Share:

smbclient -L 192.168.188.1 -U guest

	Sharename       Type      Comment
	---------       ----      -------
	IPC$            IPC       IPC Service
	FRITZ.NAS       Disk      FRITZ!Box

Log

Jul 29 14:42:29 hifiberry beocreate2[565]: Added 'FRITZ.NAS|FRITZ!Bo/fbhdd/media/music' from NAS 'undefined'.
Jul 29 14:42:29 hifiberry kernel: [[0;1;38;5;185m[[0;1;39m[[0;1;38;5;185mNo dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), fr
om CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.[[0m
Jul 29 14:42:29 hifiberry kernel: [[0;1;31m[[0;1;39m[[0;1;31mCIFS VFS: BAD_NETWORK_NAME: \\FRITZ-NAS\FRITZ.NAS|FRITZ!Bo[[0m
Jul 29 14:42:29 hifiberry kernel: [[0;1;31m[[0;1;39m[[0;1;31mCIFS VFS: cifs_mount failed w/return code = -2[[0m

Mount as //192.168.188.1/FRITZ.NAS/ works from console with smb3

@hifiberry
Copy link
Contributor

What's the output of

/opt/hifiberry/bin/list-smb-shares

@pesimon
Copy link
Author

pesimon commented Jul 29, 2020

/opt/hifiberry/bin/list-smb-servers
192.168.188.202, name_query
Looking, name_query
OPENHAB, 192.168.188.202
FRITZ-NAS, 192.168.188.1 192.168.189.1 169.254.1.1
FRITZ-NAS, 192.168.188.1 192.168.189.1 169.254.1.1
FRITZ-NAS, 192.168.188.1 192.168.189.1 169.254.1.1

@tuomashamalainen
Copy link
Collaborator

Hi Peter, thanks for reporting this.

I would like to request one more piece of command output: smbclient -N -L 192.168.188.1 -U guest -g | grep 'Disk|' (change IP address or user name to suit your NAS).

There appears to be a parsing error that I did not encounter in my network environment, so this will help me investigate that error and make appropriate changes.

Best,
Tuomas from Bang & Olufsen

@pesimon
Copy link
Author

pesimon commented Jul 29, 2020

Could not inject password, but the output before grep is

$ smbclient  -L 192.168.188.1 -U guest -g
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
Enter WORKGROUP\guest's password:
dos charset 'CP850' unavailable - using ASCII
IPC|IPC$|IPC Service
Disk|FRITZ.NAS|FRITZ!Box

@tuomashamalainen
Copy link
Collaborator

Thanks, this is already very helpful. This issue will be fixed in the next update.

@tuomashamalainen tuomashamalainen added the next update This issue will be addressed in the next update cycle label Jul 29, 2020
@hifiberry
Copy link
Contributor

As a workaround, you can simply edit /etc/smbmounts.conf

@pesimon
Copy link
Author

pesimon commented Jul 29, 2020

already did - works fine ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug next update This issue will be addressed in the next update cycle
Projects
None yet
Development

No branches or pull requests

3 participants