MKFS.F2FS(8)MKFS.F2FS(8)NAMEmkfs.f2fs - create an F2FS file system
SYNOPSISmkfs.f2fs [ -a heap-based-allocation ] [ -l volume-label ] [ -o over‐
provision-ratio-percentage ] [ -s log-based-#-of-segments-per-section ]
[ -z #-of-sections-per-zone ] [ -e extenstion-list ] [ -d debugging-
level ] device
DESCRIPTIONmkfs.f2fs is used to create a f2fs file system (usually in a disk par‐
tition). device is the special file corresponding to the device (e.g.
The exit code returned by mkfs.f2fs is 0 on success and 1 on failure.
Specify 1 or 0 to enable/disable heap based block allocation
policy. If the value is equal to 1, each of active log areas
are initially assigned separately according to the whole volume
size. The default value is 1.
Specify the volume label to the partition mounted as F2FS.
Specify the percentage over the volume size for overprovision
area. This area is hidden to users, and utilized by F2FS
cleaner. The default percentage is 5%.
Specify the log-based number of segments per section. A section
consists of multiple consecutive segments, and is the unit of
garbage collection. The default number is 0, which means one
segment is assigned to a section.
Specify the number of sections per zone. A zone consists of mul‐
tiple sections. F2FS allocates segments for active logs with
separated zones as much as possible. The default number is 1,
which means a zone consists of one section.
Specify a file extension list in order f2fs to treat them as
cold files. The data of files having those extensions will be
stored to the cold log. The default list includes most of mul‐
timedia file extensions such as jpg, gif, mpeg, mkv, and so on.
Specify the level of debugging options. The default number is
0, which shows basic debugging messages.
This version of mkfs.f2fs has been written by Jaegeuk Kim
AVAILABILITYmkfs.f2fs is available from git://git.kernel.org/pub/scm/linux/ker‐
f2fs-tools version 1.2.0 January 2013 MKFS.F2FS(8)