NFS Shares in Linux

From Birnam Designs Wiki

Jump to: navigation, search

From the host machine, make sure nfs software is installed. In Ubuntu:

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

Then edit the /etc/exports file:

/home/user/folder 192.168.1.1/24(rw,no_root_squash,async)

And make the share effective with:

sudo exportfs -a

This will share /home/user/folder with everybody in 192.168.1.*

On the guest computer, if you want the mount to happen at startup, create the mount folder (e.g. /mnt/folder) and edit /etc/fstab

192.168.1.2:/home/user/folder /mnt/folder nfs defaults 0 0
Share This!
This page was last modified on 11 February 2010, at 20:02. This page has been accessed 657 times.