.\" Copyright (c) 1996-2004 Andries Brouwer .\" Copyright (C) 2006-2012 Karel Zak .\" .\" This page is somewhat derived from a page that was .\" (c) 1980, 1989, 1991 The Regents of the University of California .\" and had been heavily modified by Rik Faith and myself. .\" (Probably no BSD text remains.) .\" Fragments of text were written by Werner Almesberger, Remy Card, .\" Stephen Tweedie and Eric Youngdale. .\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License along .\" 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 "January 2012" "util-linux" "System Administration" .SH NAME mount \- mount a filesystem .SH SYNOPSIS .B mount .RB [ \-lhV ] .LP .BI "mount \-a .RB [ \-fFnrsvw ] .RB [ \-t .IR vfstype ] .RB [ \-O .IR optlist ] .LP .B mount .RB [ \-fnrsvw ] .RB [ \-o .IR option [ \fB,\fPoption ]...] .IR device | dir .LP .B mount .RB [ \-fnrsvw ] .RB [ \-t .IB vfstype ] .RB [ \-o .IR options ] .I device dir .SH DESCRIPTION All files accessible in a Unix system are arranged in one big tree, the file hierarchy, rooted at .BR / . These files can be spread out over several devices. The .B mount command serves to attach the filesystem found on some device to the big file tree. Conversely, the .BR umount (8) command will detach it again. The standard form of the .B mount command, is .RS .br .BI "mount \-t" " type device dir" .br .RE This tells the kernel to attach the filesystem found on .I device (which is of type .IR type ) at the directory .IR dir . The previous contents (if any) and owner and mode of .I dir become invisible, and as long as this filesystem remains mounted, the pathname .I dir refers to the root of the filesystem on .IR device . If only directory or device is given, for example: .RS .br .BI "mount /dir" .br .RE then mount looks for a mountpoint and if not found then for a device in the /etc/fstab file. It's possible to use .B --target or .B --source options to avoid ambivalent interpretation of the given argument. For example .RS .br .BI "mount --target /mountpoint" .br .RE .B The listing and help. .RS Three forms of invocation do not actually mount anything: .TP .B "mount \-h" prints a help message .TP .B "mount \-V" prints a version string .TP .BR "mount " [ -l "] [" "-t \fItype\fP" ] lists all mounted filesystems (of type .IR type ). The option \-l adds the labels in this listing. See below. .RE .B The device indication. .RS Most devices are indicated by a file name (of a block special device), like .IR /dev/sda1 , but there are other possibilities. For example, in the case of an NFS mount, .I device may look like .IR knuth.cwi.nl:/dir . It is possible to indicate a block special device using its filesystem .B LABEL or .B UUID (see the \-L and \-U options below) and partition .B PARTUUID or .B PARTLABEL (partition identifiers are supported for GUID Partition Table (GPT) and MAC partition tables only). The recommended setup is to use tags (e.g. LABEL=