Cannot connect to Samba on OSMC

version 20.5

I installed Samba on OSMC from the shopping cart. OSMC says the Service is Running.

I open NETWORK in Linuxmint and it shows osmc, OSMC and Samba shares on osmc.

When I try to connect each one gives an error message

osmc - unable to mount location, hostname not known
OSMC - unable to mount location, unable to retrieve share lit from server, connection refused
Samba shares on osmc - unable to mount location, unable to retrieve share lit from server, connection refused

Any help appreciated.

Is the your own create shares or automounts that get shared? Eg. Did you write your own shares in /etc/smb.conf? Or is this just drives that you connect via for example USB?

I have diffrent suggestions depending on how you shared the drives, that is a vital part.

I installed Samba in OSMC, I did not make any changes to smb.conf. I only want to connect to OSMC from a linux computer to transfer files to OSMC.

and the drive is just connected to usb, mounted in /media, right?

I will test the two solutions here at home and get back to you during the holiday.

Thanks for your help joakim_s. I think my problem may be due to some misunderstanding of SMB on my part.

As you can see from the first pic I had connected to the servers by SMB by selecting “Connect to Server”. If I click on any of the 4 connections I can see the contents.

Screenshot from 2024-12-24 15-52-00

If I select the last item in the second list, “Network”, I get this:

Screenshot from 2024-12-24 15-52-42

But if I click on any of the 6 items listed nothing happens. Can you tell me why or am I misunderstanding how things work?

thanks!

While not an expert, I have messed with samba over for longer then i can remeber, I’m guessing since you have access to OSMC’s smb-shares earlier when you “navigate your way there” but not “via latest connections”- Have your OSMC device changed ip-number since last time you connected?

Last used, can often store a “simplyfied” connection like direkt ip instead of name resolution check to know which device to connect to. Giving strange errors in networks there is no internal dns server.

If it’s that simple, then manually set an ip on the osmc box (perferably out side your dhcp’s lend scope)

If that’s not the issue, explain it to me like I’m 5 years old, english isn’t my native language.

Reading it one more time, I might have missunderstod. The first picture, is that shares on your network by other machines?

If you install smb-app on OSMC, then when ever you connect annother storage device, it will share it over SMB, with it’s “Label”. But I have notived a reoccuring problem for me is that the share can be good and visible from client machine, but the client connects with it’s local username, which isn’t apart of OSMCs system. Or the drive has filepriveliges that dosn’t match osmc-user on the OSCM system.

Symtoms. Connect works and all shares show, but doesn’t contain anything or error message when connecting to share.

joakim_s

I have found the answer to my problem and it is explained here: https://forums.linuxmint.com/viewtopic.php?t=322404. Apparently it is due to Sambas decision to disable SMB1.

thanks for the feedback