xref: /netbsd-src/usr.sbin/autofs/automount.8 (revision b94e44675e4c2360dbf55042b06acad015836368)
1*b94e4467Stkusumi.\"	$NetBSD: automount.8,v 1.6 2019/11/21 15:24:17 tkusumi Exp $
2b985414bSchristos.\" Copyright (c) 2017 The NetBSD Foundation, Inc.
3b985414bSchristos.\" Copyright (c) 2016 The DragonFly Project
4b985414bSchristos.\" Copyright (c) 2014 The FreeBSD Foundation
5b985414bSchristos.\" All rights reserved.
6b985414bSchristos.\"
7b985414bSchristos.\" This code is derived from software contributed to The NetBSD Foundation
8b985414bSchristos.\" by Tomohiro Kusumi.
9b985414bSchristos.\"
10b985414bSchristos.\" This software was developed by Edward Tomasz Napierala under sponsorship
11b985414bSchristos.\" from the FreeBSD Foundation.
12b985414bSchristos.\"
13b985414bSchristos.\" Redistribution and use in source and binary forms, with or without
14b985414bSchristos.\" modification, are permitted provided that the following conditions
15b985414bSchristos.\" are met:
16b985414bSchristos.\" 1. Redistributions of source code must retain the above copyright
17b985414bSchristos.\"    notice, this list of conditions and the following disclaimer.
18b985414bSchristos.\" 2. Redistributions in binary form must reproduce the above copyright
19b985414bSchristos.\"    notice, this list of conditions and the following disclaimer in the
20b985414bSchristos.\"    documentation and/or other materials provided with the distribution.
21b985414bSchristos.\"
22b985414bSchristos.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
23b985414bSchristos.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24b985414bSchristos.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25b985414bSchristos.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
26b985414bSchristos.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27b985414bSchristos.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28b985414bSchristos.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29b985414bSchristos.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30b985414bSchristos.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31b985414bSchristos.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32b985414bSchristos.\" SUCH DAMAGE.
33b985414bSchristos.\"
34b985414bSchristos.\" $FreeBSD$
35b985414bSchristos.\"
36b985414bSchristos.Dd November 25, 2017
37b985414bSchristos.Dt AUTOMOUNT 8
38b985414bSchristos.Os
39b985414bSchristos.Sh NAME
40b985414bSchristos.Nm automount
41b985414bSchristos.Nd update autofs mounts
42b985414bSchristos.Sh SYNOPSIS
43b985414bSchristos.Nm
442df58e16Swiz.Op Fl cfLuv
45b985414bSchristos.Op Fl D Ar name=value
46b985414bSchristos.Op Fl o Ar options
47b985414bSchristos.Sh DESCRIPTION
48b985414bSchristosWhen called without options, the
49b985414bSchristos.Nm
50b985414bSchristoscommand parses the
51b985414bSchristos.Xr auto_master 5
52b985414bSchristosconfiguration file and any direct maps that it references, and mounts
53b985414bSchristosor unmounts
54b985414bSchristos.Xr autofs 5
55b985414bSchristosfile systems to match.
56b985414bSchristosThese options are available:
57b985414bSchristos.Bl -tag -width ".Fl v"
582df58e16Swiz.It Fl c
592df58e16SwizFlush caches, discarding possibly stale information obtained from maps
602df58e16Swizand directory services.
61b985414bSchristos.It Fl D
62b985414bSchristosDefine a variable.
63b985414bSchristosIt is only useful with
64b985414bSchristos.Fl L .
652df58e16Swiz.It Fl f
662df58e16SwizForce unmount, to be used with
672df58e16Swiz.Fl u .
68b985414bSchristos.It Fl L
69b985414bSchristosDo not mount or unmount anything.
70b985414bSchristosInstead parse
71b985414bSchristos.Xr auto_master 5
72b985414bSchristosand any direct maps, then print them to standard output.
73b985414bSchristosWhen specified more than once, all the maps, including indirect ones,
74b985414bSchristoswill be parsed and shown.
75b985414bSchristosThis is useful when debugging configuration problems.
76b985414bSchristos.It Fl o
77b985414bSchristosSpecify mount options to be used along with the ones specified in the maps.
78b985414bSchristosIt is only useful with
79b985414bSchristos.Fl L .
80b985414bSchristos.It Fl u
81b985414bSchristosTry to unmount file systems mounted by
82b985414bSchristos.Xr automountd 8 .
83b985414bSchristos.Xr autofs 5
84b985414bSchristosmounts are not unmounted.
85b985414bSchristosTo unmount all
862df58e16Swiz.Xr autofs 5
87b985414bSchristosmounts, use
88b985414bSchristos.Cm "umount -At autofs".
89b985414bSchristos.It Fl v
90b985414bSchristosIncrease verbosity.
91b985414bSchristos.El
92b985414bSchristos.Sh EXIT STATUS
93b985414bSchristos.Ex -std
94b985414bSchristos.Sh EXAMPLES
95b985414bSchristosUnmount all file systems mounted by
96b985414bSchristos.Xr automountd 8 :
97842435d5Suwe.Pp
98b985414bSchristos.Dl Nm Fl u
99b985414bSchristos.Sh SEE ALSO
100b985414bSchristos.Xr auto_master 5 ,
1012df58e16Swiz.Xr autofs 5 ,
102b985414bSchristos.Xr automountd 8 ,
103b985414bSchristos.Xr autounmountd 8
104b985414bSchristos.Sh HISTORY
105b985414bSchristosThe
106b985414bSchristos.Nm
107b985414bSchristoscommand appeared in
108b985414bSchristos.Fx 10.1 .
109b985414bSchristosThe
110b985414bSchristos.Nm
111b985414bSchristoscommand appeared in
112b985414bSchristos.Dx 4.5 .
113b985414bSchristosThe
114b985414bSchristos.Nm
115b985414bSchristoscommand appeared in
116b985414bSchristos.Nx 9.0 .
117b985414bSchristos.Sh AUTHORS
118c74ee2dcSuwe.An -nosplit
119b985414bSchristosThe
120b985414bSchristos.Nm
121b985414bSchristoswas developed by
122b985414bSchristos.An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org
1232df58e16Swizunder sponsorship from the
1242df58e16Swiz.Fx
1252df58e16SwizFoundation.
126b985414bSchristos.Pp
127b985414bSchristosThe
128b985414bSchristos.Nm
129b985414bSchristoswas ported to
130b985414bSchristos.Dx
131b985414bSchristosand
132b985414bSchristos.Nx
133b985414bSchristosby
134*b94e4467Stkusumi.An Tomohiro Kusumi Aq Mt tkusumi@netbsd.org .
135