Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:nfs [2014/12/29 12:33] darrontools: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 ===
 <code> <code>
 apt-get install rpcbind nfs-common nfs-kernel-server  apt-get install rpcbind nfs-common nfs-kernel-server 
Line 15: Line 17:
 </code> </code>
  
-==== OpenWRT client ====+=== OpenWRT client ===
 <code> <code>
 modprobe nfsv3 modprobe nfsv3
Line 23: Line 25:
 </code> </code>
  
-==== Raspbian client ====+=== Debian client ===
 <code> <code>
 apt-get install rpcbind nfs-common apt-get install rpcbind nfs-common
Line 34: Line 36:
 </code> </code>
  
-==== Void Linux client ====+=== Void Linux client ===
 <code> <code>
 +xbps-install nfs-utils
 +echo "blacklist rpcsec_gss_krb5" >> /etc/modprobe.d/modprobe.conf 
 mkdir -p /embedded mkdir -p /embedded
 echo "$SERVERADDRESS:/embedded /embedded nfs rw,noatime,noauto 0 0" >> /etc/fstab echo "$SERVERADDRESS:/embedded /embedded nfs rw,noatime,noauto 0 0" >> /etc/fstab
-mount $SERVERADDRESS:/embedded /embedded+echo "rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0" >> /etc/fstab 
 + 
 +mkdir -p /etc/sv/rpcbind 
 +echo "#\!/bin/sh\nexec rpcbind -f" > /etc/sv/rpcbind/run 
 +chmod +x /etc/sv/rpcbind/run 
 +ln -s /etc/sv/rpcbind /var/service 
 + 
 +mkdir -p /etc/sv/rpc.idmapd 
 +echo "#\!/bin/sh\nexec rpc.idmapd -f" >> /etc/sv/rpc.idmapd/run 
 +chmod +x /etc/sv/rpc.idmapd/run 
 +ln -s /etc/sv/rpc.idmapd /var/service 
 + 
 +mount rpc_pipefs 
 +mount $SERVERADDRESS:/embedded
 </code> </code>
  
-== /etc/modprobe.d/modprobe.conf ==+=== Debian autofs === 
 + 
 +One you have an NFS client working you can remove the entry in fstab and use autofs to mount it instead. 
 <code> <code>
-blacklist rpcsec_gss_krb5+apt-get install autofs 
 +echo "/- /etc/auto.data" >> /etc/auto.master 
 +echo "/embedded -fstype=nfs $SERVERADDRESS:/embedded" >> /etc/auto.data 
 +/etc/init.d/autofs restart
 </code> </code>
 +