Creating a file system on the new partition Once the partition is created, we have to create a new file system on that partition. To create an ext2 file system, the mke2fs command is the correct choice. To create a reiser file system, the mkreiserfs command should be used. To create a different kind of file system, the appropriate command needs to be executed. The new partition is used as the only option to the command and the file system is created. If the partition is hda2 and ext2 is to be created, the user would run:
mke2fs /dev/hda2
To use reiserfs the user would run:
mkreiserfs /dev/hda2