I can see my Pi on the network; SMB server is working fine.
My OSMC can not browse, nor can i input a valid share URL such as:
smb://192.168.1.187/3.0TB-Movies:
23:04:38.275 T:1958748160 ERROR: SMBDirectory->GetDirectory: Unable to open directory : ‘smb://192.168.1.187/3.0GB-Movies’
unix_err:‘1’ error : ‘Operation not permitted’
23:04:40.578 T:1958748160 ERROR: GetDirectory - Error getting smb://192.168.1.187/3.0GB-Movies
I used to be able to browse the windows workgroup and machines in the past; but when I restored my Pi’s SD card to use OSMC again, it needed the folder share locations updated because I had since reformatted and renamed things on my pc. This is where I ran into the issue of not being able to browse SMB shares given I can see the SMB share from the pi on my machine.
I am using windows 10 to share the folders. I have tried with/without password protected sharing. With/without homegroup sharing. and I have tried high and low encryption settings.
I have read many other posts here about similar issues, but no answers worked for me.
This is expected as SMBv1 has been disabled for security reasons.
This should still work. I suggest you either try fstab based mounts or use smbclient on the command line to figure out if you can access the Win10 from command line
when I ran this command:
smbclient -L 192.168.1.187 -U my_username
it connected but errored out:
osmc@RaPi:~$ smbclient -L 192.168.1.187 -U Z270
Enter Z270’s password:
Domain=[Z270-PC] OS=[Windows 10 Pro 15063] Server=[Windows 10 Pro 6.3]
Sharename Type Comment
--------- ---- -------
3.0TB-Videos Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
D$ Disk Default share
E$ Disk Default share
E-Recordings Disk
F$ Disk Default share
F-My Stuff Disk
IPC$ IPC Remote IPC
J$ Disk Default share
J-Movies Disk
K Disk
K$ Disk Default share
L$ Disk Default share
Users Disk
Connection to 192.168.1.187 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled – no workgroup available
osmc@RaPi:~$ sudo systemctl daemon-reload
osmc@RaPi:~$ sudo systemctl restart remote-fs.target
osmc@RaPi:~$ cd /mnt/Movies
-bash: cd: /mnt/Movies: No such device
osmc@RaPi:~$ sudo mount /mnt/Movies
Couldn’t chdir to /mnt/Movies: No such device
Also note:
All typos as per above notes have been corrected (the movies folder name) as I have renamed some of the shares that being one of them; thus its not seen the same in the printout directly preceding this note.
Part of my typo was the fact that I forgot I renamed a share on my host machine.
The final result of this whole issue:
The SMB function simply can’t be used to browse out; but the SMB server works fine.
I had to create a mount point,
/mnt/Movies
sudochmod 777 /mnt/movies
add the fstab mount information as per above tutorial
then I was able to add the local directories as folders in the osmc GUI.
So for people trying to use the smb:// feature; looks like its simply not worth the time. It used to be the easy way to do it. I tried to get the smb:// feature to work so I could browse, but at this point, i give up and will settle with this.
fstab is faster; you will be happier with it. You probably didn’t need to create the mount point, with the automount it will be created when you boot your system.
The SMB removal of browsing of shares was a security issue, as you probably know.