In Linux all file-systems mount points are mounted within in / mount points,but we could have different file-systems type within / as per requirements and usages.These file-systems could mount and work on various devices that detected on Linux operating system and file-systems support is depend on Linux kernel modules that are essential to work on these file-systems.So this post we will see In Linux how to determine the file system type.

In Linux OS, how could we find out file-systems type, through df -T command.

[root@srv1 ~]# df -T
Filesystem           Type  1K-blocks    Used Available Use% Mounted on
                     ext4   17971068 8043560   9007956  48% /
tmpfs                tmpfs   1962196   59432   1902764   4% /dev/shm
/dev/vda1            ext4     487652  138022    324030  30% /boot
/dev/vdb1            xfs     4184016   32928   4151088   1% /var/ftp/pub

In above command output, we can see we have file-system type used to mount Disk partitions.

We can also use to see this piece of information through mount command, which is used to see all mounted partitions

[root@srv1 ~]# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /sys/kernel/config type configfs (rw)
/dev/vdb1 on /var/ftp/pub type xfs (rw)

So with this above outputs , now we know mount command could also provide information regarding file-system mount point.

Although in Linux there are many commands to know file-system type of mounted point points, but let’s cover another commands lsblk used in Linux for various reasons to know Disk information.

[root@srv1 ~]# lsblk -f
NAME                        FSTYPE      LABEL UUID                                   MOUNTPOINT
├─vda1                      ext4              efe9ff3b-2a96-4378-8b61-9a3273fa32d3   /boot
└─vda2                      LVM2_member       u3xScx-ZjL0-U8Ul-BWV0-kkEZ-muvR-8AAe0Y 
  ├─VolGroup-lv_root (dm-0) ext4              e2a912a3-f747-4e79-af53-14fc93637dd7   /
  └─VolGroup-lv_swap (dm-1) swap              65988ff1-e79c-414c-8720-6eed05aeb5e6   [SWAP]
└─vdb1                      xfs               5e28db70-2231-428c-9dac-3afb25199bbb   /var/ftp/pub
[root@srv1 ~]# 

This above command output also have information about mount point file-system type.

In this post , now we know we have many commands in Linux to know file-system type of mount point.