Operations 5 min read

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.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Mastering findmnt: List and Monitor Linux Mounted Filesystems

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=2048

df‑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 --list

Reading 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 --evaluate

Filtering 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,vfat

Conclusion

By combining these options, administrators can tailor findmnt to list, monitor, or filter mounted filesystems exactly as needed.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

LinuxSystem AdministrationFilesystemcommand-linefindmntutil-linux
Liangxu Linux
Written by

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.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.