Mastering findmnt: List and Monitor Linux Mounted Filesystems
This guide explains how to use the Linux findmnt command—including installation, default listing, real‑time monitoring, df‑style output, list format, fstab parsing, label evaluation, and filesystem‑type filtering—providing practical examples and command syntax for system administrators.
What is findmnt?
The findmnt utility, part of the util-linux package, displays mounted filesystems on a Linux system by reading information from /etc/fstab, /etc/mtab or /proc/self/mountinfo.
Installation
On CentOS the package can be installed with: yum -y install util-linux In most cases the tool is already present on the system.
Default behavior
Running findmnt without arguments lists all currently mounted filesystems in a tree view. findmnt (output shown in the original screenshot)
Real‑time monitoring
Use the -p option to watch changes in /proc/self/mountinfo. When a device such as a CD is mounted, findmnt -p reports the action:
findmnt -p
ACTION TARGET SOURCE FSTYPE OPTIONS
mount /mnt /dev/sr0 iso9660 ro,relatime,nojoliet,check=s,map=n,blocksize=2048df‑style output
The --df flag makes the output resemble df -hT: findmnt --df Both commands produce similar columns for filesystem type and usage.
List format
To obtain a plain list instead of a tree, use --list or -l:
findmnt --listReading from /etc/fstab
The --fstab option forces findmnt to read mount definitions from /etc/fstab. Adding --evaluate resolves labels (LABEL, UUID, PARTUUID, PARTLABEL) to actual device names:
findmnt --fstab
findmnt --fstab --evaluateFiltering by filesystem type
Use -t followed by a comma‑separated list to display only specific filesystem types, e.g. ext4, xfs, vfat:
findmnt -t ext4,xfs,vfatConclusion
By combining these options, administrators can tailor findmnt to list, monitor, or filter mounted filesystems exactly as needed.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Liangxu Linux
Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
