Findmnt-find the mounted file system
The findmnt command is used to find the mounted file system in Linux. This command searches for the specified file system from/etc/fstab,/etc/mtab, or/proc/self/mountinfo.
The Tux3 file system is expected to be merged into Linux Kernel.
Distributed File System Ceph
Disk File System
File System for mounting other NFS servers in Ubuntu 14.04
How to install findmnt
The findmnt command is from the util-linux-ng package, which is now renamed util-linux. The software package also includes other tools, such as hwclock. Download util-linux from the kernel.org ftp page to install findmnt.
How to install findmnt in Fedora
You can run the following command to install the package:
- $ Sudo yum install util-linux-ng
Findmnt default options
If no specific mount point or device is provided, this command lists all mounted file systems in a nice tree structure by default.
- $ Findmnt
Findmnt round robin Mode
Findmnt can be used to monitor changes to/proc/self/mountinfo files. In polling mode, you can call the following command:
- $ Findmnt-p
Or
- $ Findmnt -- poll
Any changes to the/proc/self/mountinfo file will be automatically updated on the terminal. At first, you won't find any changes in the output in the terminal. If you unplug the USB flash disk and insert it, the changes will appear in the terminal.
The polling stop time can be limited by the -- timeout or -- first-only option.
Timeout Option
This option can be used with -- pool to limit the polling Mode Time. Timeout is measured in milliseconds. After this time expires, findmnt will no longer monitor changes to the/proc/self/mountinfo file.
- $ Findmnt -- poll -- timeout 6000
First-only option
The first-only option only monitors the first change of the/proc/self/mountinfo file, and then the command exits the polling mode. The first change will appear on the terminal and return to the prompt. Use this option to enter:
- $ Findmnt -- poll -- first-only
For more details, please continue to read the highlights on the next page: