The mke2fs command can be used to create a filesystem. In this example, either of these commands will configure the /dev/sda2 partition to use the ext4 file system.
[root@server1 ~]# mke2fs.ext4 /dev/sda2 [root@server1 ~]# mke2fs -t ext4 /dev/sda2
It is somewhat common to use the -j option, which uses journaling and the ext3 file system.
[root@server1 ~]# mke2fs -j /dev/sda2
Following are some of the more popular filesystem types used by Linux.