MOUNTPOINT(1)

๐Ÿ’… MOUNTPOINT โ€” the mountpoint(1) glow-up

okay bestie, sit down, we're doing a vibe check on mountpoint, a User Commands legend. this little icon checks if a directory or a file is a mountpoint, and honestly? she ate. ๐Ÿ“


โœจ SYNOPSIS โœจ

mountpoint [-d|-q] directory|file

mountpoint -x device

like, two whole moods. pick one. ๐Ÿ™ˆ


๐ŸŒธ DESCRIPTION ๐ŸŒธ

mountpoint checks whether the directory or file you handed it is a mountpoint. simple. iconic. no notes.

now, on kernels that support the statmount(2) system call โ€” that's Linux 6.8 and newer, iykyk โ€” she uses that interface. on older kernels? she gracefully falls back to reading /proc/self/mountinfo. adaptive queen behavior fr fr. ๐Ÿ‘‘


๐Ÿ’– OPTIONS ๐Ÿ’–

  • -d, --fs-devno โ€” shows you the major/minor numbers of the device that's mounted on the directory you gave her. numbers, but make it โœจinformativeโœจ.
  • -q, --quiet โ€” be quiet, don't print anything. the silent treatment, but as a feature. ๐Ÿ’€
  • --nofollow โ€” do not follow a symbolic link if it is the last element of the directory path. she's staying right where she is, no chasing. ๐Ÿซถ
  • -x, --devno โ€” shows the major/minor numbers of the given blockdevice on standard output.
  • --show โ€” prints the mountpoint path for the given path. this resolves the given directory or file to its actual mountpoint, which is so useful with bind mounts, symlinks, or paths within filesystems. but heads up bestie โ€” this option requires kernel support for the statmount(2) system call (Linux 6.8 and newer). on older kernels, this option will fail with an error message. no cap. ๐Ÿ˜ญ
  • -h, --help โ€” displays help text and exits. your girl is helpful like that.
  • -V, --version โ€” displays version and exits. slay.

๐ŸŒˆ EXIT STATUS ๐ŸŒˆ

mountpoint has the following exit status values, and each one is a whole personality:

  1. 0 โ€” success; the directory is a mountpoint, or device is block device on --devno. we love a win. ๐ŸŽ€
  2. 1 โ€” failure; incorrect invocation, permissions or system error. not the moment. ๐Ÿ™ˆ
  3. 32 โ€” failure; the directory is not a mountpoint, or device is not a block device on --devno. lowkey devastating but she's just being honest. ๐Ÿ’œ

๐Ÿฆ‹ ENVIRONMENT ๐Ÿฆ‹

  • LIBMOUNT_DEBUG=all โ€” enables libmount debug output. set it and watch the tea spill. โ˜•

๐Ÿงš NOTES ๐Ÿงš

the util-linux mountpoint implementation was written from scratch for libmount. the original version for the sysvinit suite was written by Miquel van Smoorenburg. giving credit where credit is due, periodt. ๐ŸŒŸ


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

Karel Zak <kzak@redhat.com>


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ


๐Ÿ’Œ REPORTING BUGS ๐Ÿ’Œ

for bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>. come through, tell her what's wrong, she'll fix it. ๐Ÿซถ


โญ AVAILABILITY โญ

the mountpoint command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>. go get her. ๐Ÿ’–


this has been your girl, signing off: this page is from util-linux 2.42.4, dated 2026-09-21. stay mounted, bestie ๐Ÿ’…โœจ๐ŸŒธ
๐Ÿ“ฆ where this page comes from
  • arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms