MKE2FS(8) System Manager's Manual MKE2FS(8)
NAME
mke2fs - create an ext2/ext3/ext4 filesystem
SYNOPSIS
mke2fs [ -c | -l filename ] [ -b block-size ] [ -D ] [ -f fragment-size ] [ -g blocks-
per-group ] [ -G number-of-groups ] [ -i bytes-per-inode ] [ -I inode-size ] [ -j ] [ -J
journal-options ] [ -N number-of-inodes ] [ -n ] [ -m reserved-blocks-percentage ] [ -o
creator-os ] [ -O feature[,...] ] [ -q ] [ -r fs-revision-level ] [ -E extended-options
] [ -v ] [ -F ] [ -L volume-label ] [ -M last-mounted-directory ] [ -S ] [ -t fs-type ]
[ -T usage-type ] [ -U UUID ] [ -V ] device [ blocks-count ]
mke2fs -O journal_dev [ -b block-size ] [ -L volume-label ] [ -n ] [ -q ] [ -v ] exter‐
nal-journal [ blocks-count ]
DESCRIPTION
mke2fs is used to create an ext2, ext3, or ext4 filesystem, usually in a disk partition.
device is the special file corresponding to the device (e.g /dev/hdXX). blocks-count is
the number of blocks on the device. If omitted, mke2fs automagically figures the file
system size. If called as mkfs.ext3 a journal is created as if the -j option was speci‐
fied.
The defaults of the parameters for the newly created filesystem, if not overridden by
the options listed below, are controlled by the /etc/mke2fs.conf configuration file.
See the mke2fs.conf(5) manual page for more details.
OPTIONS
-b block-size
Specify the size of blocks in bytes. Valid block-size values are 1024, 2048 and
4096 bytes per block. If omitted, block-size is heuristically determined by the
filesystem size and the expected usage of the filesystem (see the -T option). If
block-size is preceded by a negative sign ('-'), then mke2fs will use heuristics
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme