How to List Currently Mounted File Systems on Linux
Now, let’s see what file systems are currently mounted on our Linux system. The mount
command allows us to view this information easily:
mount
This command displays a list of currently mounted file systems. If you are curious about the static file systems, you can view them in the `/etc/fstab`
file:
cat /etc/fstab
To explore mounted file systems in a tree structure, you can use the `findmnt`
command:
findmnt
If you want to narrow down the output to a specific type of file system, you can do so with filters:
findmnt -t ext4
And if you’re interested in block devices, the lsblk
command is handy:
lsblk
How to Mount File System in Linux | mount Command
All files in a Linux filesystem are arranged in form of a big tree rooted at ‘/‘.These files can be spread out on various devices based on your partition table, initially your parent directory is mounted(i.e attached) to this tree at ‘/‘, others can be mounted manually using GUI interface(if available) or using mount command.
mount command is used to mount the filesystem found on a device to big tree structure(Linux filesystem) rooted at ‘/‘. Conversely, another command umount can be used to detach these devices from the Tree.
Table of Content
- Understanding File Systems Available for Linux
- How to List Currently Mounted File Systems on Linux
- How to Mount File Systems on Linux
- Practical Examples of How to Mount File Systems on Linux with Available Options
- Frequently Asked Question