NFS mount via systemd on Pi4

  • Trying to mount a nfs drive in LE 9.2 on the RPi4.

    Followed the tut how to mount network drive and I have been successful before on Ubuntu. The systemd file is in the /storage/.config/system.d directory as the tut says.

    Systemctl claims the systemd file does not exist. I tried the complete path.

    /etc/systemd/system doesn't exist where I would put it in Ubuntu.

    The format and syntax of the unit are not the problem, systemctl can't find it to process it.

    Here it is anyway

    storage-NFSshare.mount

    [Unit]

    Description=nfs mount script

    Requires=network-online.service

    After=network-online.service

    Before=kodi.service


    [Mount]

    What=192.168.1.207/tv3

    Where=/storage/NFSshare

    Options=remount rw /storage/NFSshare

    Type=nfs


    [Install]

    WantedBy=multi-user.target

    Edited 2 times, last by donbrew: addition (January 8, 2020 at 12:28 AM).

  • What=192.168.1.207:/tv3 << Note ":" colon.

    What is the output of

    systemctl start storage-NFSshare.mount

    systemctl status storage-NFSshare.mount

  • "unit storage-NFSshare.mount not found".

    same message when I use the full path to the unit.

    But there it is in the /storage/.config/system.d folder

    Added the colon in the what line.

  • I am a dummy dyslexia strikes again NFS is not the same as NSF.

    I finally figured out all of the syntax errors I made. I guess that means I paid my sin tax.

    Solved