1MOUNTPOINT(1) User Commands MOUNTPOINT(1)
2
3
4
6 mountpoint - see if a directory or file is a mountpoint
7
9 mountpoint [-d|-q] directory | file
10
11 mountpoint -x device
12
13
15 mountpoint checks whether the given directory or file is mentioned in
16 the /proc/self/mountinfo file.
17
19 -d, --fs-devno
20 Show the major/minor numbers of the device that is mounted on
21 the given directory.
22
23 -q, --quiet
24 Be quiet - don't print anything.
25
26 -x, --devno
27 Show the major/minor numbers of the given blockdevice on stan‐
28 dard output.
29
30 -V, --version
31 Display version information and exit.
32
33 -h, --help
34 Display help text and exit.
35
37 Zero if the directory or file is a mountpoint, non-zero if not.
38
40 Karel Zak <kzak@redhat.com>
41
43 LIBMOUNT_DEBUG=all
44 enables libmount debug output.
45
47 The util-linux mountpoint implementation was written from scratch for
48 libmount. The original version for sysvinit suite was written by
49 Miquel van Smoorenburg.
50
51
53 mount(8)
54
56 The mountpoint command is part of the util-linux package and is avail‐
57 able from https://www.kernel.org/pub/linux/utils/util-linux/.
58
59
60
61util-linux July 2014 MOUNTPOINT(1)