I have read some similar thread and also some recent thread but apparently i can’t found a solution it’s ok on my setup.
I have a PC with latest windows 10 build currently. There’s a fixed ip on my personal lan… it’s 192.168.1.2.
On my Pi2 OSMC Setup i have currently set the client SMB minial and maximal to V3 after i read some other thread… restart osmc but apparently not works.
I have tryed to create a new source… i have tryed to put address in many modes:
I have tryed “smb://” it’s acceptable but after that i obtain a empty list. Apparently my shared not works ?
I have also tryed to put directly “smb://192.168.1.2/” and i obtain the errors “Operation not permitted”.
I have also tryed so many other ways… how i can check ?
I have restart my Pi2 but nothings… i have also tryed to reach from source… and also from networks procedure wizard insert my PC Name and directly the ip of pc.
No apparently works… ever Operation not permetted.
From SSH connected to my Pi2 i can ping correctly my pc… and look this:
root@osmc:~# smbclient --list=192.168.1.2
WARNING: The "syslog" option is deprecated
Enter root's password:
Anonymous login successful
Domain=[mypcname-PC] OS=[Windows 10 Home 18363] Server=[Windows 10 Home 6.3]
Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
Connection to 192.168.1.2 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled -- no workgroup available
root@osmc:~#
I’m not sure if email address will work. If it doesn’t you could try just creating a new normal login in windows which has access to shares and add those credentials to password.xml
oh ok… otherwise on this pc i have another account… it’s named “osmc”… i have created some time ago and in the pass it’s works.
I don’t have idea when it’s stop to works… problably after recently windows update or osmc update.
interesting… now it’s totally different… it’s say:
root@osmc:~# smbclient -U osmc -L 192.168.1.2
WARNING: The "syslog" option is deprecated
Enter osmc's password:
Domain=[xxxxxx-PC] OS=[Windows 10 Home 18363] Server=[Windows 10 Home 6.3]
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Amministrazione remota
C$ Disk Condivisione predefinita
D$ Disk Condivisione predefinita
File Condivisi Disk
IPC$ IPC IPC remoto
Users Disk
Connection to 192.168.1.2 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled -- no workgroup available
root@osmc:~#
Well that at least proves that connection is possible.
We now could start digging into what goes wrong in Kodi or if you want to switch from Kodi mounts to autofs mounts walk you through that.
OMG OMG… i don’t know how i have touched but now… IT’S WORK AGAIN
The last things i have do it’s set again the “osmc” user password from a command prompt… i have used "net user osmc ". I have back on front of my tv and baaam… now it’s works.
But i’m not fully sure if it’s the real solution You thinks the smbclient from ssh as helped to resolved this issue ?
Wait a moment… it’s possible to manage the windows share folder in a different mode ?
Very interest… otherwise i use this SMB folder for share little files like mp3 or jpg or zip files usually.
I know the limit of SMB share…
For other things usually i use (like if i need to move large files) one pendrive of 64GB attached to my Pi2 and i copy from my pc to this using FTP :)… also by LAN good copy speed is obtained.
EDIT
For the moment… i need to go to sleep.
I hope that continue to works on next reboot of my pc… if not and if need help i try to back here to report all issue.
If you did, wouldn’t that be expected behavior? Would you not expect errors if using any other method? If use of Kodi was not dependent on this source being available would it even matter?
problably i can’t understand good your message (remember my english it’s not to good)… problably i can try to explain better because i expect an errors using autofs.
Right now i use SMB… if i try to access to SMB and my pc it’s turned off i obtain an errors, if i remember, kodi say “Networks unreachable” or somethigs similar.
Autofs it’s be automount this shared folder when kodi as been launched right ? If my PC it’s turned off at this moment ? How append ? the mount it’s fail ? kodi report errors on log ?
I understand autofs it’s best solution respect smb shares but i want to know pro and cons…