2025-03-14 21:59:59 -06:00
|
|
|
# mkfs
|
|
|
|
|
|
|
|
|
|
> Build a Linux filesystem on a hard disk partition.
|
2025-03-19 19:23:44 -06:00
|
|
|
> This command is deprecated in favor of filesystem specific mkfs.type utils.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://manned.org/mkfs>.
|
|
|
|
|
|
|
|
|
|
- Build a Linux ext2 filesystem on a partition:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`mkfs {{/dev/sdXY}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Build a filesystem of a specified type:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`mkfs {{[-t|--type]}} {{ext4}} {{/dev/sdXY}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Build a filesystem of a specified type and check for bad blocks:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`mkfs -c {{[-t|--type]}} {{ntfs}} {{/dev/sdXY}}`
|