Operation Manual

18.4.2.1 Using the Automount Service
The autofs daemon can be used to mount remote le systems automatically. Add the
following entry in the your /etc/auto.master le:
/nfsmounts /etc/auto.nfs
Now the /nfsmounts directory acts as the root for all the NFS mounts on the client
if the auto.nfs le is lled appropriately. The name auto.nfs is chosen for the
sake of convenience—you can choose any name. In auto.nfs add entries for all the
NFS mounts as follows:
localdata -fstype=nfs server1:/data
nfs4mount -fstype=nfs4 server2:/
Activate the settings with rcautofs start as root. In this example,
/nfsmounts/localdata, the /data directory of server1, is mounted with
NFS and /nfsmounts/nfs4mount from server2 is mounted with NFSv4.
If the /etc/auto.master le is edited while the service autofs is running, the au-
tomounter must be restarted for the changes to take effect with rcautofs restart.
18.4.2.2 Manually Editing /etc/fstab
A typical NFSv3 mount entry in /etc/fstab looks like this:
nfs.example.com:/data /local/path nfs rw,noauto 0 0
NFSv4 mounts may also be added to the /etc/fstab le. For these mounts, use
nfs4 instead of nfs in the third column and make sure that the remote le system is
given as / after the nfs.example.com: in the rst column. A sample line for an
NFSv4 mount in /etc/fstab looks like this:
nfs.example.com:/ /local/pathv4 nfs4 rw,noauto 0 0
The noauto option prevents the le system from being mounted automatically at start
up. If you want to mount the respective le system manually, it is possible to shorten
the mount command specifying the mount point only:
mount /local/path
344 Reference