Did you try sudo mkdir
Hello fzinken,
Got it working with sudo mkdir. Just a word of advice for anyone following this thread: remember to mount all: sudo mount -a
and check of your mount is correct, with mount command
Also, don’t reboot the Rasberry, as it won’t mount automatically.
Thanks!
I also posted some more details here
try:
sudo mkdir /mnt/ap
I have added this line in the fstab.
It automatically mounts on every boot or reboot, but does’n work with the command sudo mount -a.
mount -a
will only mount “auto” mounts. You have noauto (as you are using x-systemd.automount instead) so therefore mount -a
will ignore it.
So if you want to manually mount it just use sudo mount /mnt/Video
to specify the mount point explicitly.
Ok thanks for explanation.
I use the remote pi board and I shut down the pi3 every night so I need the auto mount option at every boot/reboot.
Thank you!
I haven’t had the time to read through this entire thread, so my apologies if this has been mentioned already, but I believe this is to do with a security update to Samba (see here Samba 4.3.8 - Release Notes).
Under Behaviour changes
it details the following:
o The following constraints are applied to SMB1 connections:
- "client lanman auth = yes" is now consistently
required for authenticated connections using the
SMB1 LANMAN2 dialect.
- "client ntlmv2 auth = yes" and "client use spnego = yes"
(both the default values), require extended security (SPNEGO)
support from the server. That means NTLMv2 is only used within
NTLMSSP.
I get the following output when trying to list shares using smbclient
, which corresponds with this change:
root@dev:~# smbclient -L 192.168.1.1 -U steve
WARNING: The "syslog" option is deprecated
Enter steve's password:
Server does not support EXTENDED_SECURITY but 'client use spnego = yes and 'client ntlmv2 auth = yes'
session setup failed: NT_STATUS_ACCESS_DENIED
If you can’t update the samba version on your server to one that enables extended security support, you can work around this by setting up a persistent mount in /etc/fstab
(I wouldn’t recommend changing to use client use spnego = no
and client ntlmv2 auth = no
in your smb.conf
files as this makes your network more vulnerable).
To setup a persistent mount do the following:
-
Login to your OSMC device over ssh (use PuTTY on Windows)
ssh osmc@192.168.1.100
(default password is osmc) -
Get root
sudo -i
-
Create a mount directory
mkdir -p /mnt/data
-
Open
/etc/fstab
vi /etc/fstab
-
Insert (press
i
to enter edit mode in Vi) the following line into/etc/fstab
(obviously replace//192.168.1.1/Data
and/or/mnt/data
with the correct share/mount point):
//192.168.1.1/Data /mnt/data cifs credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
-
Save
/etc/fstab
and exit (pressEsc
to exit edit mode and type:wq
to save and exit) -
Create the
/root/.smbcredentials
file
vi /root/.smbcredentials
-
Add the following lines into
/root/.smbcredentials
(obviously replacingsambauser
andmypassword
with the correct credentials)
username=sambauser
password=mypassword
-
Save
/root/.smbcredentials
and exit -
Change permissions on
/root/.smbcredentials
chmod 600 /root/.smbcredentials
-
Mount the directory
mount -a
-
List the directory
ls -alh /mnt/data
Now when you reboot that share will be mounted to /mnt/data (or whatever folder you created for the mount point).
You can then go into OSMC and when browsing for a new share using the Root filesystem
option and browse to mnt
and then data
to access that filesystem.
Thank you for the detailed instructions. Does this method still work if your windows 10 desktop/server has no login password? If so what do you put into the area that asks for a user name and password?
Thank you for the detailed instructions. Does this method still work if your windows 10 desktop/server has no login password? If so what do you put into the area that asks for a user name and password?
Hi All, as there are a couple of threads on this topic I would like to try to summaries the current status which might help some of you. I was not able to test this quick fixes myself as I can not reproduce the issues but there are reports that they work. All what is described here are only quick fixes and you do all of them on your own risk. Situation: On April 14th Sam released a news (OSMC Security Update for OSMC 2016.04-1 and earlier) that there were several security vulnerabilities in t…
Thanks. I’ll wait it out a little longer for a fix before adding an account. It’s inconvenient, but I can still stream to my Vero via UPnP.
Hi!
I’vae already tried your method (file credentials) but it doesn’t work.
When i write sudo mount -a this is the result:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
This is my new fstab:
/dev/mmcblk0p1 /boot vfat defaults,noatime 0 0
/dev/mmcblk0p2 / ext4 defaults,noatime 0 0
//192.168.1.2/Archivio /mnt/Video cifs credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
//192.168.1.2/Giochi\040ps3 /mnt/Ps3 cifs credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
Obviously I have already created the credential file:
username=My\040Complex\040Username
password=mypassword
I have already tried with or without the \040 chars, also tried with ‘My Complex Username’ or “My Complex Username”…same result…
ANY IDEAS???
p.s. it all works if i put My\040Complex\040Username and password directly in clear the fstab…
Just a heads up that the Samba maintainer for Debian has acknowledged there is a regression in the latest Debian package and that there will be an update to address this soon: [Pkg-samba-maint] Restoring pre Badlock CVE behavior in libsmbclient.
In the interim, we have also done some work which will improve things for users trying to connect via Kodi to legacy SMB devices which do not support NTLVM2 authentication. This will be made available shortly in the next update.
Thanks Sam. Good to know your on top of it. Still, I like the fstab way of mounting now that it’s working for me… It seems much quicker.
Hi Lamerz,
Sorry, I haven’t checked the thread for a few weeks!
You should be fine with x-systemd.automount. It mounts the filesystem on demand. So the filesystem could sit unmounted for days following a reboot. However, when you or a system process accesses the drive, it will be mounted automatically.
Hope this helps
Cheers
Steve
Can someone please tell me if this issue is fixed or if we are still waiting for upstream debian fix.
This is not clear to me in the May update release notes mentions:
Fixed connectivity to legacy shares after the Badlock CVE update.
But since this update I am unable to connect to my SMB shares (I think i skipped the april update so it is the first time I have seen this bug.)
I can just say that I am unable to access my SMB shares.
The files are shared on through the OSx Server running on the latests OSx El Capitain (10.11.4).
I have different clients
OSx Laptop (10.11.4) kodi 16.1 --> no problems
Win Laptop 8.1 kodi 16.1 --> no problems
iPhone 9.3.? kodi 16.1 --> no problems
raspberry pi (the B model with 512mb) osmc may update --> problem no access to the shares.
I am using a MySQL setup so the osmc has no sources defined (it gets the location to the file from the database).
The path it receives from the database has the following structure:
smb://user:pdw@osxserver/MediaFiles/Video/Name of the File/filename.mkv
The files are shared on through the OSx Server running on the latests OSx El Capitain (10.11.4).
I have different clientsOSx Laptop (10.11.4) kodi 16.1 –> no problemsWin Laptop 8.1 kodi 16.1 –> no problemsiPhone 9.3.? kodi 16.1 –> no problemsraspberry pi (the B model with 512mb) osmc may update –> problem no access to the shares.
I am using a MySQL setup so the osmc has no sources defined (it gets the location to the file from the database).
The path it receives from the database has the following structure:
smb://user:pdw@osxserver/MediaFiles/Video/Name of the File/filename.mkv
Connections to legacy smb shares have been fixed with the May update. Connections to guest shares (passwordless) have not been fixed.
As it seem you are using username/password it should work for you. If you have updated to latest May update and still have problems you would need to post debug enabled logs. And also the contents of /home/osmc/.smb/.smb.conf
Hi,
Thanks for the swift reply.
In the attached files you should be able to find the information you asked for. It contains extract of the kodi.log and the smb.conf
I hope you can resolve this issue for me.
Also if I ssh into the raspberry pi i can ping the osxserver machine :
temp$ ping osxserver
PING osxserver (192.168.0.x): 56 data bytes
64 bytes from 192.168.0.x: seq=0 ttl=64 time=0.860 ms
64 bytes from 192.168.0.x: seq=1 ttl=64 time=0.940 ms
64 bytes from 192.168.0.x: seq=2 ttl=64 time=0.820 ms
64 bytes from 192.168.0.x: seq=3 ttl=64 time=0.918 ms
64 bytes from 192.168.0.x: seq=4 ttl=64 time=0.980 ms
64 bytes from 192.168.0.x: seq=5 ttl=64 time=0.648 ms
PS: I made some minor nods to the kodi.log (masked user/pwd and some filenames for the obvious reasons).
I tried uploading the file through pastebin. But I am new to this service and the interface was not very clear. So I am not sure if it arrived correctly. So against forum best practices I past the information is the post.
` Kodi.log
12:38:19 55417.167969 T:3023504304 NOTICE: special://profile/ is mapped to: special://masterprofile/
12:38:19 55417.167969 T:3023504304 NOTICE: -----------------------------------------------------------------------
12:38:19 55417.167969 T:3023504304 NOTICE: Starting Kodi (16.1). Platform: Linux ARM 32-bit
12:38:19 55417.167969 T:3023504304 NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
12:38:19 55417.167969 T:3023504304 NOTICE: Kodi compiled May 3 2016 by GCC 4.9.2 for Linux ARM 32-bit version 3.16.7 (200711)
12:38:19 55417.167969 T:3023504304 NOTICE: Running on Open Source Media Center 2016.05-1, kernel: Linux ARM 32-bit version 4.4.8-3-osmc
12:38:19 55417.167969 T:3023504304 NOTICE: FFmpeg statically linked, version: 2.8.6-kodi-2.8.6-Jarvis-16.0
12:38:19 55417.167969 T:3023504304 NOTICE: Host CPU: ARMv6-compatible processor rev 7 (v6l), 1 core available
12:38:19 55417.167969 T:3023504304 NOTICE: ARM Features: Neon disabled
12:38:19 55417.167969 T:3023504304 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
12:38:19 55417.171875 T:3023504304 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
12:38:19 55417.171875 T:3023504304 NOTICE: special://masterprofile/ is mapped to: /home/osmc/.kodi/userdata
12:38:19 55417.171875 T:3023504304 NOTICE: special://home/ is mapped to: /home/osmc/.kodi
12:38:19 55417.171875 T:3023504304 NOTICE: special://temp/ is mapped to: /home/osmc/.kodi/temp
12:38:19 55417.171875 T:3023504304 NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
12:38:19 55417.171875 T:3023504304 NOTICE: Local hostname: osmc
12:38:19 55417.171875 T:3023504304 NOTICE: Log File is located: /home/osmc/.kodi/temp/kodi.log
12:38:19 55417.171875 T:3023504304 NOTICE: -----------------------------------------------------------------------
……
3:59:54 60312.761719 T:3023504304 DEBUG: OnKey: 11 (0x0b) pressed, action is Select
13:59:54 60312.824219 T:3023504304 DEBUG: Loading settings for smb://USERNAME:PASSWORD@osxserver/MediaFiles/video/Film/Deadpool/Deadpool.mkv
13:59:54 60312.851562 T:3023504304 DEBUG: CPlayerCoreFactory::GetPlayers(smb://USERNAME:PASSWORD@osxserver/MediaFiles/video/Film/Deadpool/Deadpool.mkv)
13:59:54 60312.851562 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
13:59:54 60312.851562 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
13:59:54 60312.851562 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
13:59:54 60312.851562 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
13:59:54 60312.851562 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
13:59:54 60312.851562 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
13:59:54 60312.851562 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
13:59:54 60312.851562 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
13:59:54 60312.851562 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
13:59:54 60312.855469 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
13:59:54 60312.855469 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
13:59:54 60312.855469 T:3023504304 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
13:59:54 60312.855469 T:3023504304 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
13:59:54 60312.859375 T:3023504304 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
13:59:55 60312.863281 T:3023504304 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
13:59:55 60312.863281 T:3023504304 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
13:59:55 60312.863281 T:3023504304 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
13:59:55 60312.867188 T:3023504304 DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
13:59:55 60312.949219 T:2926011376 DEBUG: PushCecKeypress - received key b duration 226 (rep:0 size:0)
13:59:55 60312.953125 T:2926011376 DEBUG: PushCecKeypress - ignored key b
13:59:55 60312.996094 T:3003118576 DEBUG: CAESinkPi:Drain delay:100ms now:0ms
13:59:55 60312.996094 T:3003118576 DEBUG: CAESinkPi:Deinitialize
13:59:55 60312.996094 T:3003118576 DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
13:59:55 60313.015625 T:3003118576 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0x4ed3b68
13:59:55 60313.058594 T:3023504304 DEBUG: Radio UECP (RDS) Processor - new CDVDRadioRDSData
13:59:55 60313.058594 T:3023504304 NOTICE: DVDPlayer: Opening: smb://USERNAME:PASSWORD@osxserver/MediaFiles/video/Film/Deadpool/Deadpool.mkv
13:59:55 60313.058594 T:3023504304 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
13:59:55 60313.058594 T:3023504304 DEBUG: CMMALRenderer::CMMALRenderer
13:59:55 60313.058594 T:3023504304 DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
13:59:55 60313.058594 T:3023504304 DEBUG: CMMALRenderer::UnInitMMAL pool((nil))
13:59:55 60313.058594 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffers
13:59:55 60313.058594 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:0
13:59:55 60313.058594 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:1
13:59:55 60313.058594 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:2
13:59:55 60313.058594 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:3
13:59:55 60313.058594 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:4
13:59:55 60313.058594 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:5
13:59:55 60313.062500 T:3023504304 DEBUG: CMMALRenderer::PreInit
13:59:55 60313.066406 T:2658206704 DEBUG: Thread MMALRenderer start, auto delete: false
13:59:55 60313.066406 T:2582111216 DEBUG: Thread DVDPlayer start, auto delete: false
13:59:55 60313.074219 T:2582111216 NOTICE: Creating InputStream
13:59:55 60313.128906 T:2582111216 DEBUG: CSMBFile::Open - opened smb://USERNAME:PASSWORD@osxserver/MediaFiles/video/Film/Deadpool/Deadpool.mkv, fd=-1
13:59:55 60313.128906 T:2582111216 INFO: SMBFile->Open: Unable to open file : ‘smb://USERNAME:PASSWORD@osxserver/MediaFiles/video/Film/Deadpool/Deadpool.mkv’
unix_err:‘6e’ error : ‘Connection timed out’
13:59:55 60313.132812 T:2582111216 ERROR: CDVDPlayer::OpenInputStream - error opening [smb://username:password@osxserver/MediaFiles/video/Film/Deadpool/Deadpool.mkv]
13:59:55 60313.132812 T:2582111216 NOTICE: CDVDPlayer::OnExit()
13:59:55 60313.132812 T:2582111216 DEBUG: OnPlayBackStopped: play state was 1, starting 1
13:59:55 60313.136719 T:3023504304 DEBUG: OnPlayBackStopped: play state was 3, starting 0
13:59:55 60313.136719 T:3023504304 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
13:59:55 60313.136719 T:3023504304 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
13:59:55 60313.136719 T:3023504304 DEBUG: AIRPLAY: sending event: stopped
13:59:55 60313.136719 T:3023504304 ERROR: PlayMedia could not play media: smb://username:password@osxserver/MediaFiles/video/Film/Deadpool/Deadpool.mkv
13:59:55 60313.140625 T:2582111216 DEBUG: Thread DVDPlayer 2582111216 terminating
13:59:55 60313.175781 T:3023504304 NOTICE: CDVDPlayer::CloseFile()
13:59:55 60313.175781 T:3023504304 NOTICE: DVDPlayer: waiting for threads to exit
13:59:55 60313.175781 T:3023504304 NOTICE: DVDPlayer: finished waiting
13:59:55 60313.175781 T:3023504304 DEBUG: CMMALRenderer::UnInitMMAL pool((nil))
13:59:55 60313.175781 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffers
13:59:55 60313.179688 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:0
13:59:55 60313.179688 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:1
13:59:55 60313.179688 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:2
13:59:55 60313.179688 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:3
13:59:55 60313.179688 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:4
13:59:55 60313.179688 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:5
13:59:55 60313.179688 T:3023504304 NOTICE: CDVDPlayer::CloseFile()
13:59:55 60313.179688 T:3023504304 NOTICE: DVDPlayer: waiting for threads to exit
13:59:55 60313.179688 T:3023504304 NOTICE: DVDPlayer: finished waiting
13:59:55 60313.179688 T:3023504304 DEBUG: CMMALRenderer::UnInitMMAL pool((nil))
13:59:55 60313.179688 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffers
13:59:55 60313.183594 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:0
13:59:55 60313.183594 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:1
13:59:55 60313.187500 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:2
13:59:55 60313.187500 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:3
13:59:55 60313.187500 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:4
13:59:55 60313.187500 T:3023504304 DEBUG: CMMALRenderer::ReleaseBuffer - not configured: source:5
13:59:55 60313.562500 T:2853172208 DEBUG: script.module.osmcsetting.updates : - blurp 999 - Home.xml
13:59:55 60313.648438 T:3013604336 NOTICE: Found 2 Lists of Devices
smb.conf
[global]
preferred master = no
local master = no
domain master = no
client lanman auth = yes
lanman auth = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
lock directory = /home/osmc/.smb/
client use spnego = no
client ntlmv2 auth = no
name resolve order = bcast host
``
>Open: Unable to open file : ‘smb://USERNAME:PASSWORD@osxserver/MediaFiles/video/Film/Deadpool/Deadpool.mkv’ unix_err:‘6e’ error : ‘Connection timed out’
That indicates a issue with your samba server or the connection to it.
What does net view
gives you if you execute it on OSMC and also if you do that on your Win Laptop?
FYI, you can upload logs with grab-logs
currently no access to the win machine running kodi but can you tell me what the equivalent is of net view command on raspberry pi (osmc) afik it is running a linux flavor and ‘net view’ is a windows command