The mkfs.ext4 command

create an ext2/ext3/ext4 file system 1 example from the lessons of the IVski Linux Playground — try them in the terminal next to them.

Options in the examples

-L new-volume-label
Set the volume label for the file system to new-volume-label.

Examples

sudo mkfs.ext4 -L data /dev/sdb1

Lessons that use mkfs.ext4