mkfs.ext4

Creates an ext4 filesystem inside a partition.

TLDR

Create an ext4 filesystem inside partition 1 on device b (sdb1)

>_ sudo mkfs.ext4 [/dev/sdb1]
copy

Create an ext4 filesystem with a volume-label

>_ sudo mkfs.ext4 -L [volume_label] [/dev/sdb1]
copy

Copied to clipboard
free 100$ digital ocean credit