mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
249b7a956c
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
17 lines
353 B
Markdown
17 lines
353 B
Markdown
# mke2fs
|
|
|
|
> Create a Linux filesystem inside a partition.
|
|
> More information: <https://manned.org/mke2fs>.
|
|
|
|
- Create an ext2 filesystem on a partition:
|
|
|
|
`sudo mke2fs -t ext2 {{/dev/sdXY}}`
|
|
|
|
- Create an ext3 filesystem on a partition:
|
|
|
|
`sudo mke2fs -t ext3 {{/dev/sdXY}}`
|
|
|
|
- Create an ext4 filesystem on a partition:
|
|
|
|
`sudo mke2fs -t ext4 {{/dev/sdXY}}`
|