xref: /dflybsd-src/usr.sbin/autofs/automount.8 (revision 49837aef746c624b1028f61bae002d4446504b52)
1e2950f41STomohiro Kusumi.\" Copyright (c) 2016 The DragonFly Project
2e2950f41STomohiro Kusumi.\" Copyright (c) 2014 The FreeBSD Foundation
3e2950f41STomohiro Kusumi.\" All rights reserved.
4e2950f41STomohiro Kusumi.\"
5e2950f41STomohiro Kusumi.\" This software was developed by Edward Tomasz Napierala under sponsorship
6e2950f41STomohiro Kusumi.\" from the FreeBSD Foundation.
7e2950f41STomohiro Kusumi.\"
8e2950f41STomohiro Kusumi.\" Redistribution and use in source and binary forms, with or without
9e2950f41STomohiro Kusumi.\" modification, are permitted provided that the following conditions
10e2950f41STomohiro Kusumi.\" are met:
11e2950f41STomohiro Kusumi.\" 1. Redistributions of source code must retain the above copyright
12e2950f41STomohiro Kusumi.\"    notice, this list of conditions and the following disclaimer.
13e2950f41STomohiro Kusumi.\" 2. Redistributions in binary form must reproduce the above copyright
14e2950f41STomohiro Kusumi.\"    notice, this list of conditions and the following disclaimer in the
15e2950f41STomohiro Kusumi.\"    documentation and/or other materials provided with the distribution.
16e2950f41STomohiro Kusumi.\"
17e2950f41STomohiro Kusumi.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
18e2950f41STomohiro Kusumi.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19e2950f41STomohiro Kusumi.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20e2950f41STomohiro Kusumi.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
21e2950f41STomohiro Kusumi.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22e2950f41STomohiro Kusumi.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23e2950f41STomohiro Kusumi.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24e2950f41STomohiro Kusumi.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25e2950f41STomohiro Kusumi.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26e2950f41STomohiro Kusumi.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27e2950f41STomohiro Kusumi.\" SUCH DAMAGE.
28e2950f41STomohiro Kusumi.\"
29e2950f41STomohiro Kusumi.\" $FreeBSD$
30e2950f41STomohiro Kusumi.\"
31e2950f41STomohiro Kusumi.Dd April 14, 2016
32e2950f41STomohiro Kusumi.Dt AUTOMOUNT 8
33e2950f41STomohiro Kusumi.Os
34e2950f41STomohiro Kusumi.Sh NAME
35e2950f41STomohiro Kusumi.Nm automount
36e2950f41STomohiro Kusumi.Nd update autofs mounts
37e2950f41STomohiro Kusumi.Sh SYNOPSIS
38e2950f41STomohiro Kusumi.Nm
39e2950f41STomohiro Kusumi.Op Fl D Ar name=value
40e2950f41STomohiro Kusumi.Op Fl L
41e2950f41STomohiro Kusumi.Op Fl c
42e2950f41STomohiro Kusumi.Op Fl f
43e2950f41STomohiro Kusumi.Op Fl o Ar options
44e2950f41STomohiro Kusumi.Op Fl v
45e2950f41STomohiro Kusumi.Op Fl u
46e2950f41STomohiro Kusumi.Sh DESCRIPTION
47e2950f41STomohiro KusumiWhen called without options, the
48e2950f41STomohiro Kusumi.Nm
49e2950f41STomohiro Kusumicommand parses the
50e2950f41STomohiro Kusumi.Xr auto_master 5
51e2950f41STomohiro Kusumiconfiguration file and any direct maps that it references, and mounts
52e2950f41STomohiro Kusumior unmounts
53e2950f41STomohiro Kusumi.Xr autofs 5
54e2950f41STomohiro Kusumifilesystems to match.
55e2950f41STomohiro KusumiThese options are available:
56e2950f41STomohiro Kusumi.Bl -tag -width ".Fl v"
57e2950f41STomohiro Kusumi.It Fl D
58e2950f41STomohiro KusumiDefine a variable.
59e2950f41STomohiro KusumiIt is only useful with
60e2950f41STomohiro Kusumi.Fl L .
61e2950f41STomohiro Kusumi.It Fl L
62e2950f41STomohiro KusumiDo not mount or unmount anything.
63e2950f41STomohiro KusumiInstead parse
64e2950f41STomohiro Kusumi.Xr auto_master 5
65e2950f41STomohiro Kusumiand any direct maps, then print them to standard output.
66e2950f41STomohiro KusumiWhen specified more than once, all the maps, including indirect ones,
67e2950f41STomohiro Kusumiwill be parsed and shown.
68e2950f41STomohiro KusumiThis is useful when debugging configuration problems.
69e2950f41STomohiro Kusumi.It Fl c
70e2950f41STomohiro KusumiFlush caches, discarding possibly stale information obtained from maps
71e2950f41STomohiro Kusumiand directory services.
72e2950f41STomohiro Kusumi.It Fl f
73e2950f41STomohiro KusumiForce unmount, to be used with
74e2950f41STomohiro Kusumi.Fl u .
75e2950f41STomohiro Kusumi.It Fl o
76e2950f41STomohiro KusumiSpecify mount options to be used along with the ones specified in the maps.
77e2950f41STomohiro KusumiIt is only useful with
78e2950f41STomohiro Kusumi.Fl L .
79e2950f41STomohiro Kusumi.It Fl u
80e2950f41STomohiro KusumiTry to unmount filesystems mounted by
81e2950f41STomohiro Kusumi.Xr automountd 8 .
82e2950f41STomohiro Kusumi.Xr autofs 5
83e2950f41STomohiro Kusumimounts are not unmounted.
84e2950f41STomohiro KusumiTo unmount all
856700dd34SSascha Wildner.Xr autofs 5
86e2950f41STomohiro Kusumimounts, use
87e2950f41STomohiro Kusumi.Cm "umount -At autofs".
88e2950f41STomohiro Kusumi.It Fl v
89e2950f41STomohiro KusumiIncrease verbosity.
90e2950f41STomohiro Kusumi.El
91e2950f41STomohiro Kusumi.Sh EXIT STATUS
92e2950f41STomohiro Kusumi.Ex -std
93e2950f41STomohiro Kusumi.Sh EXAMPLES
94e2950f41STomohiro KusumiUnmount all filesystems mounted by
95e2950f41STomohiro Kusumi.Xr automountd 8 :
96e2950f41STomohiro Kusumi.Dl Nm Fl u
97e2950f41STomohiro Kusumi.Sh SEE ALSO
98e2950f41STomohiro Kusumi.Xr autofs 5 ,
9971990c18SSascha Wildner.Xr auto_master 5 ,
100e2950f41STomohiro Kusumi.Xr automountd 8 ,
101e2950f41STomohiro Kusumi.Xr autounmountd 8
102e2950f41STomohiro Kusumi.Sh HISTORY
103e2950f41STomohiro KusumiThe
104e2950f41STomohiro Kusumi.Nm
105e2950f41STomohiro Kusumicommand appeared in
106e2950f41STomohiro Kusumi.Fx 10.1 .
107e2950f41STomohiro KusumiThe
108e2950f41STomohiro Kusumi.Nm
109e2950f41STomohiro Kusumicommand appeared in
110e2950f41STomohiro Kusumi.Dx 4.5 .
111e2950f41STomohiro Kusumi.Sh AUTHORS
112e2950f41STomohiro KusumiThe
113e2950f41STomohiro Kusumi.Nm
114e2950f41STomohiro Kusumiwas developed by
115e2950f41STomohiro Kusumi.An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org
116e2950f41STomohiro Kusumiunder sponsorship from the FreeBSD Foundation.
117e2950f41STomohiro Kusumi.Pp
118e2950f41STomohiro KusumiThe
119e2950f41STomohiro Kusumi.Nm
120e2950f41STomohiro Kusumiwas ported to
121e2950f41STomohiro Kusumi.Dx
122e2950f41STomohiro Kusumiby
123*49837aefSTomohiro Kusumi.An Tomohiro Kusumi Aq Mt tkusumi@netbsd.org .
124b99c9975STomohiro KusumiDonated to DragonFlyBSD by PeerCorps Trust Fund.
125