Mounting NFS mount on Raspberry Pi

Running on Raspberry Pi OS 12.

Flashed with sudo dd if=./2025-05-13-raspios-bookworm-arm64-lite.img of=/dev/sdb status=progress bs=4M && sync

Enabled by adding a file called ssh to the boot partition of Raspberry Pi OS. cd there then touch ssh

Default user doesn't exist in newest Raspberry Pi OS anymore. Added a user via userconfig.txt in the same boot partition. Generated a password via: openssl passwd -6 Added to the file userconfig.txt in the format: username:hashedpasswordgnerated Can ssh into pi now.

Had to install this package to overcome this no protocol found issue. "mount.nfs: Protocol not supported" sudo apt install nfs-kernel-server Found this package from this guide.

I already whitelisted by IP my pi inside of the NAS software.

Mount manually via: mkdir /var/mountfolderonpi && sudo mount -t nfs IPAddressofnas:/volume/foldertomountonremote /var/mountfolderonpi

Unmount via sudo umount -a

Add to fstab so it mounts automatically on reboot. File is /etc/fstab. Added this to the bottom: ipaddress:/volume/foldertomountonremote /var/mountfolderonpi nfs defaults 0 0

Restart the mount via so it reads fstab via: sudo systemctl daemon-reload && sudo systemctl restart remote-fs.target Took the command from here.