findmnt命令详解
findmnt主要是用来查看文件系统信息的工具
数据来源: /etc/fstab /etc/mtab /proc/self/mountinfo
帮助信息:
➜ ~ findmnt --help
Usage:
findmnt [options]
findmnt [options] <device> | <mountpoint>
findmnt [options] <device> <mountpoint>
findmnt [options] [--source <device>] [--target <path> | --mountpoint <dir>]
Find a (mounted) filesystem.
选项:
-s, --fstab search in static table of filesystems
-m, --mtab search in table of mounted filesystems
-k, --kernel search in kernel table of mounted
filesystems (default)
-p, --poll[=<list>] monitor changes in table of mounted filesystems
-w, --timeout <num> upper limit in milliseconds that --poll will block
-A, --all disable all built-in filters, print all filesystems
-a, --ascii use ASCII chars for tree formatting
-b, --bytes print sizes in bytes rather than in human readable format
-C, --nocanonicalize don't canonicalize when comparing paths
-c, --canonicalize canonicalize printed paths
-D, --df imitate the output of df(1)
-d, --direction <word> direction of search, 'forward' or 'backward'
-e, --evaluate convert tags (LABEL,UUID,PARTUUID,PARTLABEL)
to device names
-F, --tab-file <path> alternative file for -s, -m or -k options
-f, --first-only print the first found filesystem only
-i, --invert invert the sense of matching
-J, --json use JSON output format
-l, --list use list format output
-N, --task <tid> use alternative namespace (/proc/<tid>/mountinfo file)
-n, --noheadings don't print column headings
-O, --options <list> limit the set of filesystems by mount options
-o, --output <list> the output columns to be shown
-P, --pairs use key="value" output format
-R, --submounts print all submounts for the matching filesystems
-r, --raw use raw output format
-S, --source <string> the device to mount (by name, maj:min,
LABEL=, UUID=, PARTUUID=, PARTLABEL=)
-T, --target <path> the path to the filesystem to use
-M, --mountpoint <dir> the mountpoint directory
-t, --types <list> limit the set of filesystems by FS types
-U, --uniq ignore filesystems with duplicate target
-u, --notruncate don't truncate text in columns
-v, --nofsroot don't print [/dir] for bind or btrfs mounts
-h, --help display this help and exit
-V, --version output version information and exit
Available columns:
SOURCE source device
TARGET mountpoint
FSTYPE filesystem type
OPTIONS all mount options
VFS-OPTIONS VFS specific mount options
FS-OPTIONS FS specific mount options
LABEL filesystem label
UUID filesystem UUID
PARTLABEL partition label
PARTUUID partition UUID
MAJ:MIN major:minor device number
ACTION action detected by --poll
OLD-TARGET old mountpoint saved by --poll
OLD-OPTIONS old mount options saved by --poll
SIZE filesystem size
AVAIL filesystem size available
USED filesystem size used
USE% filesystem use percentage
FSROOT filesystem root
TID task ID
ID mount ID
OPT-FIELDS optional mount fields
PROPAGATION VFS propagation flags
FREQ dump(8) period in days [fstab only]
PASSNO pass number on parallel fsck(8) [fstab only]
For more details see findmnt(8).
-s, --fstab: 从/etc/fstab读取静态信息
➜ ~ findmnt -s
TARGET SOURCE FSTYPE OPTIONS
/ UUID=6b5618d0-a2b0-41f3-a3a5-9eb5a524b0a8 ext4 errors=remount-ro,noatime,discard
/home UUID=53842090-4ad6-4472-ad35-53b4d7b33bf8 ext4 defaults,noatime,discard
none UUID=382e4b22-503e-4911-bf2f-1167af3f3cda swap sw
-m, --mtab: 以表格形式输出已挂载的文件系统(/etc/mtab)
➜ ~ findmnt -m
TARGET SOURCE FSTYPE OPTIONS
/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
/proc proc proc rw,nosuid,nodev,noexec,relatime
/dev udev devtmpfs rw,nosuid,relatime,size=16418608k,nr_inodes=4104652,mode=755
/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=3290488k,mode=755
/ /dev/sdb1 ext4 rw,noatime,discard,errors=remount-ro,data=ordered
/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
/dev/shm tmpfs tmpfs rw,nosuid,nodev
/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k
/sys/fs/cgroup tmpfs tmpfs rw,mode=755
/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-ag
/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
/sys/fs/cgroup/perf_event cgroup cgroup rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agents/cgm-
/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-releas
/sys/fs/cgroup/rdma cgroup cgroup rw,nosuid,nodev,noexec,relatime,rdma,release_agent=/run/cgmanager/agents/cgm-releas
/sys/fs/cgroup/hugetlb cgroup cgroup rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/cgm-rel
/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_children
/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16766
/dev/mqueue mqueue mqueue rw,relatime
/sys/kernel/debug debugfs debugfs rw,relatime
/dev/hugepages hugetlbfs hugetlbfs rw,relatime,pagesize=2M
/sys/kernel/config configfs configfs rw,relatime
/sys/fs/fuse/connections fusectl fusectl rw,relatime
/snap/kata-containers/352 /dev/loop2 squashfs ro,nodev,relatime
/snap/core/6818 /dev/loop1 squashfs ro,nodev,relatime
/snap/core/6964 /dev/loop0 squashfs ro,nodev,relatime
/snap/kata-containers/288 /dev/loop4 squashfs ro,nodev,relatime
/snap/core/6673 /dev/loop3 squashfs ro,nodev,relatime
/home /dev/sdb2 ext4 rw,noatime,discard,data=ordered
/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,relatime
/run/cgmanager/fs cgmfs tmpfs rw,relatime,size=100k,mode=755
/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=3290488k,mode=700,uid=1000,gid=1000
/run/user/1000/gvfs gvfsd-fuse fuse.gvfsd-fu rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
-k, --kernel: 从内核读取已挂载的文件系统(default)
➜ ~ findmnt -k
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sdb1 ext4 rw,noatime,discard,errors=remount-ro,data=ordered
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup tmpfs tmpfs rw,mode=755
│ │ ├─/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgro
│ │ ├─/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
│ │ ├─/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
│ │ ├─/sys/fs/cgroup/perf_event cgroup cgroup rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agent
│ │ ├─/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
│ │ ├─/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
│ │ ├─/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
│ │ ├─/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
│ │ ├─/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-
│ │ ├─/sys/fs/cgroup/rdma cgroup cgroup rw,nosuid,nodev,noexec,relatime,rdma,release_agent=/run/cgmanager/agents/cgm-
│ │ ├─/sys/fs/cgroup/hugetlb cgroup cgroup rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/c
│ │ └─/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_children
│ ├─/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/debug debugfs debugfs rw,relatime
│ ├─/sys/kernel/config configfs configfs rw,relatime
│ └─/sys/fs/fuse/connections fusectl fusectl rw,relatime
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
│ └─/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1676
│ └─/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,relatime
├─/dev udev devtmpfs rw,nosuid,relatime,size=16418608k,nr_inodes=4104652,mode=755
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/dev/shm tmpfs tmpfs rw,nosuid,nodev
│ ├─/dev/mqueue mqueue mqueue rw,relatime
│ └─/dev/hugepages hugetlbfs hugetlbfs rw,relatime,pagesize=2M
├─/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=3290488k,mode=755
│ ├─/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k
│ ├─/run/cgmanager/fs cgmfs tmpfs rw,relatime,size=100k,mode=755
│ └─/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=3290488k,mode=700,uid=1000,gid=1000
│ └─/run/user/1000/gvfs gvfsd-fuse fuse.gvfsd-fu rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
├─/snap/core/6818 /dev/loop1 squashfs ro,nodev,relatime
├─/snap/core/6964 /dev/loop0 squashfs ro,nodev,relatime
├─/snap/kata-containers/352 /dev/loop2 squashfs ro,nodev,relatime
├─/snap/kata-containers/288 /dev/loop4 squashfs ro,nodev,relatime
├─/snap/core/6673 /dev/loop3 squashfs ro,nodev,relatime
└─/home /dev/sdb2 ext4 rw,noatime,discard,data=ordered
-p, --poll[=]: 监控文件系统挂载的变化
➜ ~ findmnt -p
ACTION TARGET SOURCE FSTYPE OPTIONS
mount /media/wanglin/Volume2 /dev/sdc1 fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=409
ACTION TARGET SOURCE FSTYPE OPTIONS
umount /media/wanglin/Volume2 /dev/sdc1 fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=409
-w, --timeout
-A, --all: 不使用内置过滤器,打印所有文件系统
➜ ~ findmnt -A
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sdb1 ext4 rw,noatime,discard,errors=remount-ro,data=ordered
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup tmpfs tmpfs rw,mode=755
│ │ ├─/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgro
│ │ ├─/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
│ │ ├─/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
│ │ ├─/sys/fs/cgroup/perf_event cgroup cgroup rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agent
│ │ ├─/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
│ │ ├─/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
│ │ ├─/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
│ │ ├─/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
│ │ ├─/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-
│ │ ├─/sys/fs/cgroup/rdma cgroup cgroup rw,nosuid,nodev,noexec,relatime,rdma,release_agent=/run/cgmanager/agents/cgm-
│ │ ├─/sys/fs/cgroup/hugetlb cgroup cgroup rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/c
│ │ └─/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_children
│ ├─/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/debug debugfs debugfs rw,relatime
│ ├─/sys/kernel/config configfs configfs rw,relatime
│ └─/sys/fs/fuse/connections fusectl fusectl rw,relatime
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
│ └─/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1676
│ └─/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,relatime
├─/dev udev devtmpfs rw,nosuid,relatime,size=16418608k,nr_inodes=4104652,mode=755
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/dev/shm tmpfs tmpfs rw,nosuid,nodev
│ ├─/dev/mqueue mqueue mqueue rw,relatime
│ └─/dev/hugepages hugetlbfs hugetlbfs rw,relatime,pagesize=2M
├─/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=3290488k,mode=755
│ ├─/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k
│ ├─/run/cgmanager/fs cgmfs tmpfs rw,relatime,size=100k,mode=755
│ └─/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=3290488k,mode=700,uid=1000,gid=1000
│ └─/run/user/1000/gvfs gvfsd-fuse fuse.gvfsd-fu rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
├─/snap/core/6818 /dev/loop1 squashfs ro,nodev,relatime
├─/snap/core/6964 /dev/loop0 squashfs ro,nodev,relatime
├─/snap/kata-containers/352 /dev/loop2 squashfs ro,nodev,relatime
├─/snap/kata-containers/288 /dev/loop4 squashfs ro,nodev,relatime
├─/snap/core/6673 /dev/loop3 squashfs ro,nodev,relatime
└─/home /dev/sdb2 ext4 rw,noatime,discard,data=ordered
-a, --ascii: 字符使用ascii码输出
➜ ~ findmnt -a
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sdb1 ext4 rw,noatime,discard,errors=remount-ro,data=ordered
|-/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
| |-/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
| |-/sys/fs/cgroup tmpfs tmpfs rw,mode=755
| | |-/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgro
| | |-/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
| | |-/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
| | |-/sys/fs/cgroup/perf_event cgroup cgroup rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agent
| | |-/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
| | |-/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
| | |-/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
| | |-/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
| | |-/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-
| | |-/sys/fs/cgroup/rdma cgroup cgroup rw,nosuid,nodev,noexec,relatime,rdma,release_agent=/run/cgmanager/agents/cgm-
| | |-/sys/fs/cgroup/hugetlb cgroup cgroup rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/c
| | `-/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_children
| |-/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
| |-/sys/kernel/debug debugfs debugfs rw,relatime
| |-/sys/kernel/config configfs configfs rw,relatime
| `-/sys/fs/fuse/connections fusectl fusectl rw,relatime
|-/proc proc proc rw,nosuid,nodev,noexec,relatime
| `-/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1676
| `-/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,relatime
|-/dev udev devtmpfs rw,nosuid,relatime,size=16418608k,nr_inodes=4104652,mode=755
| |-/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
| |-/dev/shm tmpfs tmpfs rw,nosuid,nodev
| |-/dev/mqueue mqueue mqueue rw,relatime
| `-/dev/hugepages hugetlbfs hugetlbfs rw,relatime,pagesize=2M
|-/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=3290488k,mode=755
| |-/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k
| |-/run/cgmanager/fs cgmfs tmpfs rw,relatime,size=100k,mode=755
| `-/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=3290488k,mode=700,uid=1000,gid=1000
| `-/run/user/1000/gvfs gvfsd-fuse fuse.gvfsd-fu rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
|-/snap/core/6818 /dev/loop1 squashfs ro,nodev,relatime
|-/snap/core/6964 /dev/loop0 squashfs ro,nodev,relatime
|-/snap/kata-containers/352 /dev/loop2 squashfs ro,nodev,relatime
|-/snap/kata-containers/288 /dev/loop4 squashfs ro,nodev,relatime
|-/snap/core/6673 /dev/loop3 squashfs ro,nodev,relatime
`-/home /dev/sdb2 ext4 rw,noatime,discard,data=ordered
-b, --bytes: size使用bytes输出
-C, --nocanonicalize: 不规范打印
-c, --canonicalize: 规范打印
-C -c看不出来区别
-D, --df: 模仿df输出的样式打印
➜ ~ findmnt -D
SOURCE FSTYPE SIZE USED AVAIL USE% TARGET
udev devtmpfs 15.7G 0 15.7G 0% /dev
tmpfs tmpfs 3.1G 13.7M 3.1G 0% /run
/dev/sdb1 ext4 93.8G 49G 40G 52% /
tmpfs tmpfs 15.7G 195.8M 15.5G 1% /dev/shm
tmpfs tmpfs 5M 4K 5M 0% /run/lock
tmpfs tmpfs 15.7G 0 15.7G 0% /sys/fs/cgroup
/dev/loop2 squashfs 69.8M 69.8M 0 100% /snap/kata-containers/352
/dev/loop1 squashfs 89.5M 89.5M 0 100% /snap/core/6818
/dev/loop0 squashfs 88.5M 88.5M 0 100% /snap/core/6964
/dev/loop4 squashfs 55.9M 55.9M 0 100% /snap/kata-containers/288
/dev/loop3 squashfs 89.3M 89.3M 0 100% /snap/core/6673
/dev/sdb2 ext4 366.1G 146.9G 200.6G 40% /home
cgmfs tmpfs 100K 0 100K 0% /run/cgmanager/fs
tmpfs tmpfs 3.1G 68K 3.1G 0% /run/user/1000
gvfsd-fuse fuse.gvfsd-fuse 0 0 0 - /run/user/1000/gvfs
-d, --direction
两个word使用上看不出区别
-e, --evaluate: 把tags(LABEL,UUID,PARTUUID,PARTLABEL)转换成设备名
-F, --tab-file
-f, --first-only: 打印第一个发现的文件系统, findmnt的第一行文件系统
-i, --invert: 从指定位置反向打印,没啥用
-J, --json: json格式输出
-l, --list: 列表格式输出
-N, --task
➜ ~ findmnt -N 1
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sdb1 ext4 rw,noatime,discard,errors=remount-ro,data=ordered
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup tmpfs tmpfs rw,mode=755
│ │ ├─/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgro
│ │ ├─/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
│ │ ├─/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
│ │ ├─/sys/fs/cgroup/perf_event cgroup cgroup rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agent
│ │ ├─/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
│ │ ├─/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
│ │ ├─/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
│ │ ├─/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
│ │ ├─/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-
│ │ ├─/sys/fs/cgroup/rdma cgroup cgroup rw,nosuid,nodev,noexec,relatime,rdma,release_agent=/run/cgmanager/agents/cgm-
│ │ ├─/sys/fs/cgroup/hugetlb cgroup cgroup rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/c
│ │ └─/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_children
│ ├─/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/debug debugfs debugfs rw,relatime
│ ├─/sys/kernel/config configfs configfs rw,relatime
│ └─/sys/fs/fuse/connections fusectl fusectl rw,relatime
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
│ └─/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1676
│ └─/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,relatime
├─/dev udev devtmpfs rw,nosuid,relatime,size=16418608k,nr_inodes=4104652,mode=755
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/dev/shm tmpfs tmpfs rw,nosuid,nodev
│ ├─/dev/mqueue mqueue mqueue rw,relatime
│ └─/dev/hugepages hugetlbfs hugetlbfs rw,relatime,pagesize=2M
├─/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=3290488k,mode=755
│ ├─/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k
│ ├─/run/cgmanager/fs cgmfs tmpfs rw,relatime,size=100k,mode=755
│ └─/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=3290488k,mode=700,uid=1000,gid=1000
│ └─/run/user/1000/gvfs gvfsd-fuse fuse.gvfsd-fu rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
├─/snap/core/6818 /dev/loop1 squashfs ro,nodev,relatime
├─/snap/core/6964 /dev/loop0 squashfs ro,nodev,relatime
├─/snap/kata-containers/352 /dev/loop2 squashfs ro,nodev,relatime
├─/snap/kata-containers/288 /dev/loop4 squashfs ro,nodev,relatime
├─/snap/core/6673 /dev/loop3 squashfs ro,nodev,relatime
└─/home /dev/sdb2 ext4 rw,noatime,discard,data=ordered
-n, --noheadings: 不输出标题
-O, --options : 根据挂载参数比如rw 过滤文件系统
➜ ~ findmnt -O rw
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sdb1 ext4 rw,noatime,discard,errors=remount-ro,data=ordered
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup tmpfs tmpfs rw,mode=755
│ │ ├─/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgro
│ │ ├─/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
│ │ ├─/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
│ │ ├─/sys/fs/cgroup/perf_event cgroup cgroup rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agent
│ │ ├─/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
│ │ ├─/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
│ │ ├─/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
│ │ ├─/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
│ │ ├─/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-
│ │ ├─/sys/fs/cgroup/rdma cgroup cgroup rw,nosuid,nodev,noexec,relatime,rdma,release_agent=/run/cgmanager/agents/cgm-
│ │ ├─/sys/fs/cgroup/hugetlb cgroup cgroup rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/c
│ │ └─/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_children
│ ├─/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/debug debugfs debugfs rw,relatime
│ ├─/sys/kernel/config configfs configfs rw,relatime
│ └─/sys/fs/fuse/connections fusectl fusectl rw,relatime
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
│ └─/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1676
│ └─/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,relatime
├─/dev udev devtmpfs rw,nosuid,relatime,size=16418608k,nr_inodes=4104652,mode=755
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/dev/shm tmpfs tmpfs rw,nosuid,nodev
│ ├─/dev/mqueue mqueue mqueue rw,relatime
│ └─/dev/hugepages hugetlbfs hugetlbfs rw,relatime,pagesize=2M
├─/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=3290488k,mode=755
│ ├─/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k
│ ├─/run/cgmanager/fs cgmfs tmpfs rw,relatime,size=100k,mode=755
│ └─/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=3290488k,mode=700,uid=1000,gid=1000
│ └─/run/user/1000/gvfs gvfsd-fuse fuse.gvfsd-fu rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
└─/home /dev/sdb2 ext4 rw,noatime,discard,data=ordered
-o, --output , 指定打印字段
-P, --pairs: 使用key="value"的输出格式
➜ ~ findmnt -P
TARGET="/sys" SOURCE="sysfs" FSTYPE="sysfs" OPTIONS="rw,nosuid,nodev,noexec,relatime"
TARGET="/proc" SOURCE="proc" FSTYPE="proc" OPTIONS="rw,nosuid,nodev,noexec,relatime"
TARGET="/dev" SOURCE="udev" FSTYPE="devtmpfs" OPTIONS="rw,nosuid,relatime,size=16418608k,nr_inodes=4104652,mode=755"
TARGET="/dev/pts" SOURCE="devpts" FSTYPE="devpts" OPTIONS="rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000"
TARGET="/run" SOURCE="tmpfs" FSTYPE="tmpfs" OPTIONS="rw,nosuid,noexec,relatime,size=3290488k,mode=755"
TARGET="/" SOURCE="/dev/sdb1" FSTYPE="ext4" OPTIONS="rw,noatime,discard,errors=remount-ro,data=ordered"
TARGET="/sys/kernel/security" SOURCE="securityfs" FSTYPE="securityfs" OPTIONS="rw,nosuid,nodev,noexec,relatime"
TARGET="/dev/shm" SOURCE="tmpfs" FSTYPE="tmpfs" OPTIONS="rw,nosuid,nodev"
TARGET="/run/lock" SOURCE="tmpfs" FSTYPE="tmpfs" OPTIONS="rw,nosuid,nodev,noexec,relatime,size=5120k"
TARGET="/sys/fs/cgroup" SOURCE="tmpfs" FSTYPE="tmpfs" OPTIONS="rw,mode=755"
TARGET="/sys/fs/cgroup/systemd" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd"
TARGET="/sys/fs/pstore" SOURCE="pstore" FSTYPE="pstore" OPTIONS="rw,nosuid,nodev,noexec,relatime"
TARGET="/sys/fs/cgroup/cpu,cpuacct" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,cpu,cpuacct"
TARGET="/sys/fs/cgroup/freezer" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,freezer"
TARGET="/sys/fs/cgroup/perf_event" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agents/cgm-release-agent.perf_event"
TARGET="/sys/fs/cgroup/net_cls,net_prio" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,net_cls,net_prio"
TARGET="/sys/fs/cgroup/devices" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,devices"
TARGET="/sys/fs/cgroup/memory" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,memory"
TARGET="/sys/fs/cgroup/blkio" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,blkio"
TARGET="/sys/fs/cgroup/pids" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-release-agent.pids"
TARGET="/sys/fs/cgroup/rdma" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,rdma,release_agent=/run/cgmanager/agents/cgm-release-agent.rdma"
TARGET="/sys/fs/cgroup/hugetlb" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/cgm-release-agent.hugetlb"
TARGET="/sys/fs/cgroup/cpuset" SOURCE="cgroup" FSTYPE="cgroup" OPTIONS="rw,nosuid,nodev,noexec,relatime,cpuset,clone_children"
TARGET="/proc/sys/fs/binfmt_misc" SOURCE="systemd-1" FSTYPE="autofs" OPTIONS="rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16766"
TARGET="/dev/mqueue" SOURCE="mqueue" FSTYPE="mqueue" OPTIONS="rw,relatime"
TARGET="/sys/kernel/debug" SOURCE="debugfs" FSTYPE="debugfs" OPTIONS="rw,relatime"
TARGET="/dev/hugepages" SOURCE="hugetlbfs" FSTYPE="hugetlbfs" OPTIONS="rw,relatime,pagesize=2M"
TARGET="/sys/kernel/config" SOURCE="configfs" FSTYPE="configfs" OPTIONS="rw,relatime"
TARGET="/sys/fs/fuse/connections" SOURCE="fusectl" FSTYPE="fusectl" OPTIONS="rw,relatime"
TARGET="/snap/kata-containers/352" SOURCE="/dev/loop2" FSTYPE="squashfs" OPTIONS="ro,nodev,relatime"
TARGET="/snap/core/6818" SOURCE="/dev/loop1" FSTYPE="squashfs" OPTIONS="ro,nodev,relatime"
TARGET="/snap/core/6964" SOURCE="/dev/loop0" FSTYPE="squashfs" OPTIONS="ro,nodev,relatime"
TARGET="/snap/kata-containers/288" SOURCE="/dev/loop4" FSTYPE="squashfs" OPTIONS="ro,nodev,relatime"
TARGET="/snap/core/6673" SOURCE="/dev/loop3" FSTYPE="squashfs" OPTIONS="ro,nodev,relatime"
TARGET="/home" SOURCE="/dev/sdb2" FSTYPE="ext4" OPTIONS="rw,noatime,discard,data=ordered"
TARGET="/proc/sys/fs/binfmt_misc" SOURCE="binfmt_misc" FSTYPE="binfmt_misc" OPTIONS="rw,relatime"
TARGET="/run/cgmanager/fs" SOURCE="cgmfs" FSTYPE="tmpfs" OPTIONS="rw,relatime,size=100k,mode=755"
TARGET="/run/user/1000" SOURCE="tmpfs" FSTYPE="tmpfs" OPTIONS="rw,nosuid,nodev,relatime,size=3290488k,mode=700,uid=1000,gid=1000"
TARGET="/run/user/1000/gvfs" SOURCE="gvfsd-fuse" FSTYPE="fuse.gvfsd-fuse" OPTIONS="rw,nosuid,nodev,relatime,user_id=1000,group_id=1000"
-R, --submounts: 打印挂载文件系统的父子关系
➜ ~ findmnt -R
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sdb1 ext4 rw,noatime,discard,errors=remount-ro,data=ordered
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup tmpfs tmpfs rw,mode=755
│ │ ├─/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgro
│ │ ├─/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
│ │ ├─/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
│ │ ├─/sys/fs/cgroup/perf_event cgroup cgroup rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agent
│ │ ├─/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
│ │ ├─/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
│ │ ├─/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
│ │ ├─/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
│ │ ├─/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-
│ │ ├─/sys/fs/cgroup/rdma cgroup cgroup rw,nosuid,nodev,noexec,relatime,rdma,release_agent=/run/cgmanager/agents/cgm-
│ │ ├─/sys/fs/cgroup/hugetlb cgroup cgroup rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/c
│ │ └─/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_children
│ ├─/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/debug debugfs debugfs rw,relatime
│ ├─/sys/kernel/config configfs configfs rw,relatime
│ └─/sys/fs/fuse/connections fusectl fusectl rw,relatime
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
│ └─/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1676
│ └─/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,relatime
├─/dev udev devtmpfs rw,nosuid,relatime,size=16418608k,nr_inodes=4104652,mode=755
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/dev/shm tmpfs tmpfs rw,nosuid,nodev
│ ├─/dev/mqueue mqueue mqueue rw,relatime
│ └─/dev/hugepages hugetlbfs hugetlbfs rw,relatime,pagesize=2M
├─/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=3290488k,mode=755
│ ├─/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k
│ ├─/run/cgmanager/fs cgmfs tmpfs rw,relatime,size=100k,mode=755
│ └─/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=3290488k,mode=700,uid=1000,gid=1000
│ └─/run/user/1000/gvfs gvfsd-fuse fuse.gvfsd-fu rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
├─/snap/core/6818 /dev/loop1 squashfs ro,nodev,relatime
├─/snap/core/6964 /dev/loop0 squashfs ro,nodev,relatime
├─/snap/kata-containers/352 /dev/loop2 squashfs ro,nodev,relatime
├─/snap/kata-containers/288 /dev/loop4 squashfs ro,nodev,relatime
├─/snap/core/6673 /dev/loop3 squashfs ro,nodev,relatime
└─/home /dev/sdb2 ext4 rw,noatime,discard,data=ordered
-r, --raw: raw格式打印
➜ ~ findmnt -r
TARGET SOURCE FSTYPE OPTIONS
/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
/proc proc proc rw,nosuid,nodev,noexec,relatime
/dev udev devtmpfs rw,nosuid,relatime,size=16418608k,nr_inodes=4104652,mode=755
/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=3290488k,mode=755
/ /dev/sdb1 ext4 rw,noatime,discard,errors=remount-ro,data=ordered
/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
/dev/shm tmpfs tmpfs rw,nosuid,nodev
/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k
/sys/fs/cgroup tmpfs tmpfs rw,mode=755
/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
/sys/fs/cgroup/perf_event cgroup cgroup rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agents/cgm-release-agent.perf_event
/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-release-agent.pids
/sys/fs/cgroup/rdma cgroup cgroup rw,nosuid,nodev,noexec,relatime,rdma,release_agent=/run/cgmanager/agents/cgm-release-agent.rdma
/sys/fs/cgroup/hugetlb cgroup cgroup rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/cgm-release-agent.hugetlb
/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_children
/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16766
/dev/mqueue mqueue mqueue rw,relatime
/sys/kernel/debug debugfs debugfs rw,relatime
/dev/hugepages hugetlbfs hugetlbfs rw,relatime,pagesize=2M
/sys/kernel/config configfs configfs rw,relatime
/sys/fs/fuse/connections fusectl fusectl rw,relatime
/snap/kata-containers/352 /dev/loop2 squashfs ro,nodev,relatime
/snap/core/6818 /dev/loop1 squashfs ro,nodev,relatime
/snap/core/6964 /dev/loop0 squashfs ro,nodev,relatime
/snap/kata-containers/288 /dev/loop4 squashfs ro,nodev,relatime
/snap/core/6673 /dev/loop3 squashfs ro,nodev,relatime
/home /dev/sdb2 ext4 rw,noatime,discard,data=ordered
/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,relatime
/run/cgmanager/fs cgmfs tmpfs rw,relatime,size=100k,mode=755
/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=3290488k,mode=700,uid=1000,gid=1000
/run/user/1000/gvfs gvfsd-fuse fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
-S, --source
-T, --target
➜ ~ findmnt -T /home
TARGET SOURCE FSTYPE OPTIONS
/home /dev/sdb2 ext4 rw,noatime,discard,data=ordered
-M, --mountpoint
-t, --types : 打印指定类型的文件系统,如ext4
➜ ~ findmnt -t ext4
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sdb1 ext4 rw,noatime,discard,errors=remount-ro,data=ordered
└─/home /dev/sdb2 ext4 rw,noatime,discard,data=ordered
-U, --uniq: 去重,多重挂载的目标
-u, --notruncate: 不去掉空行输出
-v, --nofsroot: 不打印目录的绑定和btrfs的挂载信息