automount(8)

automount8

Update autofs mounts

Usage

automount [-D name=value] [-L] [-c] [-f] [-o options] [-v] [-u]

Overview

When called without options, the automount command parses the auto_master(5) configuration file and any direct maps that it references, and mounts or unmounts autofs(4) filesystems to match. These options are available:

-D

Define a variable. It is only useful with -L.

-L

Do not mount or unmount anything. Instead parse auto_master(5) and any direct maps, then print them to standard output. When specified more than once, all the maps, including indirect ones, will be parsed and shown. This is useful when debugging configuration problems.

-c

Flush caches, discarding possibly stale information obtained from maps and directory services.

-f

Force unmount, to be used with -u.

-o

Specify mount options to be used along with the ones specified in the maps. It is only useful with -L.

-u

Try to unmount filesystems mounted by automountd(8). autofs(4) mounts are not unmounted. To unmount all autofs(4) mounts, use umount -At autofs.

-v

Increase verbosity.

Exit status

The automount utility exits 0 on success, and >0 if an error occurs.

Examples

Unmount all filesystems mounted by automountd(8):

automount -u

Releases

29 releases since FreeBSD 10.1-RELEASE; the text changed 17 times.

  1. 10.1
  2. 10.2
  3. 10.3
  4. 10.4
  5. 11.0
  6. 11.1
  7. 11.2
  8. 11.3
  9. 11.4
  10. 12.0
  11. 12.1
  12. 12.2
  13. 12.3
  14. 12.4
  15. 13.0–13.2
  16. 13.3–14.1
  17. 14.2–14.5
  18. 15.0–16.0

-c since FreeBSD 10.2-RELEASE.

History

The automount command appeared in FreeBSD 10.1.

Authors

The automount was developed by Edward Tomasz Napierala ⟨[email protected]⟩ under sponsorship from the FreeBSD Foundation.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.