• UntouchedWagons@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Here’s how to mount an nfs share:

    #cat /etc/systemd/system/mnt.data.mount
    
    [Unit]
    Description=nfs mount script
    
    [Mount]
    What=192.168.0.30:/mnt/tank/Media
    Where=/mnt/data
    Type=nfs4
    
    [Install]
    WantedBy=remote-fs.target
    
    • Sanjoooo@feddit.deOP
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Meanwhile I found a solution using fstab.

      What’s the advantage of using a systemd script?

      I’ll probably switch to simple script, since I don’t like the idea of my laptop shouting my NAS access credentials into any available random network on startup.