xref: /freebsd/usr.sbin/autofs/automount.8 (revision 1719886f6d08408b834d270c59ffcfd821c8f63a)
1.\" Copyright (c) 2014 The FreeBSD Foundation
2.\"
3.\" This software was developed by Edward Tomasz Napierala under sponsorship
4.\" from the FreeBSD Foundation.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
16.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.Dd November 22, 2014
28.Dt AUTOMOUNT 8
29.Os
30.Sh NAME
31.Nm automount
32.Nd update autofs mounts
33.Sh SYNOPSIS
34.Nm
35.Op Fl D Ar name=value
36.Op Fl L
37.Op Fl c
38.Op Fl f
39.Op Fl o Ar options
40.Op Fl v
41.Op Fl u
42.Sh DESCRIPTION
43When called without options, the
44.Nm
45command parses the
46.Xr auto_master 5
47configuration file and any direct maps that it references, and mounts
48or unmounts
49.Xr autofs 5
50filesystems to match.
51These options are available:
52.Bl -tag -width ".Fl v"
53.It Fl D
54Define a variable.
55It is only useful with
56.Fl L .
57.It Fl L
58Do not mount or unmount anything.
59Instead parse
60.Xr auto_master 5
61and any direct maps, then print them to standard output.
62When specified more than once, all the maps, including indirect ones,
63will be parsed and shown.
64This is useful when debugging configuration problems.
65.It Fl c
66Flush caches, discarding possibly stale information obtained from maps
67and directory services.
68.It Fl f
69Force unmount, to be used with
70.Fl u .
71.It Fl o
72Specify mount options to be used along with the ones specified in the maps.
73It is only useful with
74.Fl L .
75.It Fl u
76Try to unmount filesystems mounted by
77.Xr automountd 8 .
78.Xr autofs 5
79mounts are not unmounted.
80To unmount all
81.Xr autofs
82mounts, use
83.Cm "umount -At autofs".
84.It Fl v
85Increase verbosity.
86.El
87.Sh EXIT STATUS
88.Ex -std
89.Sh EXAMPLES
90Unmount all filesystems mounted by
91.Xr automountd 8 :
92.Dl Nm Fl u
93.Sh SEE ALSO
94.Xr auto_master 5 ,
95.Xr autofs 5 ,
96.Xr automountd 8 ,
97.Xr autounmountd 8
98.Sh HISTORY
99The
100.Nm
101command appeared in
102.Fx 10.1 .
103.Sh AUTHORS
104The
105.Nm
106was developed by
107.An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org
108under sponsorship from the FreeBSD Foundation.
109