1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 00:35:23 +02:00
tldr/pages/linux/mkfs.md
Managor 5c3e141eb2
mkfs*: unify format (#16188)
Co-authored-by: pixie <pixel+github@chrissx.de>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 00:06:58 +03:00

17 lines
465 B
Markdown

# mkfs
> 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>.
- Build a Linux ext2 filesystem on a partition:
`mkfs {{/dev/sdXY}}`
- Build a filesystem of a specified type:
`mkfs {{[-t|--type]}} {{ext4}} {{/dev/sdXY}}`
- Build a filesystem of a specified type and check for bad blocks:
`mkfs -c {{[-t|--type]}} {{ntfs}} {{/dev/sdXY}}`