9.4.2. autofs Configuration
/etc/auto.master, also referred to as the master map which may be changed as described in the Section 9.4.1, “Improvements in autofs Version 5 over Version 4”. The master map lists
autofs-controlled mount points on the system, and their corresponding configuration files or network sources known as automount maps. The format of the master map is as follows:
mount-point map-name options
/home, for example.
- The name of a map source which contains a list of mount points, and the file system location from which those mount points should be mounted. The syntax for a map entry is described below.
- If supplied, these will apply to all entries in the given map provided they don't themselves have options specified. This behavior is different from
autofsversion 4 where options were cumulative. This has been changed to implement mixed environment compatibility.
/etc/auto.masterfile (displayed with
mount-point [options] location
- This refers to the
autofsmount point. This can be a single directory name for an indirect mount or the full path of the mount point for direct mounts. Each direct and indirect map entry key (
mount-pointabove) may be followed by a space separated list of offset directories (sub directory names each beginning with a "/") making them what is known as a multi-mount entry.
- Whenever supplied, these are the mount options for the map entries that do not specify their own options.
- This refers to the file system location such as a local file system path (preceded with the Sun map format escape character ":" for map names beginning with "/"), an NFS file system or other valid file system location.
payroll -fstype=nfs personnel:/exports/payroll sales -fstype=ext3 :/dev/hda4
autofsmount point (
payrollfrom the server called
personnel). The second column indicates the options for the
autofsmount while the third column indicates the source of the mount. Following the above configuration, the autofs mount points will be
-fstype=option is often omitted and is generally not needed for correct operation.
service autofs start(if the automount daemon has stopped)
service autofs restart
autofsunmounted directory such as
/home/payroll/2006/July.sxc, the automount daemon automatically mounts the directory. If a timeout is specified, the directory will automatically be unmounted if the directory is not accessed for the timeout period.
service autofs status