mount_smbfs on LibreELEC

balanga

Daemon

Thanks: 95
Messages: 2,339

#1
I'm trying to mount shares on a LibrrELEC system running on an RPi2.

Instructions are shown here.

Windows automatically finds the available shares, but with FreeBSD I get


mount_smbfs -I 192.168.1.27 //LIBREELEC/Configfiles
Password:
mount_smbfs: unable to open connection: syserr = RPC struct is bad


Configfiles is shown as a shareable folder on Windows and if I ssh into LibreELEC I see Configfiles defined as a share in smb.conf.

What am I doing wrong? Or is there something wrong with the samba setup on LibreELEC?
 
OP
OP
B

balanga

Daemon

Thanks: 95
Messages: 2,339

#6
That depends on what you have installed. Samba 4.4 and higher should be fine.


pkg info -x samba
Code:
root@Test:~ # pkg info -x samba
samba44-4.4.16
root@Test:~ # mount_smbfs -I 192.168.1.27 //LIBREELEC/Configfiles /mnt/dos
Password:
mount_smbfs: unable to open connection: syserr = RPC struct is bad
root@Test:~ #
???

Or is smbfs part of a separate pkg?
 

free-and-bsd

Aspiring Daemon

Thanks: 68
Messages: 647

#7
...Or is smbfs part of a separate pkg?
Not package, mount_smbfs is base system. mount(8).

For mounting stuff I use fm/pcmanfm with gvfs support. But I was never able to make devel/gvfs mount stuff from command line. In linux I did it some time ago... I was hoping to use it as a replacement for the outdated mount_smbfs (devel/gvfs will be linked to the samba version you have on your system), but couldn't make it mount stuff where I needed it. Neither was I able to figure out WHERE exactly it mounts what it mounts... In linux there are default paths for that, but in FreeBSD they don't work... so I just gave up.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,617
Messages: 28,158

#8
Sorry, I was thinking the Samba packages would have a client too, but besides smbclient(1) there's really not much included. So I'm afraid you're out of luck.

But OpenElec is just a Linux and it should also support NFS. I would suggest using that instead as there's no SMB2/3 capable mount(8) command at the moment.

Or do it the other way around, mount a Samba share from FreeBSD on OpenElec. The Samba packages do provide a server that supports SMB2/3, just not a client.
 
Top