summaryrefslogtreecommitdiff
path: root/sbin/mount/mount.8
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount/mount.8')
-rw-r--r--sbin/mount/mount.830
1 files changed, 16 insertions, 14 deletions
diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8
index c429cf94234..5645dbab720 100644
--- a/sbin/mount/mount.8
+++ b/sbin/mount/mount.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mount.8,v 1.64 2007/11/09 15:18:06 jmc Exp $
+.\" $OpenBSD: mount.8,v 1.65 2008/11/14 08:58:36 jmc Exp $
.\" $NetBSD: mount.8,v 1.11 1995/07/12 06:23:21 cgd Exp $
.\"
.\" Copyright (c) 1980, 1989, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mount.8 8.7 (Berkeley) 3/27/94
.\"
-.Dd $Mdocdate: November 9 2007 $
+.Dd $Mdocdate: November 14 2008 $
.Dt MOUNT 8
.Os
.Sh NAME
@@ -233,18 +233,23 @@ distinguished by a leading
.Dq \&-
(dash).
Options that take a value are specified using the syntax -option=value.
-For example, the
-.Nm
-command:
-.Bd -literal -offset indent
-# mount -t mfs -o nosuid,-s=4000 /dev/sd0b /tmp
+For example:
+.Bd -literal -offset 3n
+# mount -t mfs -o rw,nodev,nosuid,-s=153600 /dev/sd0b /tmp
.Ed
.Pp
-causes
+That causes
.Nm
to execute the equivalent of:
-.Bd -literal -offset indent
-# /sbin/mount_mfs -o nosuid -s 4000 /dev/sd0b /tmp
+.Bd -literal -offset 3n
+# /sbin/mount_mfs -o rw,nodev,nosuid -s 153600 /dev/sd0b /tmp
+.Ed
+.Pp
+The equivalent example in
+.Xr fstab 5
+would be:
+.Bd -literal -offset 3n
+swap /tmp mfs rw,nodev,nosuid,-s=153600 0 0
.Ed
.It Fl r
The file system is to be mounted read-only.
@@ -285,10 +290,7 @@ command:
# mount -a -t nonfs,mfs
.Ed
.Pp
-mounts all file systems except those of type
-.Tn NFS
-and
-.Tn MFS .
+mounts all file systems except those of type NFS and MFS .
.Pp
.Nm
will attempt to execute a program in