1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 19:02:09 +02:00
tldr/pages/linux/mkfs.md
2021-08-16 12:34:01 +02: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 {{path/to/partition}}`
- Build a filesystem of a specified type:
`mkfs -t {{ext4}} {{path/to/partition}}`
- Build a filesystem of a specified type and check for bad blocks:
`mkfs -c -t {{ntfs}} {{path/to/partition}}`