Posts by alexdonc

    Hi all,


    I have a similar issue here.


    Created a file named storage-win.mount in /storage/.config/system.d

    Also created a folder named storage-win in the /storage

    Here is the file itself

    [Unit]
    Description=cifs mount script
    Requires=network-online.service
    After=network-online.service
    Before=kodi.service

    [Mount]
    What=//192.168.1.152/LibreELEC
    Where=/storage/storage-win
    Options=username=my_user,password=my_password,rw,vers=2.1
    Type=cifs

    [Install]
    WantedBy=multi-user.target

    Result?

    LibreELEC:~ # systemctl start storage-win.mount
    Failed to start storage-win.mount: Unit storage-win.mount has a bad unit file setting.


    On the other hand, If I do a :


    mount -t cifs -o username=my_user//192.168.1.152/LibreELEC /storage
    /storage-win

    it works like a charm. It simply asks for the password and the folder is mounted.


    Where am I wrong?