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

13 lines
325 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# mkfs.ext4
> 在分区内创建一个 ext4 文件系统。
> 更多信息:<https://manned.org/mkfs.ext4>.
- 在设备 b 的分区 1 内创建一个 ext4 文件系统(`sdb1`
`sudo mkfs.ext4 {{/dev/sdb1}}`
- 创建一个带有卷标签的 ext4 文件系统:
`sudo mkfs.ext4 -L {{volume_label}} {{/dev/sdb1}}`