Files
tldr/pages.zh/linux/mkfs.md

17 lines
451 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mkfs
> 在硬盘分区上构建一个Linux文件系统。
> 此命令已被弃用建议使用特定文件系统的mkfs.<type>工具。
> 更多信息:<https://manned.org/mkfs>。
- 在分区上构建一个Linux ext2文件系统
`mkfs {{path/to/partition}}`
- 构建指定类型的文件系统:
`mkfs -t {{ext4}} {{path/to/partition}}`
- 构建指定类型的文件系统并检查坏块:
`mkfs -c -t {{ntfs}} {{path/to/partition}}`