NFS (Network Filesystem)

NFS or the Network Filesystem is a very effective way of sharing files and data across your Unix network. NFS goes beyond mere file sharing and offers neat functionality that fits perfectly into the Linux filesystem. Simply mount a directory off another machine on your network and read from or write to it - even run applications from it - completely transparently!

Under Windows, through network neighborhood, you can browse through available shares on other machines, run applications and of course transfer data. NFS is somewhat similar, but much more flexible. We've got diskless machines on our network that access their root filesystem using NFS. You can centralize the location of user home directories which users access via NFS. Since Linux uses a unified filesystem, it is completely transparent to the user. You can run an application off another machine as though it was installed on your own machine simply by mounting that directory using NFS.

NFS is also very easy to install and use. It is now part of the standard installation of most, if not all Linux distributions. So this is where we'll ask you to start. Check the CD of your Linux distribution and look for the packages nfs-utils (Red Hat) or nfsserv (SuSE). There is also a new kernel based NFS server. The advantage of this is speed. We are going to work with the stand-alone daemon in this article, the version being

Also look for and install the portmap program if not already installed. NFS won't work without this one running.

NFS configuration involves "exporting" a directory, which can then be "imported" by clients and are then accessible under the mount point.

NFS configuration is as simple as the installation. There is just one file to edit. /etc/exports contains a list of the directories to export as well as the permissions and clients to export to.

Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.