Saturday, August 18, 2007

Connect to a remote NFS Server

Enter the following commands on the server you want to share
sudo gedit /etc/exports

Then enter the following replacing the ipaddress I have below with your own, you can remove the last digits of your ipadress an replace with a 0 for anyone to access from that ip range
/pathtoshare 172.16.197.0/255.255.255.0(ro,sync)

Reload the Exports File
sudo exportfs -r

On the client machine set up a directory up to mount to
sudo mkdir /mnt/www

Then edit your fstab file
sudo gedit /etc/fstab

and add
172.16.197.1:/pathtoshareremote /pathtosharelocal nfs rsize=8192,wsize=8192,timeo=14,intr

No comments: