We already know that many filesystems are used and supported by the Linux operating system, e.g., ext2, ext3, ext4, FAT16, FAT32, and a lot more. The file system is necessary for working in the Linux and Windows operating systems. If you want to know what type of filesystem your Linux OS supports this article is meant for you. This article will give you a step-by-step guide to know what kind of filesystem is mounted in a Linux operating system.

To start working, you must have any Linux distribution installed on your system. Login from your Linux system and open the command terminal. Make sure you have the “util-linux” package installed on your system to start checking the mounted filesystem. For this purpose, try the below “apt” command followed by the keyword “install” in a shell. Instantly, the installation will be completed, and you can now check the mounted filesystem.

$ sudo apt install util-linux

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-222.png" data-lazy- height="213" src="data:image/svg xml,” width=”600″>

There are many methods available to check the file system on your system. We will illustrate each one of them one by one.

Method 01: Using Findmnt Command

Our first and most used way in the Linux system to know the filesystem type is the “findmnt” command. The “findmnt” command helps us find all the mounted filesystems. Let’s start working on it. To see the list of mounted filesystems, type the simple “findmnt” command in the shell as below, which will list all the filesystems in a tree-type format. This snapshot contains all the necessary details about the filesystem; its type, source, and many more. It is clear from the image that our main filesystem is “ext4”.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-223.png" data-lazy- height="498" src="data:image/svg xml,” width=”556″>

Let us display the filesystems in a simple format using the below “findmnt” command with a “-l” flag.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-224.png" data-lazy- height="423" src="data:image/svg xml,” width=”721″>

We can list the type of our mounted filesystem using the findmnt command along with the “-t” flag followed by the name of the filesystem, e.g., “ext4”. So, execute the below-stated command in the shell. The output shows the information regarding the “ext4” filesystem.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-226.png" data-lazy- height="45" src="data:image/svg xml,” width=”412″>

To see the “df” style list of output about the filesystem, you have to use the below command. You can see that it will show extra information regarding the filesystems and their sources.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-227.png" data-lazy- height="333" src="data:image/svg xml,” width=”588″>

You can use the modified form of this command as follows:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-228.png" data-lazy- height="335" src="data:image/svg xml,” width=”597″>

If you want to search for the configured filesystem in a particular device, you can do so using the below command. You can see that the output shows the “vfat” type filesystem for the specific device.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-229.png" data-lazy- height="51" src="data:image/svg xml,” width=”719″>

If you want to see the mount point of a filesystem, try using the below “findmnt” command followed by the backslash “/” sign.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-231.png" data-lazy- height="47" src="data:image/svg xml,” width=”392″>

If you want to know more details about the filesystem, use the man command as follows:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-232.png" data-lazy- height="17" src="data:image/svg xml,” width=”351″>

The output is shown below.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-233.png" data-lazy- height="516" src="data:image/svg xml,” width=”714″>

Method 02: Using Blkid Command

In most cases, the “findmnt” command will be enough in knowing the filesystem’s type, but there are some alternative commands for this purpose. One of them is the “blkid” command which we don’t need to mount. After the execution of the “blkid” command below, along with the “sudo” keyword, we will be able to display all the block devices along with the filesystem type.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-235.png" data-lazy- height="213" src="data:image/svg xml,” width=”693″>

We can use the “blkid” command to know the filesystem for the particular device.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-236.png" data-lazy- height="29" src="data:image/svg xml,” width=”477″>

To see extra details about the filesystem, try the below command:

$ sudo blkid –po udev /dev/sda1

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-237.png" data-lazy- height="212" src="data:image/svg xml,” width=”474″>

For further details try the man command below:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-238.png" data-lazy- height="20" src="data:image/svg xml,” width=”349″>

The output is given below.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-240.png" data-lazy- height="525" src="data:image/svg xml,” width=”721″>

Method 03: Using DF Command

The DF command is cast-off to know the disk space usage of the filesystem. Use it with the “-T” flag to know all the filesystem’s types.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-241.png" data-lazy- height="304" src="data:image/svg xml,” width=”648″>

Go through the man page to know more.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-242.png" data-lazy- height="19" src="data:image/svg xml,” width=”340″>

The detail is given in the snapshot.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-244.png" data-lazy- height="517" src="data:image/svg xml,” width=”717″>

Method 04: Using File Command

Another method to check the mounted file system is using the “file” command in the shell. You can use it for files having no extension. Hence, execute the below command to know the filesystem for a partition. It may require your password to function.

$ sudo file –sL /dev/sda1

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-245.png" data-lazy- height="62" src="data:image/svg xml,” width=”721″>

To have extra information, try the below man command in the shell.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-246.png" data-lazy- height="31" src="data:image/svg xml,” width=”509″>

You can see the details on the main page as shown in the appended image.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-247.png" data-lazy- height="512" src="data:image/svg xml,” width=”715″>

Method 05: Usinf Fsck Command

The “fsck” command may be used to verify or restore the reliability of a filesystem by providing the partition as an argument. You will decide what sort of filesystem it is.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-249.png" data-lazy- height="49" src="data:image/svg xml,” width=”467″>

For further details, have a look at the main page.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-250.png" data-lazy- height="18" src="data:image/svg xml,” width=”331″>

And you can see the details shown below.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-251.png" data-lazy- height="517" src="data:image/svg xml,” width=”714″>

Method 06: Using Fstab Command

Another new way to view the filesystem is using the “fstab” in the cat command. Therefore, try executing the below cat command in the shell.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-252.png" data-lazy- height="202" src="data:image/svg xml,” width=”668″>

For extra details, try the same man command along with the keyword “fstab”.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-254.png" data-lazy- height="19" src="data:image/svg xml,” width=”399″>

Now you will be having details about the filesystem, as shown in the image attached.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-255.png" data-lazy- height="518" src="data:image/svg xml,” width=”716″>

Method 07: Using Lsblk Command

The “lsbkl” command will show the filesystem types and the devices.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-256.png" data-lazy- height="261" src="data:image/svg xml,” width=”726″>

Run the below man command to see the details.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-257.png" data-lazy- height="19" src="data:image/svg xml,” width=”336″>

And the extra information regarding the filesystem is displayed below.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-258.png" data-lazy- height="514" src="data:image/svg xml,” width=”719″>

Method 08: Using grep Command

Last but not least, the “grep” command is used to check the filesystem.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/word-image-259.png" data-lazy- height="77" src="data:image/svg xml,” width=”724″>

Conclusion:

We have done all the commands to check the mounted filesystem. I hope you can easily check the mounted filesystem in your Linux distribution.

About the author

<img alt="Aqsa Yasin" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/04/echo/Author-Image-150×150.jpg607e25d1e3c18.jpg" height="112" src="data:image/svg xml,” width=”112″>

Aqsa Yasin

I am a self-motivated information technology professional with a passion for writing. I am a technical writer and love to write for all Linux flavors and Windows.