mke2fs

Creates a Linux filesystem inside a partition. More information: <https://manned.org/mke2fs>.

Install

All systems
curl cmd.cat/mke2fs.sh
Debian Debian
apt-get install e2fsprogs
Ubuntu
apt-get install e2fsprogs
Alpine
apk add e2fsprogs
Arch Arch Linux
pacman -S e2fsprogs
image/svg+xml Kali Linux
apt-get install e2fsprogs
CentOS
yum install e2fsprogs
Fedora
dnf install e2fsprogs
Windows (WSL2)
sudo apt-get update sudo apt-get install e2fsprogs
OS X
brew install e2fsprogs
Raspbian
apt-get install e2fsprogs
Docker
docker run cmd.cat/mke2fs mke2fs powered by Commando

Creates a Linux filesystem inside a partition. More information: <https://manned.org/mke2fs>.

  • Create an ext2 filesystem in partition 1 of device b (`sdb1`):
    mkfs.ext2 /dev/sdb1
  • Create an ext3 filesystem in partition 1 of device b (`sdb1`):
    mkfs.ext3 /dev/sdb1
  • Create an ext4 filesystem in partition 1 of device b (`sdb1`):
    mkfs.ext4 /dev/sdb1

© tl;dr; authors and contributors