Pejman Moghadam / Slackware

Slackware 12.0 - NFS : Network File System

Public domain


Server: /etc/exports

/share       172.16.20.1(rw,no_root_squash,no_subtree_check)
/share       172.16.20.2(rw,no_root_squash,no_subtree_check)

Server: /etc/hosts.deny

portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

Server: /etc/hosts.allow

portmap: 172.16.20.2, 172.16.20.1
lockd: 172.16.20.2, 172.16.20.1
mountd: 172.16.20.2, 172.16.20.1
rquotad: 172.16.20.2, 172.16.20.1
statd: 172.16.20.2, 172.16.20.1

Server start

chmod +x /etc/rc.d/rc.rpc
chmod +x /etc/rc.d/rc.nfsd
/etc/rc.d/rc.rpc restart
/etc/rc.d/rc.nfsd restart

client: /etc/fstab

172.16.20.100:/share   /share/    nfs         rsize=16384,wsize=16384,noauto,owner,rw,hard,intr 0 0

client start

chmod +x /etc/rc.d/rc.rpc
/etc/rc.d/rc.rpc restart
mkdir /share
mount /share

BY: Pejman Moghadam
TAG: nfs, fstab
DATE: 2007-11-03 09:12:17


Pejman Moghadam / Slackware [ TXT ]