mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
445 B
Plaintext
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}}`
|