mkfs Command Examples

Build a Linux filesystem on a hard disk partition. This command is deprecated in favor of filesystem specific mkfs.type utils. More information: https://manned.org/mkfs.

mkfs {{/dev/sdXY}}

mkfs {{[-t|--type]}} {{ext4}} {{/dev/sdXY}}

mkfs -c {{[-t|--type]}} {{ntfs}} {{/dev/sdXY}}