mkfs
Build a Linux filesystem on a hard disk partition. This command is deprecated in favor of filesystem specific mkfs.type utils.
More info →Subcommands (12)
Create a `bcachefs` filesystem inside a partition. See also: `bcachefs`.
Create a BTRFS filesystem. Defaults to `raid1`, which specifies 2 copies of a data block spread across 2 different devices.
Create a ROM filesystem inside a partition.
Create an EROFS filesystem in an image.
Create an exfat filesystem inside a partition.
Create an ext4 filesystem inside a partition.
Create an F2FS filesystem inside a partition.
Create an MS-DOS filesystem inside a partition.
Create a Minix filesystem inside a partition.
Create a NTFS filesystem inside a partition.
This command is an alias of `mkfs.fat`.
Create an XFS filesystem inside a partition.
Options (1)
-t, --typebooleanBuild a filesystem of a specified type
sudo mkfs {{[-t|--type]}} {{ext4}} {{/dev/sdXY}}