2005-05-02 15:01:42 +02:00
|
|
|
.TH MOUNT 1
|
|
|
|
.SH NAME
|
|
|
|
mount \- mount a file system
|
|
|
|
.SH SYNOPSIS
|
2009-05-13 17:39:44 +02:00
|
|
|
\fBmount [\fB\-r\fR] [\fB\-t \fItype\fR] [\fB\-o \fIoptions\fR] \fIspecial \fIfile\fR
|
2005-05-02 15:01:42 +02:00
|
|
|
.br
|
|
|
|
.de FL
|
|
|
|
.TP
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
\\$2
|
|
|
|
..
|
|
|
|
.de EX
|
|
|
|
.TP 20
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
# \\$2
|
|
|
|
..
|
|
|
|
.SH OPTIONS
|
2012-03-31 23:44:29 +02:00
|
|
|
.TP 5
|
2012-06-19 18:03:11 +02:00
|
|
|
.B \-a
|
|
|
|
# All file systems in /etc/fstab except \/ are mounted. File systems marked 'noauto' are skipped
|
|
|
|
.TP 5
|
2012-03-31 23:44:29 +02:00
|
|
|
.B \-r
|
|
|
|
# File system is mounted read-only
|
|
|
|
.TP 5
|
|
|
|
.B \-t
|
|
|
|
# File system type
|
|
|
|
.TP 5
|
|
|
|
.B \-n
|
|
|
|
# Don't update mtab
|
|
|
|
.TP 5
|
|
|
|
.B \-o
|
|
|
|
# Options passed to FS server
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH EXAMPLES
|
2012-03-31 23:44:29 +02:00
|
|
|
.TP 20
|
|
|
|
.B mount /dev/fd1 /user
|
|
|
|
# Mount diskette 1 on \fI/user\fP
|
|
|
|
.TP 20
|
|
|
|
.B mount \-t procfs none /proc
|
|
|
|
# Mount proc file system on \fI/proc\fP
|
2012-06-19 18:03:11 +02:00
|
|
|
.TP 20
|
|
|
|
.B mount \-a
|
|
|
|
# Mount all file systems listed in /etc/fstab except \/.
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
2010-01-13 00:08:50 +01:00
|
|
|
The file system contained on the special file \fIspecial\fP is mounted on
|
|
|
|
\fIfile\fP. If the value of "\fBnone\fP" is given for \fIspecial\fP,
|
|
|
|
the file system is mounted without a block special device underneath it.
|
|
|
|
In the first example above, the root directory of the file system in drive 1
|
2005-05-02 15:01:42 +02:00
|
|
|
can be accessed as
|
|
|
|
.B /user
|
|
|
|
after the mount.
|
|
|
|
When the file system is no longer needed, it must be unmounted before being
|
|
|
|
removed from the drive.
|
|
|
|
.PP
|
2009-05-13 17:39:44 +02:00
|
|
|
The
|
|
|
|
.B \-t
|
|
|
|
parameter may be used to mount a file system of a type other than the default.
|
|
|
|
The
|
|
|
|
.B \-o
|
|
|
|
flag may be used to pass options to the file system server.
|
|
|
|
The interpretation of these options is up to the server.
|
2010-01-13 00:08:50 +01:00
|
|
|
.PP
|
|
|
|
If \fBmount\fP is invoked without any parameters, it will print the list of
|
|
|
|
currently mounted file systems according to
|
|
|
|
.BR mtab (5).
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR df (1),
|
|
|
|
.BR mkfs (1),
|
|
|
|
.BR fsck (1),
|
|
|
|
.BR umount (1),
|
|
|
|
.BR mount (2),
|
|
|
|
.BR fstab (5).
|