IT lexicon › Infra & Ops › mkfs

mkfs

Infra & Ops På svenska → Updated: 2026-11-16

Unix command that creates a fresh filesystem on a storage device or partition.

mkfs (make filesystem) initializes a block device by writing the filesystem's metadata structures—superblock, inode table, allocation bitmaps—turning raw storage into a navigable hierarchy. Each filesystem type has its variant: mkfs.ext4, mkfs.ntfs, mkfs.btrfs. The operation is destructive and wipes all existing data, so it's typically run once during system setup or when reclaiming a partition.

← Back to the lexicon