Viewing File System Mount Information

WARNING:

This documentation is a draft and is not meant for production use. Branch: OL10-FSADMIN

The findmnt command provides a single tool that can be used to provide tabulated and structured information about all file systems that are mounted on a system.

The following examples show how to use the findmnt command. You can find out more information in the findmnt(8) manual page.

  • List all mounted file systems.
    findmnt

    By default, findmnt shows all the mounted file systems that are visible to the kernel in /proc/self/mountinfo. You can run findmnt -m to search the system mtab, or findmnt -s to limit the search to entries in the system fstab.

  • Provide disk space usage information for file system mounts.
    findmnt -D

    Output is formatted similarly to the output that you can get from running df -H and excludes pseudo file systems such as procfs and sysfs.

  • Limit file system listings by file system type.

    Limit information to file systems matching particular file system types by using the --types option. For example, you can run:

    findmnt --types xfs,ext4,btrfs,vfat
  • Return the file system information for a particular mount point.
    findmnt /home
  • Show selected output fields.
    Use the -o option to control the different output fields that are shown in a listing. For example, you can run:
    findmnt -o TARGET,UUID,FSTYPE,OPTIONS,USE% /home