Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:nfs [2014/12/29 12:30] – darron | tools:nfs [2017/01/11 16:33] (current) – [autofs] darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== NFS ==== | ==== NFS ==== | ||
- | ==== Debian server | + | Network file system allows us to share files over the network. |
+ | |||
+ | === Debian server === | ||
< | < | ||
apt-get install rpcbind nfs-common nfs-kernel-server | apt-get install rpcbind nfs-common nfs-kernel-server | ||
Line 15: | Line 17: | ||
</ | </ | ||
- | ==== Void Linux client | + | === OpenWRT |
< | < | ||
- | echo " | + | modprobe nfsv3 |
- | mount $SERVERADDRESS:/ | + | modprobe nfs |
+ | mkdir -p /embedded | ||
+ | mount.nfs $SERVERADDRESS:/ | ||
</ | </ | ||
- | == / | + | === Debian |
- | < | + | |
- | blacklist rpcsec_gss_krb5 | + | |
- | </ | + | |
- | + | ||
- | ==== Raspbian | + | |
< | < | ||
apt-get install rpcbind nfs-common | apt-get install rpcbind nfs-common | ||
sed -i ' | sed -i ' | ||
- | mkdir -p /embedded/raspbian | + | mkdir -p /embedded |
- | echo " | + | echo " |
/ | / | ||
/ | / | ||
Line 37: | Line 36: | ||
</ | </ | ||
- | ==== OpenWRT | + | === Void Linux client === |
< | < | ||
- | modprobe nfsv3 | + | xbps-install nfs-utils |
- | modprobe | + | echo " |
- | mkdir -p /embedded/openwrt | + | mkdir -p /embedded |
- | mount.nfs | + | echo "$SERVERADDRESS:/ |
+ | echo " | ||
+ | |||
+ | mkdir -p / | ||
+ | echo "# | ||
+ | chmod +x / | ||
+ | ln -s / | ||
+ | |||
+ | mkdir -p / | ||
+ | echo "# | ||
+ | chmod +x / | ||
+ | ln -s / | ||
+ | |||
+ | mount rpc_pipefs | ||
+ | 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 "/ | ||
+ | / | ||
+ | </ | ||
+ |