xref: /netbsd-src/sbin/mount_autofs/mount_autofs.8 (revision 2718af68c3efc72c9769069b5c7f9ed36f6b9def)
1.\" $NetBSD: mount_autofs.8,v 1.8 2019/11/20 21:56:19 wiz Exp $
2.\"
3.\" Copyright (c) 2018 The DragonFly Project
4.\" All rights reserved.
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 21, 2019
28.Dt MOUNT_AUTOFS 8
29.Os
30.Sh NAME
31.Nm mount_autofs
32.Nd mount automounter filesystem
33.Sh SYNOPSIS
34.Nm
35.Op Fl f Ar from
36.Op Fl O Ar master_options
37.Op Fl o Ar options
38.Op Fl p Ar master_prefix
39.Ar autofs
40.Ar mount_point
41.Sh DESCRIPTION
42The
43.Nm
44command should not usually be called by admins.
45Use
46.Xr automount 8
47instead.
48.Xr autofs 5
49is mountable using
50.Xr automount 8 ,
51which incorporates an
52.Xr auto_master 5
53parser, without having to specify
54.Xr autofs 5
55mount options via command line.
56.\" and that was the original intention of FreeBSD/autofs.
57.\" This is a low level version without auto_master(5) involved.
58.Pp
59The
60.Nm
61command attaches the automounter filesystem on the
62.Ar autofs
63device on to the file system tree at point
64.Ar mount_point .
65Both
66.Ar autofs
67and
68.Ar mount_point
69are converted to absolute paths before use.
70.Pp
71This command is normally executed by
72.Xr automount 8 .
73The options are as follows:
74.Bl -tag -width Ds
75.It Fl f
76Set the
77.Ar from
78location for
79.Xr autofs 5 .
80This argument is usually read from
81.Pa /etc/auto_master
82by
83.Xr automount 8 .
84.It Fl o
85Set the mount options.
86See the
87.Xr mount 8
88man page for possible options and their meanings.
89.It Fl O
90Set the
91.Xr autofs 5
92options.
93See the
94.Op Fl Ar options
95in
96.Sx AUTO_MASTER SYNTAX
97of
98.Xr auto_master 5 .
99.It Fl p
100Set the
101.Xr autofs 5
102prefix, below which the file system(s) will be mounted.
103.El
104.Sh SEE ALSO
105.Xr auto_master 5 ,
106.Xr autofs 5 ,
107.Xr fstab 5 ,
108.Xr automount 8 ,
109.Xr mount 8
110.Sh HISTORY
111The
112.Nm
113utility first appeared in
114.Nx 9.0 .
115The
116.Nm
117utility first appeared in
118.Dx 5.1 .
119.Pp
120This manpage first appeared in
121.Dx
122and has been ported to
123.Nx .
124