Problem mounting Nas (NFS) with systemd

And that is understandable - the folder does not exist as it is removed when you restart your system. The /run tree is recreated on system start.

Please see my comment in a similar topic

Troubleshooting path

  • check your mount unit
    • test the mount unit manually
    • sudo systemctl start <mount-path.mount>
    • when manual start populates the mount path - stop the unit
    • sudo systemctl stop <mount-path.mount>
  • verify your automount unit
    • test the mount unit manually
    • sudo systemctl start <mount-path.automount>
    • list the content of the mount path
    • ls </mount/path>
    • when the mount path is populated you can enable the automount unit
    • sudo systemctl enable --now <mount-path.automount>
1 Like