From Wiki

Revision as of 22:49, 2 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Network File Share

Install on Server

apt-get install nfs-kernel-server nfs-common portmap

Install on Client

apt-get install nfs-common portmap

Config on the server:

vi /etc/exports

exportfs -a   //read in /etc/exports file

Config on the Client:

vi /etc/fstab /home nfs rw,rsize=4096,wsize=4096,hard,intr,async,nodev,nosuid 0 0 /usr nfs ro,rsize=8192,hard,intr,nfsvers=3,tcp,noatime,nodev,async 0 0             /home   nfs     hard,intr,rsize=16384,wsize=16384,posix,tcp 0 2
//the above is the line used on compsoc nfs. async is default!

To mount a nfs drive with the options in /etc/fstab:

mount /home
//or mount /nfsname
//or better yet - after making a change to /etc/fstab etc.:
mount -oremount /home


showmount -e ip_or_server_name
#shows what mounts a server is exporting.

Personal tools