Personal tools
University Computing Service

Help & Support

Red Hat Linux

Using the NFS Server from Red Hat Linux

It is possible to set up the /etc/fstab file to manually mount all of the nfs-uxsup exports at boot. This however, involves tracking any changes we make. While we try to keep these to a minimum, they do happen from time to time. Because of this, this page will explain how to use the automounter to handle all our exports. It will take care of tracking any changes.

Setting up the automounter

For this scheme to work you will need the autofs RPM installed. We are then going to create a directory called /nfs-uxsup and configure the automounter so that whenever someone looks for /nfs-uxsup/directory it should try to mount it from nfs-uxsup.csx.cam.ac.uk:/directory.

Create the /nfs-uxsup directory.

# mkdir /nfs-uxsup

Create the configuration file ("map file") for the automounter to know what do do with this directory. It needs to contain the following line. In this example we will call file file /etc/auto.uxsup.

*       nfs-uxsup.csx.cam.ac.uk:/&

Next, add the following line to the automounter master control file, /etc/auto.master, to tell it about this new directory it controls.

/nfs-uxsup	/etc/auto.uxsup

And finally, (re)start the automounter to read in the new master control file.

# /etc/rc.d/init.d/autofs restart
Automounter not running
# /etc/rc.d/init.d/autofs start
Starting automounter: [  OK  ]

Example of use

$ ls /nfs-uxsup

$ ls /nfs-uxsup/bsd
4.4BSD-Lite/ FreeBSD/