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:31] – 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: | ||
</ | </ | ||
- | ==== OpenWRT client | + | === OpenWRT client === |
< | < | ||
modprobe nfsv3 | modprobe nfsv3 | ||
modprobe nfs | modprobe nfs | ||
- | mkdir -p /embedded/openwrt | + | mkdir -p /embedded |
- | mount.nfs $SERVERADDRESS:/ | + | mount.nfs $SERVERADDRESS:/ |
</ | </ | ||
- | ==== Raspbian | + | === Debian |
< | < | ||
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 34: | Line 36: | ||
</ | </ | ||
- | ==== Void Linux client | + | === Void Linux client === |
< | < | ||
+ | xbps-install nfs-utils | ||
+ | echo " | ||
+ | mkdir -p /embedded | ||
echo " | echo " | ||
- | mount $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. | ||
< | < | ||
- | blacklist rpcsec_gss_krb5 | + | apt-get install autofs |
+ | echo "/- / | ||
+ | echo "/ | ||
+ | / | ||
</ | </ | ||
+ |