2019-10-02 13:06:35 -03:00
|
|
|
# mkfs
|
|
|
|
|
|
|
|
> Build a Linux filesystem on a hard disk partition.
|
2025-03-07 08:56:47 +02:00
|
|
|
> This command is deprecated in favor of filesystem specific mkfs.type utils.
|
2021-08-16 07:34:01 -03:00
|
|
|
> More information: <https://manned.org/mkfs>.
|
2019-10-02 13:06:35 -03:00
|
|
|
|
|
|
|
- Build a Linux ext2 filesystem on a partition:
|
|
|
|
|
2025-04-19 00:06:58 +03:00
|
|
|
`mkfs {{/dev/sdXY}}`
|
2019-10-02 13:06:35 -03:00
|
|
|
|
|
|
|
- Build a filesystem of a specified type:
|
|
|
|
|
2025-04-19 00:06:58 +03:00
|
|
|
`mkfs {{[-t|--type]}} {{ext4}} {{/dev/sdXY}}`
|
2019-10-02 13:06:35 -03:00
|
|
|
|
|
|
|
- Build a filesystem of a specified type and check for bad blocks:
|
|
|
|
|
2025-04-19 00:06:58 +03:00
|
|
|
`mkfs -c {{[-t|--type]}} {{ntfs}} {{/dev/sdXY}}`
|