Skip to content

NFS

Server

sudo apt install nfs-kernel-server
sudo systemctl start nfs-kernel-server.service
# /etc/exports
/srv     *(rw,sync,subtree_check)
sudo exportfs -a

Client

mkdir ~/nas
sudo apt install nfs-common
# /etc/fstab
UUID=1FDD-27B1  /boot   vfat    defaults        0       0
UUID=b264f4c6-8797-4ed5-99db-e85ceebc1db4  /   ext4    defaults        0       0
192.168.1.192:/home/pi/nas /home/pi/nas nfs rw,async,hard,intr 0 0
echo "192.168.1.192:/home/pi/nas ${HOME}/nas nfs rw,async,hard,intr 0 0" | sudo tee -a /etc/fstab
sudo mount -a

References

Back to top