Max2Play Home › Forums › Max2Play on Raspberry PI › Can't mount CIFS file system on Thecus NAS with Stretch / M2P 2.46
- This topic has 3 replies, 2 voices, and was last updated 6 years, 7 months ago by Heiner premium.
-
Posted in: Max2Play on Raspberry PI
-
1. Mai 2018 at 14:23 #35398
Hi.
I can’t successfully mount CIFS shares since upgrading to the stretch / M2P 2.46 version. When I use the parameters below, it says that the mountpoint was successfully created but I can see no files in the mountpoint ‚/mnt/flacfiles‘.
I previously had this working without any issue or changes on the NAS server, on both the Jessie versions of Max2play and the stretch beta with a patched kernal to support the RPI Model 3+.
here is my fstab file:
proc /proc proc defaults 0 0 PARTUUID=ee397c53-01 /boot vfat defaults 0 2 PARTUUID=ee397c53-02 / ext4 defaults,noatime 0 1 # a swapfile is not a swap partition, no line here # use dphys-swapfile swap[on|off] for that ##USERMOUNT //192.168.1.100/FLAC\040files /mnt/flacfiles cifs user=squeezebox,password=squee zebox,sec=ntlm,iocharset=utf8,vers=1.0
I’ve also tried this with the hostname instead of the IP Address, different accounts, sec=ntlm2 parameter and vers=2.0/3.0 without success. Along the way, i’ve also fixed a master browser issue that was causing the ‚Show Network Devices‘ on the filesystem mount page to not work (by making my RPI the master browser editting smb.conf.
Here is the output of my testparam smb.com > smb.log
# Global parameters [global] server string = %h server (Samba, Ubuntu) preferred master = Yes log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d usershare allow guests = Yes unix extensions = No map to guest = Bad User obey pam restrictions = Yes pam password change = Yes passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword: * %n\n *password\supdated\ssuccessfully* . passwd program = /usr/bin/passwd %u unix password sync = Yes dns proxy = No wins support = Yes idmap config * : backend = tdb wide links = Yes [printers] comment = All Printers path = /var/spool/samba browseable = No printable = Yes create mask = 0700 [print$] comment = Printer Drivers path = /var/lib/samba/printers include = /opt/max2play/samba.conf
Help – I’ve run out of permutations of things to try!.
Regards
Alex- This topic was modified 6 years, 8 months ago by AlexMUK.
2. Mai 2018 at 20:04 #35452Some additional diagnotics – it appears that my workgroup config is ok, and nmdb resolves correctly my hostname (n5200pro).
What next?
pi@max2play3:/mnt/flacfiles $ sudo smbclient -d 7 -L //n5200pro.home -Usqueezebox%squeezebox INFO: Current debug levels: all: 7 tdb: 7 printdrivers: 7 lanman: 7 smb: 7 rpc_parse: 7 rpc_srv: 7 rpc_cli: 7 passdb: 7 sam: 7 auth: 7 winbind: 7 vfs: 7 idmap: 7 quota: 7 acls: 7 locking: 7 msdfs: 7 dmapi: 7 registry: 7 scavenger: 7 dns: 7 ldb: 7 tevent: 7 lp_load_ex: refreshing parameters Initialising global parameters rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) INFO: Current debug levels: all: 7 tdb: 7 printdrivers: 7 lanman: 7 smb: 7 rpc_parse: 7 rpc_srv: 7 rpc_cli: 7 passdb: 7 sam: 7 auth: 7 winbind: 7 vfs: 7 idmap: 7 quota: 7 acls: 7 locking: 7 msdfs: 7 dmapi: 7 registry: 7 scavenger: 7 dns: 7 ldb: 7 tevent: 7 Processing section "[global]" doing parameter follow symlinks = yes doing parameter wide links = yes doing parameter unix extensions = no doing parameter workgroup = workgroup doing parameter server string = %h server (Samba, Ubuntu) doing parameter wins support = yes doing parameter preferred master = yes doing parameter dns proxy = no doing parameter log file = /var/log/samba/log.%m doing parameter max log size = 1000 doing parameter syslog = 0 WARNING: The "syslog" option is deprecated doing parameter panic action = /usr/share/samba/panic-action %d doing parameter encrypt passwords = true doing parameter passdb backend = tdbsam doing parameter obey pam restrictions = yes doing parameter unix password sync = yes doing parameter passwd program = /usr/bin/passwd %u doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . doing parameter pam password change = yes doing parameter map to guest = bad user doing parameter usershare allow guests = yes pm_process() returned Yes lp_servicenumber: couldn't find homes added interface eth0 ip=192.168.1.245 bcast=192.168.1.255 netmask=255.255.255.0 Netbios name list:- my_netbios_names[0]="MAX2PLAY3" Client started (version 4.5.12-Debian). Opening cache file at /var/cache/samba/gencache.tdb Opening cache file at /var/run/samba/gencache_notrans.tdb sitename_fetch: No stored sitename for realm '' name n5200pro.home#20 found. Connecting to 192.168.1.100 at port 445 Socket options: SO_KEEPALIVE = 0 SO_REUSEADDR = 0 SO_BROADCAST = 0 TCP_NODELAY = 1 TCP_KEEPCNT = 9 TCP_KEEPIDLE = 7200 TCP_KEEPINTVL = 75 IPTOS_LOWDELAY = 0 IPTOS_THROUGHPUT = 0 SO_REUSEPORT = 0 SO_SNDBUF = 44800 SO_RCVBUF = 341760 SO_SNDLOWAT = 1 SO_RCVLOWAT = 1 SO_SNDTIMEO = 0 SO_RCVTIMEO = 0 TCP_QUICKACK = 1 TCP_DEFER_ACCEPT = 0 session request ok Doing spnego session setup (blob length=42) got OID=1.3.6.1.4.1.311.2.2.10 got principal=NONE GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'ntlmssp_resume_ccache' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered Starting GENSEC mechanism spnego Starting GENSEC submechanism ntlmssp Got challenge flags: Got NTLMSSP neg_flags=0x628a8215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_ALWAYS_SIGN NTLMSSP_TARGET_TYPE_SERVER NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY NTLMSSP_NEGOTIATE_TARGET_INFO NTLMSSP_NEGOTIATE_VERSION NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x62088215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_ALWAYS_SIGN NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY NTLMSSP_NEGOTIATE_VERSION NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x62088215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_ALWAYS_SIGN NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY NTLMSSP_NEGOTIATE_VERSION NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x62088215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_ALWAYS_SIGN NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY NTLMSSP_NEGOTIATE_VERSION NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.3] session setup ok tconx ok Sharename Type Comment --------- ---- ------- Bind RPC Pipe: host n5200pro.home auth_type 0, auth_level 1 rpc_api_pipe: host n5200pro.home rpc_read_send: data_to_read: 52 check_bind_response: accepted! rpc_api_pipe: host n5200pro.home rpc_read_send: data_to_read: 1560 test Disk test folder FLAC files Disk Squeezebox FLAC library charlie Disk Charlie's home directory dominic Disk Dominic's home diectory torrents Disk Torrent files and downloads backup Disk Shared backup folder photos Disk Shared photo library music files Disk Music library movies Disk Movies installation cds Disk Installable CD and DVD ISOs downloads Disk Shared downloads directory lucilla Disk Lucilla's Home Directory alex Disk Alex's Home Directory usbcopy Disk usbcopy usbhdd Disk usbhdd IPC$ IPC IPC Service (n5200pro) sitename_fetch: No stored sitename for realm '' name n5200pro.home#20 found. Connecting to 192.168.1.100 at port 139 Socket options: SO_KEEPALIVE = 0 SO_REUSEADDR = 0 SO_BROADCAST = 0 TCP_NODELAY = 1 TCP_KEEPCNT = 9 TCP_KEEPIDLE = 7200 TCP_KEEPINTVL = 75 IPTOS_LOWDELAY = 0 IPTOS_THROUGHPUT = 0 SO_REUSEPORT = 0 SO_SNDBUF = 44800 SO_RCVBUF = 341760 SO_SNDLOWAT = 1 SO_RCVLOWAT = 1 SO_SNDTIMEO = 0 SO_RCVTIMEO = 0 TCP_QUICKACK = 1 TCP_DEFER_ACCEPT = 0 session request ok Doing spnego session setup (blob length=42) got OID=1.3.6.1.4.1.311.2.2.10 got principal=NONE Starting GENSEC mechanism spnego Starting GENSEC submechanism ntlmssp Got challenge flags: Got NTLMSSP neg_flags=0x628a8215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_ALWAYS_SIGN NTLMSSP_TARGET_TYPE_SERVER NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY NTLMSSP_NEGOTIATE_TARGET_INFO NTLMSSP_NEGOTIATE_VERSION NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x62088215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_ALWAYS_SIGN NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY NTLMSSP_NEGOTIATE_VERSION NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x62088215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_ALWAYS_SIGN NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY NTLMSSP_NEGOTIATE_VERSION NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x62088215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_ALWAYS_SIGN NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY NTLMSSP_NEGOTIATE_VERSION NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.3] session setup ok tconx ok Server Comment --------- ------- MAX2PLAY3 max2play3 server (Samba, Ubuntu) N5200PRO n5200pro Workgroup Master --------- ------- WORKGROUP MAX2PLAY3 pi@max2play3:/mnt/flacfiles $
2. Mai 2018 at 20:18 #35454…. but this command works fine! what gives??
pi@max2play3:/mnt $ sudo mount -v -t cifs //n5200pro.home/Music\ Files /mnt/music_files -o username=squeezebox,password=squeezebox,domain=workgroup,iocharset=utf8,sec=ntlm,vers=1.0 mount.cifs kernel mount options: ip=192.168.1.100,unc=\\n5200pro.home\Music Files,iocharset=utf8,sec=ntlm,vers=1.0,user=squeezebox,domain=workgroup,pass=******** pi@max2play3:/mnt $ ^C pi@max2play3:/mnt $ cd music_files pi@max2play3:/mnt/music_files $ ls ls: cannot read symbolic link 'FLAC files': Not a directory AAC Files dMC-R14.2-Ref-Registered.exe infobrowser.opml SyncToy_96a02d5a-fe36-460d-8080-fb1ac54d7ba3.dat Album Artwork dMC-R14.3-Ref-Registered.exe N5200PRO - Shortcut.lnk Temporary Items centre dMC-R14.4-Ref-Registered.exe Network Trash Folder wavecorr registration.txt corrupted tracks 190115.txt dMC-R16.2-Ref-Registered.exe PerfectTUNES-Registered.exe wcor_37.exe dBpoweramp-dMC-DSP.exe ehthumbs_vista.db playlists dbpoweramp.txt FLAC files Recorded LP WAVs dMC-R12.4-Ref-Registered.exe FLAC Lossless Squeezebox pi@max2play3:/mnt/music_files $
7. Mai 2018 at 10:35 #35531Hi Alex,
Does the mount now work for you? We generally recommend mounting exclusively from the web interface to avoid any inconsistencies or irreproducable errors. Looking at your mount, the backslash for space might cause some issues fstab to resolve. Try using a simply named mount without spaces to rule this out as a source of error.
-
You must be logged in to reply to this topic.