aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mount.8
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount/mount.8')
-rw-r--r--sbin/mount/mount.827
1 files changed, 18 insertions, 9 deletions
diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8
index 7bb4eefe03ff..7bfc21ea41d5 100644
--- a/sbin/mount/mount.8
+++ b/sbin/mount/mount.8
@@ -1,3 +1,6 @@
+.\"
+.\" SPDX-License-Identifier: BSD-3-Clause
+.\"
.\" Copyright (c) 1980, 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -25,7 +28,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd November 19, 2024
+.Dd July 16, 2025
.Dt MOUNT 8
.Os
.Sh NAME
@@ -37,7 +40,7 @@
.Op Fl adflpruvw
.Op Fl F Ar fstab
.Op Fl o Ar options
-.Op Fl t Oo Cm no Oc Ns Cm Ar type Ns Op Cm , Ns Ar type ...
+.Op Fl t Oo Cm no Oc Ns Ar type Ns Op , Ns Ar type ...
.Nm
.Op Fl -libxo
.Op Fl dfpruvw
@@ -46,7 +49,7 @@
.Op Fl -libxo
.Op Fl dfpruvw
.Op Fl o Ar options
-.Op Fl t Oo Cm no Oc Ns Cm Ar type Ns Op Cm , Ns Ar type ...
+.Op Fl t Oo Cm no Oc Ns Ar type Ns Op , Ns Ar type ...
.Ar special node
.Sh DESCRIPTION
The
@@ -77,7 +80,7 @@ Generate output via
.Xr libxo 3
in a selection of different human and machine readable formats.
See
-.Xr xo_parse_args 3
+.Xr xo_options 7
for details on command line arguments.
.It Fl a
All the file systems described in
@@ -270,9 +273,11 @@ It is set automatically when the user does not have super-user privileges.
Do not follow symlinks
on the mounted file system.
.It Cm ro
-The same as
-.Fl r ;
-mount the file system read-only (even the super-user may not write it).
+Mount the filesystem read-only, even the super-user may not write it.
+Equivalent to
+.Fl r .
+.It Cm rw
+Mount the filesystem read-write.
.It Cm snapshot
Take a snapshot of the specified filesystem.
When this option is used, all other options are ignored.
@@ -432,7 +437,7 @@ The same as the
argument to the
.Fl o
option.
-.It Fl t Oo Cm no Oc Ns Cm Ar type Ns Op Cm , Ns Ar type ...
+.It Fl t Oo Cm no Oc Ns Ar type Ns Op , Ns Ar type ...
The argument following the
.Fl t
is used to indicate the file system type.
@@ -547,6 +552,10 @@ for more information.)
.It Pa /etc/fstab
file system table
.El
+.Sh EXAMPLES
+Remount the root filesystem with read-write permissions:
+.Pp
+.Dl mount -uw /
.Sh DIAGNOSTICS
Various, most of them are self-explanatory.
.Pp
@@ -564,7 +573,7 @@ support for a particular file system might be provided either on a static
.Xr acl 3 ,
.Xr getmntinfo 3 ,
.Xr libxo 3 ,
-.Xr xo_parse_args 3 ,
+.Xr xo_options 7 ,
.Xr cd9660 4 ,
.Xr devfs 4 ,
.Xr ext2fs 4 ,