AutoFS uses the Linux kernel Automounter to automatically mount several types of media like memory sticks, network shares, CD-Rom/DVD/BR etc. on demand.
You need to activate the following kernel options:
|dmalloc||No||Enable debugging with the dmalloc library|
|hesiod||No||Install hesiod module|
|ldap||No||Install LDAP module|
|libtirpc||No||Use libtirpc lib support|
|sasl||No||Enable SASL support in the LDAP module|
|mount-locking||No||Enable locking to prevent corruption of /etc/mtab in the presence of concurrent auto-mounting. If enabled, recursive auto-mounting (eg. using autofs to bind or loop mount a filesystem which is itself auto-mounted) is not possible.|
Start and add AutoFS to the default runlevel:
The configuration files are located in:
General configuration files for AutoFS.
The default options for autofs can be changed by setting the proper configuration variables located in /etc/conf.d/autofs; in the following example, the default location for the master map (/etc/auto.master) is changed by setting the MASTER_MAP_NAME configuration variable:
In this configuration file is defined what other configuration files should be included as root mount-point. Here is one example with one additional mount-point on /mnt/auto:
Here is our example for the file auto.misc. The folders for the mount-points are automatically created
- Automount mini-Howto on The Linux Documentation Project website