Mke2fs Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Mke2fs Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

mke2fs

Creates a Linux filesystem inside a partition.

Maintainer: Theodore Y. Ts'o



Section: admin

Install mke2fs

  • Debian apt-get install e2fsprogs Click to copy
  • Ubuntu apt-get install e2fsprogs Click to copy
  • Alpine OS apk add e2fsprogs Click to copy
  • Arch Linux pacman -S e2fsprogs Click to copy
  • Kali Linux apt-get install e2fsprogs Click to copy
  • CentOS yum install e2fsprogs Click to copy
  • Fedora dnf install e2fsprogs Click to copy
  • Raspbian apt-get install e2fsprogs Click to copy
  • macOS brew install e2fsprogs Click to copy

Creates a Linux filesystem inside a partition.

How to use mke2fs?

Below are few example commands for mke2fs that you can use in the terminal.

Create an ext2 filesystem in partition 1 of device b (`sdb1`):
mkfs.ext2 /dev/sdb1Click to copy
Create an ext3 filesystem in partition 1 of device b (`sdb1`):
mkfs.ext3 /dev/sdb1Click to copy
Create an ext3 filesystem in partition 1 of device b (`sdb1`):
mkfs.ext3 /dev/sdb1Click to copy
Installation of latest mke2fs command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.