cant mount cifs share

  • Hello,

    when i execute on my odroid c2 with Libreelec 8:

    mount -t cifs -o username=tv,password=xxx,rw //192.168.178.3/TVrecordings /storage/recordings

    i get

    mount: mounting //192.168.178.3/TVrecordings on /storage/recordings failed: Permission denied

    any idea? i want to add a folder for my tvheadend recordings

    Thanks for helping

  • Did you try "systemctl enable storage-recordings.mount"

    Assuming you r doing it this way

    [Unit]

    Description=cifs mount script

    Requires=network-online.service

    After=network-online.service

    Before=kodi.service

    [Mount]

    What=//192.168.178.3/TVrecordings

    Where=/storage/recordings

    Options=username=tv,password=xxx,rw

    Type=cifs

    [Install]

    WantedBy=multi-user.target


    Save it in "system.d" as "storage-recordings.mount"

    Create a folder in storage name it "recordings"

    enable with "systemctl enable storage-recordings.mount"

  • yes, i did it before , no clue what is wrong


    Kueche:~/.config/system.d # systemctl enable storage-recordings.mount

    Kueche:~/.config/system.d # systemctl start storage-recordings.mount

    Job for storage-recordings.mount failed.

    See "systemctl status storage-recordings.mount" and "journalctl -xe" for details.


    ● storage-recordings.mount - cifs mount script

    Loaded: loaded (/storage/.config/system.d/storage-recordings.mount; enabled; vendor preset: disabled)

    Active: failed (Result: exit-code) since Sun 2017-08-27 14:28:19 CEST; 11s ago

    Where: /storage/recordings

    What: //192.168.178.3/TVrecordings

    Process: 1114 ExecMount=/usr/bin/mount //192.168.178.3/TVrecordings /storage/recordings -t cifs -o username=xxx,password=xxx,rw

    (code=exited, status=255)

    Aug 27 14:28:19 Kueche systemd[1]: Mounting cifs mount script...

    Aug 27 14:28:19 Kueche systemd[1]: storage-recordings.mount: Mount process exited, code=exited status=255

    Aug 27 14:28:19 Kueche systemd[1]: Failed to mount cifs mount script.

    Aug 27 14:28:19 Kueche systemd[1]: storage-recordings.mount: Unit entered failed state.


    JOURNALCTL :

    Aug 27 14:29:10 Kueche kernel: rtc-pcf8563 1-0051: pcf8563_get_datetime: read error

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO)

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: token 1, master_no(1) 300K addr 0x51

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO)

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: token 1, master_no(1) 300K addr 0x51

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO)

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: token 1, master_no(1) 300K addr 0x51

    Aug 27 14:29:11 Kueche kernel: rtc-pcf8563 1-0051: pcf8563_set_datetime: err=-11 addr=02, data=11

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO)

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: token 1, master_no(1) 300K addr 0x51

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO)

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: token 1, master_no(1) 300K addr 0x51

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO)

    Aug 27 14:29:11 Kueche kernel: i2c i2c-1: token 1, master_no(1) 300K addr 0x51

    Aug 27 14:29:11 Kueche kernel: rtc-pcf8563 1-0051: pcf8563_get_datetime: read error

    Aug 27 14:29:12 Kueche kernel: i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO)

    Aug 27 14:29:12 Kueche kernel: i2c i2c-1: token 1, master_no(1) 300K addr 0x51

    Aug 27 14:29:12 Kueche kernel: i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO)

    Aug 27 14:29:12 Kueche kernel: i2c i2c-1: token 1, master_no(1) 300K addr 0x51

    Aug 27 14:29:12 Kueche kernel: i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO)

    Aug 27 14:29:12 Kueche kernel: i2c i2c-1: token 1, master_no(1) 300K addr 0x51


    storage-recordings.mount:

    [Unit]

    Description=cifs mount script

    Requires=network-online.service

    After=network-online.service

    Before=kodi.service

    [Mount]

    What=//192.168.178.3/TVrecordings

    Where=/storage/recordings

    Options=username=xxx,password=xxx,rw

    Type=cifs

    [Install]

    WantedBy=multi-user.target

  • can you access //192.168.178.3/TVrecordings from your Odroid?

    In LE 8.1 smb changed a lot and you may need to set it up forcing SMB1 in kodi system settings services...enter the password and save for that path...

  • thats what i tried to verify :

    mount -t cifs -o username=tv,password=xxx,rw //192.168.178.3/TVrecordings /storage/recordings

    did also not work -> see post one

    when i connect via Kodi -> works


    this permission error is strange

  • So if you add it as a source in file manager you can access //192.168.178.3/TVrecordings

    Not sure if I can help you anymore then sorry

    Basically if you can see a folder from Libreelec on your network...you can mount it..

    Otherwise someone more technical might help you..

    I never managed to mount more the 1 source to the same folder...that's when I got errors similar to yours..

  • mount -t cifs -o vers=2.0,username=xxx,password=xxx,rw, //192.168.178.3/TVrecordings /storage/recordings

    mount: mounting //192.168.178.3/TVrecordings on /storage/recordings failed: Invalid argument


    use Libreelec 8.0.2

  • Error changes from Permission deniedto Invalid argument. Looks like the server only speaks SMB1.

    Sorry, no further idea beside the obvious wrong name or password. Maybe you can try smbclient to check the access.

  • Not sure what OS is your folder on?Is it on your Mac or a windows PC?

    As you are on LE 8.0.2...If it is a windows PC go to Control Panel...Programs...Turn Windows Features On Or Off and make sure SMB1 is installed...Give permissions to the folder to Everyone as RW..go to Local Policies, Security Options and scroll down to “Network access: Let Everyone permissions apply to anonymous users”. Set this to “Enabled”.Now see if you can browse to your folder from LE trough File manager in Kodi..

    If you r on Mac see here..

    At least you ll know if it is a network issue between your Odroid and Server..

    Also you don't have to add vers=2.0 if on 8.0.2...

  • Well just tryed to mount an hdd to libreelec from a windows 10pc with LE 8.1.0...smb set to None and it's working fine...

    I m still not sure if you can browse from filemanager to your network share?

    Or maybe show us the steps you r taking to mount ...