mount: adjust some wordings and formatting in the man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
This commit is contained in:
parent
c805c36923
commit
bcdf097812
|
@ -27,7 +27,7 @@
|
|||
.\" with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
.\"
|
||||
.TH MOUNT 8 "July 2014" "util-linux" "System Administration"
|
||||
.TH MOUNT 8 "August 2015" "util-linux" "System Administration"
|
||||
.SH NAME
|
||||
mount \- mount a filesystem
|
||||
.SH SYNOPSIS
|
||||
|
@ -91,11 +91,9 @@ refers to the root of the filesystem on
|
|||
|
||||
If only the directory or the device is given, for example:
|
||||
.RS
|
||||
|
||||
.br
|
||||
.sp
|
||||
.BI "mount /dir"
|
||||
.br
|
||||
|
||||
.sp
|
||||
.RE
|
||||
then \fBmount\fR looks for a mountpoint (and if not found then for a device) in the
|
||||
.IR /etc/fstab
|
||||
|
@ -105,14 +103,11 @@ or
|
|||
.B \-\-source
|
||||
options to avoid ambivalent interpretation of the given argument. For example:
|
||||
.RS
|
||||
|
||||
.br
|
||||
.sp
|
||||
.BI "mount \-\-target /mountpoint"
|
||||
.br
|
||||
|
||||
.sp
|
||||
.RE
|
||||
|
||||
|
||||
.B The listing.
|
||||
.RS
|
||||
The listing mode is maintained for backward compatibility only.
|
||||
|
@ -124,13 +119,11 @@ mountpoint name are replaced with '?'.
|
|||
|
||||
The following command lists all mounted filesystems (of type
|
||||
.IR type ):
|
||||
|
||||
.RS
|
||||
.br
|
||||
.sp
|
||||
.BR "mount " [ \-l "] [" "\-t \fItype\/\fP" ]
|
||||
.br
|
||||
.sp
|
||||
.RE
|
||||
|
||||
The option \fB\-l\fR adds labels to this listing. See below.
|
||||
.RE
|
||||
|
||||
|
@ -284,15 +277,13 @@ Thus, given a line
|
|||
.sp
|
||||
.RE
|
||||
any user can mount the iso9660 filesystem found on an inserted CDROM
|
||||
using the command
|
||||
using the command:
|
||||
.RS
|
||||
.sp
|
||||
.B "mount /dev/cdrom"
|
||||
.sp
|
||||
.RE
|
||||
or
|
||||
.RS
|
||||
.sp
|
||||
.B "mount /cd"
|
||||
.sp
|
||||
.RE
|
||||
|
@ -364,22 +355,21 @@ a second place by using:
|
|||
Note that the filesystem mount options will remain the same as those
|
||||
on the original mount point.
|
||||
|
||||
.BR mount(8)
|
||||
since v2.27 allow to change the options by passing the
|
||||
.B \-o
|
||||
option along with
|
||||
.BR \-\-bind
|
||||
for example:
|
||||
.BR mount (8)
|
||||
since v2.27 allows to change the mount options by passing the
|
||||
relevant options along with
|
||||
.BR \-\-bind .
|
||||
For example:
|
||||
|
||||
.RS
|
||||
.br
|
||||
.B mount \-\-bind,ro foo foo
|
||||
.RE
|
||||
|
||||
This feature is not supported by Linux kernel and it is implemented in userspace
|
||||
by additional remount mount(2) syscall. This solution is not atomic.
|
||||
This feature is not supported by the Linux kernel; it is implemented in userspace
|
||||
by an additional \fBmount\fR(2) remounting syscall. This solution is not atomic.
|
||||
|
||||
The alternative (classic) way to create a read-only bind mount is to use remount
|
||||
The alternative (classic) way to create a read-only bind mount is to use the remount
|
||||
operation, for example:
|
||||
|
||||
.RS
|
||||
|
@ -391,14 +381,15 @@ operation, for example:
|
|||
.I olddir newdir
|
||||
.RE
|
||||
|
||||
Note that read-only bind will create a read-only mountpoint (VFS entry), but the
|
||||
original filesystem superblock will still be writable, meaning that the
|
||||
Note that a read-only bind will create a read-only mountpoint (VFS entry),
|
||||
but the original filesystem superblock will still be writable, meaning that the
|
||||
.I olddir
|
||||
will be writable, but the
|
||||
.I newdir
|
||||
will be read-only.
|
||||
|
||||
It's impossible to change mount options recursively (for example b \fB -o rbind,ro\fR).
|
||||
It's impossible to change mount options recursively
|
||||
(for example with \fB-o rbind,ro\fR).
|
||||
.RE
|
||||
|
||||
.B The move operation.
|
||||
|
|
Loading…
Reference in New Issue