GO KALI FREE
Disk Commands

mkfs Linux Command

Creates a filesystem (formats) on a disk partition.

What does mkfs do?

Creates a filesystem (formats) on a disk partition.

Syntax

mkfs -t type device

Practical example

sudo mkfs -t ext4 /dev/sdb1

Related Disk Commands

umount

Unmounts a filesystem (detaches a mounted device from the directory tree).

fsck

Checks and optionally repairs a filesystem for errors.

mount

Mounts a filesystem (attaches a device to the directory tree).

dd

Copies and converts raw data at the block level (disk cloning, bootable USB creation).

fdisk

Manipulates disk partition table (create, delete, resize partitions).

blkid

Displays block device attributes including UUID and filesystem type.