2 .TH FINDMNT 8 "Apr 2010" "Version 1.0"
4 findmnt \- find a filesystem
11 .IR device | mountpoint
21 will list all mounted filesytems or search for a filesystem. The
23 command is able to search in
27 .IR /proc/self/mountinfo .
32 is not given, all filesystems are shown.
34 The command prints all mounted filesystems in the tree-like format by default.
36 .IP "\fB\-h, \-\-help\fP"
38 .IP "\fB\-s, \-\-fstab\fP"
41 The output is in the list format (see --list).
42 .IP "\fB\-m, \-\-mtab\fP"
45 The output is in the list format (see --list).
46 .IP "\fB\-k, \-\-kernel\fP"
48 .IR /proc/self/mountinfo .
49 The output is in the tree-like format. This is the default.
50 .IP "\fB\-c, \-\-canonicalize\fP"
51 Canonicalize all printed paths.
52 .IP "\fB\-d, \-\-direction \fIword\fP"
53 The search direction -
57 .IP "\fB\-e, \-\-evaluate\fP"
58 Convert all tags (LABEL or UUID) to the device names.
59 .IP "\fB\-f, \-\-first-only\fP"
60 Print the first matching filesystem only.
61 .IP "\fB\-i, \-\-invert\fP"
62 Invert the sense of matching.
63 .IP "\fB\-l, \-\-list\fP"
64 Use the list output format.
65 .IP "\fB\-n, \-\-noheadings\fP"
66 Do not print a header line.
67 .IP "\fB\-u, \-\-notruncate\fP"
68 Do not truncate text in columns. The default is to not truncate the
74 columns. This option disables text truncation also in all other columns.
75 .IP "\fB\-O, \-\-options \fIlist\fP"
76 Used to limit the set of printed filesystems. More than one option
77 may be specified in a comma-separated list. The
81 options are cumulative in effect. It is different from
83 in that each option is matched exactly; a leading
86 of one option does not negate the rest. For more details see
88 .IP "\fB\-o, \-\-output \fIlist\fP"
89 Define output columns. Currently supported are
101 column contains tree formatting if the
105 options are not specified.
106 .IP "\fB\-r, \-\-raw\fP"
107 Use raw output format.
108 .IP "\fB\-a, \-\-ascii\fP"
109 Use ascii characters for tree formatting.
110 .IP "\fB\-t, \-\-types \fIlist\fP"
111 Used to limit the set of printed filesystems. More than one type may be
112 specified in a comma-separated list. The list of filesystem types can be
115 to specify the filesystem types on which no action should be taken. For
118 .IP "\fB\-S, \-\-source \fIspec\fP"
119 Explicitly define the mount source. Supported are device, LABEL= or UUID=.
120 .IP "\fB\-T, \-\-target \fIdir\fP"
121 Explicitly define the mount target (mountpoint directory).
123 .IP "\fBfindmnt \-\-fstab \-t nfs\fP"
124 Prints all nfs filesystems defined in
126 .IP "\fBfindmnt \-\-fstab /mnt/foo\fP"
129 filesystems where the mountpoint directory is /mnt/foo. It also prints bind mounts where /mnt/foo
131 .IP "\fBfindmnt \-\-fstab --target /mnt/foo\fP"
134 filesystems where the mountpoint directory is /mnt/foo.
135 .IP "\fBfindmnt --fstab --evaluate\fP"
138 filesystems and converts LABEL= and UUID= tags to the real device names.
139 .IP "\fBfindmnt -n --raw --evaluate --output=target LABEL=/boot
140 Prints only the mountpoint where the filesystem with label "/boot" is mounted.
143 Karel Zak <kzak@redhat.com>
149 The findmnt command is part of the util-linux package and is available from
150 ftp://ftp.kernel.org/pub/linux/utils/util-linux/.