Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
share mac directory with rpi via nfs
ssh <sudoer>@<server>
sudo su -
mkdir -p <share-starting-at-/>
cat > /etc/exports <<EOF
# /path options clients
<share-starting-at-/> -network 192.168.1.0 -mask 255.255.255.0
EOF
exit
ssh pi@raspberrypi
mkdir -p <mountpoint>
sudo su -
cat >> /etc/fstab <<EOF
<server-ip>:<share-starting-at/> <mountpoint> nfs rsize=8192,wsize=8192,timeo=14,intr 0 0
EOF
sudo aptitude install nfs-common portmap
sudo service rpcbind start
# or
mount <server-ip>:<share> <mountpoint>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.