LinuxCommandLibrary

findmnt

TLDR

List all mounted filesystems

$ findmnt
copy
Search by device
$ findmnt /dev/sdb1
copy
Search by mountpoint
$ findmnt /
copy
Filter by type
$ findmnt -t ext4,btrfs
copy
Find by label
$ findmnt LABEL=BigStorage
copy
Verify fstab
$ findmnt -x --verbose
copy

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
LABEL=label
Search by filesystem label
UUID=uuid
Search by filesystem UUID

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), df(1), lsblk(8)

Copied to clipboard