Files
cheatsheet-tldr/tldr/linux/mke2fs
2025-11-21 00:20:25 +00:00

22 lines
445 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`