do not trim leading pathname from special device name
[unix-history] / usr / src / sbin / mount / mount.8
index 432b3b6..551b4e5 100644 (file)
@@ -13,7 +13,7 @@
 .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 .\"
 .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 .\"
-.\"    @(#)mount.8     6.7 (Berkeley) %G%
+.\"    @(#)mount.8     6.11 (Berkeley) %G%
 .\"
 .TH MOUNT 8 ""
 .UC 4
 .\"
 .TH MOUNT 8 ""
 .UC 4
@@ -22,18 +22,18 @@ mount, umount \- mount and dismount file systems
 .SH SYNOPSIS
 .B mount
 [
 .SH SYNOPSIS
 .B mount
 [
-.B \-afrw
+.B \-afrwu
 ]
 .br
 .B mount
 [
 ]
 .br
 .B mount
 [
-.B \-frw
+.B \-frwu
 ]
 special | node
 .br
 .B mount
 [
 ]
 special | node
 .br
 .B mount
 [
-.B \-frw
+.B \-frwu
 ] [
 .B \-t
 nfs | ufs | external_type
 ] [
 .B \-t
 nfs | ufs | external_type
@@ -47,9 +47,14 @@ special node
 .B umount
 [
 .B \-a
 .B umount
 [
 .B \-a
+] [
+.B \-f
 ]
 .br
 .B umount
 ]
 .br
 .B umount
+[
+.B \-f
+]
 special | node
 .br
 .SH DESCRIPTION
 special | node
 .br
 .SH DESCRIPTION
@@ -59,8 +64,8 @@ block device \fIspecial\fP or the remote node ``rhost:path''.
 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
 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
+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.
 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.
@@ -74,8 +79,8 @@ to indicate the file system type.
 The type \fBufs\fP is the default.
 If the type is not one of the internally known types,
 mount will attempt to execute a program in
 The type \fBufs\fP is the default.
 If the type is not one of the internally known types,
 mount will attempt to execute a program in
-.B /sbin
-corresponding to the type name.
+.B /sbin/mount_XXX
+where \fBXXX\fP is replaced by the type name.
 The standard mount options (see below) are parsed and
 passed to external program via the \fI-F\fP option
 as a decimal number.
 The standard mount options (see below) are parsed and
 passed to external program via the \fI-F\fP option
 as a decimal number.
@@ -90,7 +95,7 @@ For example, the mount command:
 .br
 causes mount to attempt to execute:
 .br
 .br
 causes mount to attempt to execute:
 .br
-       /sbin/mfs -F 8 -N -s 4000 /dev/dk0b /tmp
+       /sbin/mount_mfs -F 8 -N -s 4000 /dev/dk0b /tmp
 .PP
 Options are specified by a \fI-o\fP argument
 followed by a comma separated string of options.
 .PP
 Options are specified by a \fI-o\fP argument
 followed by a comma separated string of options.
@@ -108,6 +113,15 @@ special devices for architectures other than its own.
 .IP "synchronous" 12
 All I/O to the file system should be done synchronously.
 .PP
 .IP "synchronous" 12
 All I/O to the file system should be done synchronously.
 .PP
+The \fI-u\fP flag indicates that the status of an already mounted file
+system should be changed.
+Any of the options above may be changed;
+also a file system can be changed from read-only to read-write.
+The set of options is determined by first extracting the options
+for the file system from the \fIfstab\fP table,
+then applying any options specified by the \fI-o\fP argument,
+and finally applying the \fI-r\fP or \fI-w\fP option.
+.PP
 The following list can be used to override
 the defaults for an nfs mount:
 .IP "hard" 12
 The following list can be used to override
 the defaults for an nfs mount:
 .IP "hard" 12
@@ -135,6 +149,12 @@ Set initial nfs timeout to \fI#\fP in 0.1 sec intervals.
 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.
 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.
+If the \fI-f\fP option is specified for
+.IR umount ,
+the file system is forcibly unmounted.
+Active special devices continue to work,
+but all other files return errors if further accesses are attempted.
+The root file system cannot be forcibly unmounted.
 .PP
 If the \fI-a\fP option is present for either
 .I mount
 .PP
 If the \fI-a\fP option is present for either
 .I mount
@@ -156,9 +176,9 @@ whether or not any explicit write is attempted.
 .SH FILES
 /etc/fstab     file system table
 .SH "SEE ALSO"
 .SH FILES
 /etc/fstab     file system table
 .SH "SEE ALSO"
-mount(2), fstab(5)
+mount(2), unmount(2), fstab(5)
 .SH BUGS
 Mounting garbaged file systems will crash the system.
 .PP
 Mounting a root directory on a non-directory
 .SH BUGS
 Mounting garbaged file systems will crash the system.
 .PP
 Mounting a root directory on a non-directory
-makes some apparently good pathnames invalid.
+makes some apparently good path names invalid.