Mounting network share in LibreELEC

  • i created the mountpoint /storage/fritzbox. the file "/storage/.config/system.d/storage-fritzbox.mount" looks so:

    after that i run

    Code
    systemctl enable storage-music.mount


    and the symbolic link was created:

    Code
    Created symlink /storage/.config/system.d/multi-user.target.wants/storage-fritzbox.mount → /storage/.config/system.d/storage-fritzbox.mount.


    after reboot the samba share isn't mounted.

    the path on the router is correct, i also tried the whole path to the usb drive without success. (1. i disables the file with systemctl disable storage-fritzbox.mount 2. changed the path in the file and 3. enabled it again and reboot).

  • after reboot i have an error in the left upper corner but i can't read the whole text. something like "error cifs mount". where can i see the whole log? i can't find it here: storage/.kodi/temp/kodi.log

    i also found nothing in 'dmesg'.

  • Kernel 4.13.2 currently defaults CIFS mounts to SMB3. You need to add ",vers=2.1" or maybe even ",vers=1.0" as an extra option when connecting to older Samba servers, ie.

    Code
    Options=username=user,password=password.,rw,vers=2.1

    You can see the message in the log explaining why the mount is failing:

    Code
    Sep 17 09:32:24 LibreELEC kernel: No dialect specified on mount. Default has changed to a more secure dialect, SMB3 (vers=3.0), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 specify vers=1.0 on mount. For somewhat newer servers such as Windows 7 try vers=2.1.

    It's possible that later 4.13.y kernels may switch to SMB2.1 as the default, as SMB3 is not as widespread as originally thought. LibreELEC 8.2 will default CIFS mounts to SMB2.1.

  • before i've tried this i restored a backup of the boot device where libreelec is installed (because of an other problem). so my first test was mit libreelec remix vers. 2017-09-08 with kernel 4.12.x and it works also with the prefix "vers=2.1".

    then i updated to the last version 2017-09-15 with kernel 4.13.2 and it doesn't work the prefix "vers=2.1", but with "vers=1.0".

    Quote

    LibreELEC 8.2 will default CIFS mounts to SMB2.1.

    libreelec devel-2017-09-15 is based on libreelec 8.2 (as i can see in the system info), but vers. 2.1 doesn't work. in the log there isn't an error

    bADN

  • I have same problem I try with all versions 1,2.1,3. I can only mount read only?

    Code
    Apr 10 01:09:08 mp-dnevna systemd[1]: Starting Samba NMB Daemon...
    Apr 10 01:09:08 mp-dnevna kernel: Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 10 01:09:08 mp-dnevna mount[604]: mount: mounting //192.168.0.198/roms$ on /storage/roms failed: Permission denied
    Apr 10 01:09:08 mp-dnevna kernel: Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 10 01:09:08 mp-dnevna systemd[1]: storage-roms.mount: Mount process exited, code=exited, status=255/EXCEPTION
    Apr 10 01:09:08 mp-dnevna systemd[1]: storage-roms.mount: Failed with result 'exit-code'.
    Apr 10 01:09:08 mp-dnevna systemd[1]: Failed to mount emulators roms mount.

    Edited once, last by lpt2007 (April 10, 2021 at 12:28 AM).