To automatically connect to a NFS share when booting:

  1. Add a line for your NFS share to /etc/fstab. For me, I'm connecting to my NAS named Scarif, on a share named PiData, and mounting it to /mnt/pidata.

     scarif.local:/volume1/PiData /mnt/pidata nfs

    The fstab line is in three parts:

    1. What to mount - in my case, scarif.local is the mDNS name of the NAS, and /volume1/PiData is the local path on the NAS.
    2. Where to mount it
    3. How to mount it - in this case, by using nfs.
  2. Create /etc/systemd/system/rpcbind.service with the following contents:

     Description=RPC bind portmap service
     ExecStart=/sbin/rpcbind -f -w
  3. Run sudo systemctl enable rpcbind.service

  4. Reboot the Raspberry Pi.