1FINDMNT(8)                  System Manager's Manual                 FINDMNT(8)
2
3
4

NAME

6       findmnt - find a filesystem
7

SYNOPSIS

9       findmnt [options]
10
11       findmnt [options] device|mountpoint
12
13       findmnt [options] [--source] device [--target] mountpoint
14

DESCRIPTION

16       findmnt  will  list  all mounted filesytems or search for a filesystem.
17       The findmnt command is able  to  search  in  /etc/fstab,  /etc/mtab  or
18       /proc/self/mountinfo.   If  device  or  mountpoint  is  not  given, all
19       filesystems are shown.
20
21       The command prints all mounted filesystems in the tree-like  format  by
22       default.
23

OPTIONS

25       -h, --help
26              Print help and exit.
27
28       -s, --fstab
29              Search  in  /etc/fstab.   The  output is in the list format (see
30              --list).
31
32       -m, --mtab
33              Search in /etc/mtab.  The output is  in  the  list  format  (see
34              --list).
35
36       -k, --kernel
37              Search  in /proc/self/mountinfo.  The output is in the tree-like
38              format.  This is the default.
39
40       -c, --canonicalize
41              Canonicalize all printed paths.
42
43       -d, --direction word
44              The search direction - forward or backward.
45
46       -e, --evaluate
47              Convert all tags (LABEL or UUID) to the device names.
48
49       -f, --first-only
50              Print the first matching filesystem only.
51
52       -i, --invert
53              Invert the sense of matching.
54
55       -l, --list
56              Use the list output format.
57
58       -n, --noheadings
59              Do not print a header line.
60
61       -u, --notruncate
62              Do not truncate text in columns.  The default is to not truncate
63              the  TARGET,  SOURCE,  UUID and LABEL columns.  This option dis‐
64              ables text truncation also in all other columns.
65
66       -O, --options list
67              Used to limit the set of printed  filesystems.   More  than  one
68              option  may  be specified in a comma-separated list.  The -t and
69              -O options are cumulative in effect.  It is different from -t in
70              that  each option is matched exactly; a leading no at the begin‐
71              ning of one option does not negate the rest.  For  more  details
72              see mount(8).
73
74       -o, --output list
75              Define  output columns.  Currently supported are SOURCE, TARGET,
76              FSTYPE, OPTIONS, VFS-OPTIONS, FS-OPTIONS, LABEL and  UUID.   The
77              TARGET  column  contains  tree formatting if the --list or --raw
78              options are not specified.
79
80       -r, --raw
81              Use raw output format.
82
83       -a, --ascii
84              Use ascii characters for tree formatting.
85
86       -t, --types list
87              Used to limit the set of printed  filesystems.   More  than  one
88              type  may  be  specified in a comma-separated list.  The list of
89              filesystem types can be prefixed with no to specify the filesys‐
90              tem  types on which no action should be taken.  For more details
91              see mount(8).
92
93       -S, --source spec
94              Explicitly define  the  mount  source.   Supported  are  device,
95              LABEL= or UUID=.
96
97       -T, --target dir
98              Explicitly define the mount target (mountpoint directory).
99

EXAMPLES

101       findmnt --fstab -t nfs
102              Prints all nfs filesystems defined in /etc/fstab.
103
104       findmnt --fstab /mnt/foo
105              Prints all /etc/fstab filesystems where the mountpoint directory
106              is /mnt/foo.  It also prints bind mounts  where  /mnt/foo  is  a
107              source.
108
109       findmnt --fstab --target /mnt/foo
110              Prints all /etc/fstab filesystems where the mountpoint directory
111              is /mnt/foo.
112
113       findmnt --fstab --evaluate
114              Prints all /etc/fstab filesystems and converts LABEL= and  UUID=
115              tags to the real device names.
116
117       findmnt -n --raw --evaluate --output=target LABEL=/boot
118              Prints  only  the  mountpoint  where  the  filesystem with label
119              "/boot" is mounted.
120

AUTHORS

122       Karel Zak <kzak@redhat.com>
123

SEE ALSO

125       mount(8), fstab(5)
126

AVAILABILITY

128       The findmnt command is part of the util-linux-ng package and is  avail‐
129       able from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
130
131
132
133Version 1.0                        Apr 2010                         FINDMNT(8)
Impressum