1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 02:55:24 +02:00
tldr/pages/linux/mkfs.ext4.md
Managor 5c3e141eb2
mkfs*: unify format (#16188)
Co-authored-by: pixie <pixel+github@chrissx.de>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 00:06:58 +03:00

308 B

mkfs.ext4

Create an ext4 filesystem inside a partition. More information: https://manned.org/mkfs.ext4.

  • Create an ext4 filesystem inside partition Y on device X:

sudo mkfs.ext4 {{/dev/sdXY}}

  • Create an ext4 filesystem with a volume-label:

sudo mkfs.ext4 -L {{volume_label}} {{/dev/sdXY}}