findmnt

query and verify mounted filesystems

TLDR

List all mounted filesystems
$ findmnt
Search by device
$ findmnt /dev/sdb1
Search by mountpoint
$ findmnt /
Filter by type
$ findmnt -t ext4,btrfs
Show disk usage like df
$ findmnt -D
Find by label
$ findmnt LABEL=BigStorage
Output as JSON
$ findmnt --json
Verify fstab
$ findmnt -x --verbose

SYNOPSIS

findmnt [OPTIONS] [device|mountpoint]

DESCRIPTION

findmnt lists all mounted filesystems or searches for a filesystem by device, mountpoint, label, or UUID. It can also verify the mount table and fstab configuration for errors.

PARAMETERS

-t, --types list

Limit output to filesystems of specified types
-o, --output list
Define output columns
-l, --list
Use list output format
-D, --df
Imitate df output (show space usage)
-x, --verify
Verify mount table content
-n, --noheadings
Don't print column headings
-r, --raw
Use raw output format
-J, --json
Use JSON output format
-f, --first-only
Print the first matching filesystem only
-s, --fstab
Search in /etc/fstab instead of /proc/self/mountinfo
-S, --source spec
Explicitly define the mount source (device, LABEL=, UUID=, etc.)
-M, --mountpoint path
Explicitly define the mountpoint file or directory
-T, --target path
Find the filesystem for the given path (any file or directory)
-p, --poll[=list]
Monitor changes in /proc/self/mountinfo (actions: mount, umount, remount, move)
-R, --submounts
Print recursively all submounts for the selected filesystems
LABEL=label
Search by filesystem label
UUID=uuid
Search by filesystem UUID

INSTALL

sudo apt install util-linux
sudo dnf install util-linux
sudo pacman -S util-linux
sudo apk add findmnt
sudo zypper install util-linux
brew install util-linux
nix profile install nixpkgs#util-linux

CAVEATS

The verify option checks for configuration errors but does not mount anything. Output format may vary between systems and kernel versions.

HISTORY

findmnt is part of the util-linux package, providing mount information querying on Linux systems.

SEE ALSO

mount(8), umount(8), df(1), lsblk(8), blkid(8), mountpoint(1)