Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:nfs [2015/01/10 22:32] – [Void Linux client] darron | tools:nfs [2017/01/11 16:33] (current) – [autofs] darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== NFS ==== | ==== NFS ==== | ||
+ | |||
+ | Network file system allows us to share files over the network. | ||
=== Debian server === | === Debian server === | ||
Line 23: | Line 25: | ||
</ | </ | ||
- | === Raspbian | + | === Debian |
< | < | ||
apt-get install rpcbind nfs-common | apt-get install rpcbind nfs-common | ||
Line 41: | Line 43: | ||
echo " | echo " | ||
echo " | echo " | ||
- | mkdir -p /var/service/rpcbind | + | |
- | echo "# | + | mkdir -p /etc/sv/rpcbind |
- | chmod +x /var/service/ | + | echo "# |
- | mkdir -p / | + | chmod +x /etc/sv/ |
- | echo "# | + | ln -s / |
- | chmod +x /var/service/ | + | |
+ | mkdir -p /etc/sv/ | ||
+ | echo "# | ||
+ | chmod +x /etc/sv/ | ||
+ | ln -s / | ||
mount rpc_pipefs | mount rpc_pipefs | ||
mount $SERVERADDRESS:/ | mount $SERVERADDRESS:/ | ||
</ | </ | ||
+ | |||
+ | === Debian autofs === | ||
+ | |||
+ | One you have an NFS client working you can remove the entry in fstab and use autofs to mount it instead. | ||
+ | |||
+ | < | ||
+ | apt-get install autofs | ||
+ | echo "/- / | ||
+ | echo "/ | ||
+ | / | ||
+ | </ | ||
+ |