NFS
From Wiki
Contents |
[edit]
Network File Share
[edit]
Install on Server
apt-get install nfs-kernel-server nfs-common portmap
[edit]
Install on Client
apt-get install nfs-common portmap
[edit]
Config on the server:
vi /etc/exports /home 195.12.32.2(rw,no_root_squash) www.first.com(ro) /usr 195.12.32.2/24(ro,insecure) exportfs -a //read in /etc/exports file
[edit]
Config on the Client:
vi /etc/fstab 195.12.32.1:/home /home nfs rw,rsize=4096,wsize=4096,hard,intr,async,nodev,nosuid 0 0 195.12.32.2:/usr /usr nfs ro,rsize=8192,hard,intr,nfsvers=3,tcp,noatime,nodev,async 0 0 nfs.host.com:/home /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
