Cannot Mount NFS Share

  • Hi there,

    I'm unable to get my NFS (password protected) drive to mount using the supplied systemd config sample. I get the following error:

    Code
    Dec 28 03:11:44 Kodi systemd[1]: storage-nas.mount: Failed to run 'mount' task: Invalid argument
    Dec 28 03:11:44 Kodi systemd[1]: storage-nas.mount: Failed with result 'resources'.
    Dec 28 03:11:44 Kodi systemd[1]: Failed to mount NFS Mount.

    Here is my mount config file:

    Filename: storage-nas.mount

    The above works if I do the following command without using systemd:

    Code
    mount -t nfs -O username=firstname.lastname,password=Passwordwithescapedcharacters\!\@\# 192.168.1.178:/volume1/My\ TV/ /storage/nas/

    Can someone tell me what I'm doing wrong?

  • Hey chewitt, I'm getting following error when using the credential file:

    Code
    Dec 28 15:57:37 Kujawa-Kodi mount[5197]: mount: mounting 192.168.1.178:/volume1/My\ TV on /storage/nas failed: Invalid argument
    Dec 28 15:57:37 Kujawa-Kodi systemd[1]: storage-nas.mount: Mount process exited, code=exited, status=255/EXCEPTION
    Dec 28 15:57:37 Kujawa-Kodi systemd[1]: storage-nas.mount: Failed with result 'exit-code'.
    Dec 28 15:57:37 Kujawa-Kodi systemd[1]: Failed to mount NFS Mount.

    I've even tried escaping the characters inside of the credentials file:

    /storage/.cache/smbcreds

    Code
    username=firstname.lastname
    password=Password%21%40%23

    Any other ideas?