samba again

  • Potentially, yes. Is the LE or Windows PC connected over wifi? A flakey router or access point could result in lost packets that might confuse Windows. If wifi is involved try testing only with wired connections and see if that is more reliable.

  • I know it's more secure but not everyone knows what these settings are for and how to find them...My main issue is that with default settings you can't see 2 LE machines on same network...1 is a Rpi2 and the other HP laptop...So from the laptop couldnt see the Rpi with default settings and mounts failed with min smb2 setting..I think it's a good idea if smb settings are in just 1 place...thanks for your hard work and help chewitt

    Edit:the smb setting on kodi services didn't help...it was the new setting in the LE addon that enabled the network between my machines

    Yes you can, browsing works if you use zeroconf and not windows network.

  • Yes you can, browsing works if you use zeroconf and not windows network.

    Yes zeroconf works for browsing...but the issue is that cifs mounts from the Rpi where still failing on boot...they only work if I enable minimum smb1 in LE settings..Any work around for this?

  • This samba thing is getting bit complicated...after updating to 8.1.1 on my LE plex server (old Laptop)couldn't access anymore my media from Plex...the network mounts where all failing on boot...tought what's going on...no ideas so went to factory reset everything..couldn't access my media on network on a RPI server again running LE...couldn't access anything even with forcing SMB 1...

    Well to my surprise there is a new setting...this time it's in the LE addon which done the miracle...had to set minimum to smb 1 and max to smb 3 for all mounts to work again...too late now as I had to start from scratch..I think it's a bit silly(sorry ;)) to set minimum to Smb2 and not 1 by deafault as it's causing unnecessary hassle...as with the default setting you can't see another LE Rpi on network acting as media server with folders mounted on another LE Plex server

    Hi Mario77,

    After you have forcing SMB 1 was you able to mount the cifs with the same configuration you have before?

    Thanks

  • Hi Mario77,

    After you have forcing SMB 1 was you able to mount the cifs with the same configuration you have before?

    Thanks

    I think you r talking about the setting on system-services-smb...that doesn't change anything to mounts...

    What made the mounts work again for me is the new SMB setting in the LibreElec program addon...I set minimum to smb1 instead of 2 and they worked with the same configuration...

  • Mario77

    If that was necessary, then you haven't followed the instructions in the release notes. You probably have an old samba.conf on the LE system you are connecting to.

    Both systems are running 8.1.1...the old samba.conf was deleted and redone on both machines when I updated to 8.1.0...and is working fine.I can access both LE instances from a windows 10 PC..

    So my setup is Rpi2 with LE connected to TV booting from hdd which is where my media is stored....then I have an HP laptop running LE...which is only running Plex server....this laptop has no media attached but is mounting the hdd connected to the Rpi2...

    Now what happened is that when I updated the laptop to 8.1.1 from 8.1.0 the mount failed....I had to go to Libreelec Configuration addon-services and set minimum supported protocol to SMB1 on both machines for the mount to work..

    edit...just set the laptop back to minimum supported protocol SMB2 and the mounts are still working...I ll try do the same at the RPi2 end and see what happens

    escalade Ok so done the same on the rpi2... back to minimum supported protocol SMB2 from SMB1 and the mounts failed again..

    Edited once, last by Mario77 (September 11, 2017 at 9:16 PM).

  • Mario77 CIFS (OS) mounts will (in pre-4.13 kernels*) default to SMB1, so yes your SMB1 CIFS mounts will fail when connecting to an 8.1.1 Samba server using the default SMB2 min protocol setting.

    Your options are to enable SMB1 on the LE 8.1.1 Samba server (not a good idea), or add "vers=2.1" (or better) to your CIFS mount service in order to establish an SMB2 (or better) connection, ie.:

    Code
    # Any options you usually use with the "-o" parameter in the mount command
    Options=username=USERNAME,password=PASSWORD,vers=2.1

    Adding "vers=2.1" to the service may already work when connecting to an older LE 8.x or 7.x server, so could be added before any server upgrade.

    We may need to update the sample config/wiki to mention the vers=x.y option.

    * starting with 4.13.0 the kernel will now default to SMB3 when establishing a CIFS mount.

  • Mario77 CIFS (OS) mounts will (in pre-4.13 kernels*) default to SMB1, so yes your SMB1 CIFS mounts will fail when connecting to an 8.1.1 Samba server using the default SMB2 min protocol setting.

    Your options are to enable SMB1 on the LE 8.1.1 Samba server (not a good idea), or add "vers=2.1" (or better) to your CIFS mount service in order to establish an SMB2 (or better) connection, ie.:

    Code
    # Any options you usually use with the "-o" parameter in the mount command
    Options=username=USERNAME,password=PASSWORD,vers=2.1

    Adding "vers=2.1" to the service may already work when connecting to an older LE 8.x or 7.x server, so could be added before any server upgrade.

    We may need to update the sample config/wiki to mention the vers=x.y option.

    * starting with 4.13.0 the kernel will now default to SMB3 when establishing a CIFS mount.

    This makes a lot of sense..thanks milhouse