ANSIfication; bug report 4.3BSD/bin/223
[unix-history] / usr / src / sbin / mount / mount.8
index e3a9d7b..a6a1dc8 100644 (file)
@@ -2,89 +2,65 @@
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
-.\"    @(#)mount.8     6.1 (Berkeley) %G%
+.\"    @(#)mount.8     6.3 (Berkeley) %G%
 .\"
 .TH MOUNT 8 ""
 .UC 4
 .SH NAME
 .\"
 .TH MOUNT 8 ""
 .UC 4
 .SH NAME
-mount, umount \- mount and dismount file system
+mount, umount \- mount and dismount file systems
 .SH SYNOPSIS
 .SH SYNOPSIS
-.B /etc/mount
-[ special name [
-.B \-r
-] ]
+.nf
+.B mount [-afrw]
+.B mount [-frw] special | node
+.B mount [-frw] special node
 .PP
 .PP
-.B /etc/mount
-.B \-a
-.PP
-.B /etc/umount
-special
-.PP
-.B /etc/umount
-.B \-a
+.B umount [-a]
+.B umount special | node
+.fi
 .SH DESCRIPTION
 .I Mount
 .SH DESCRIPTION
 .I Mount
-announces to the system that a removable file system
-is present on the device
-.I special.
-The file
-.I name
-must exist already; it
-must be a directory (unless the root of the
-mounted file system is not a directory).
-It becomes the name of the newly mounted root.
-The optional argument
-.B \-r
-indicates that the file system
-is to be mounted read-only.
+announces to the system that a removable file system is present on the
+block device \fIspecial\fP.  The file \fInode\fP must exist already and
+it must be a directory.  It becomes the name of the newly mounted root.
+The optional arguments \fI-r\fP and \fI-w\fP indicate that the file
+system is to be mounted read-only or read-write, respectively.  If
+either \fIspecial\fP or \fIfile\fP are not provided, the appropriate
+information is taken from the \fIfstab\fP file.  The \fI-f\fP option
+causes everything to be done except for the actual system call; if it's
+not obvious, this ``fakes'' mounting the file system.
 .PP
 .I Umount
 .PP
 .I Umount
-announces to the system that the removable file system previously
-mounted on device
-.I special
-is to be removed.
+announces to the system that the removable file system \fInode\fP
+or whatever removable file system was previously mounted on device
+\fIspecial\fP should be removed.
 .PP
 .PP
-If the
-.B \-a
-option is present for either
+If the \fI-a\fP option is present for either
 .I mount
 or
 .I umount,
 all of the file systems described in
 .I mount
 or
 .I umount,
 all of the file systems described in
-.I /etc/fstab
-are attempted to be mounted or unmounted.
-In this case,
-.I special
-and
-.I name
-are taken from
-.I /etc/fstab.
-The
-.I special
-file name from
-.I /etc/fstab
-is the block special name.
+.I fstab
+are mounted or unmounted.
 .PP
 These commands
 .PP
 These commands
-maintain a table of mounted devices in
+maintain a list of currently mounted file systems in
 .I /etc/mtab.
 If invoked without an argument,
 .I mount
 .I /etc/mtab.
 If invoked without an argument,
 .I mount
-prints the table.
+prints the list.
 .PP
 Physically write-protected and magnetic tape file
 systems must be mounted read-only
 or errors will occur when access times are updated,
 whether or not any explicit write is attempted.
 .SH FILES
 .PP
 Physically write-protected and magnetic tape file
 systems must be mounted read-only
 or errors will occur when access times are updated,
 whether or not any explicit write is attempted.
 .SH FILES
-/etc/mtab      mount table
+/etc/mtab              mount table
 .br
 /etc/fstab     file system table
 .SH "SEE ALSO"
 .br
 /etc/fstab     file system table
 .SH "SEE ALSO"
-mount(2),
-mtab(5), fstab(5)
+mount(2), fstab(5), mtab(5)
 .SH BUGS
 .SH BUGS
-Mounting file systems full of garbage will crash the system.
-.br
+Mounting garbaged file systems will crash the system.
+.PP
 Mounting a root directory on a non-directory
 makes some apparently good pathnames invalid.
 Mounting a root directory on a non-directory
 makes some apparently good pathnames invalid.