In this section, you will be guided to format a given partition into EXT4 filesystem format.
To format a given partition, you use /sbin/mkfs.ext4
binary.
The command pattern is:
$ mkfs.ext4 /dev/path/to/partition
Here are some examples:
# normal simple hard disk partition
$ mkfs.ext4 /dev/sda
# cryptsetup disk partition
$ mkfs.ext4 /dev/mapper/sda2_crypt
# LVM partition
$ mkfs.ext4 /dev/vg00/vol_backups
Wait the command to be completed, if it's done. The partition is ready to be mounted for use.
That's all for mkfs.ext4
filesystem formatting.