{"id":3179,"date":"2022-12-20T16:43:43","date_gmt":"2022-12-20T19:43:43","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/mkfs-f2fs-man8\/"},"modified":"2022-12-20T16:43:43","modified_gmt":"2022-12-20T19:43:43","slug":"mkfs-f2fs-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/mkfs-f2fs-man8\/","title":{"rendered":"MKFS.F2FS (man8)"},"content":{"rendered":"<h1 align=\"center\">MKFS.F2FS<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">mkfs.f2fs \u2212 create an F2FS file system<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mkfs.f2fs<\/b> [ <b>\u2212a<\/b> <i>heap-based-allocation<\/i> ] [ <b>\u2212c<\/b> <i>device-list<\/i> ] [ <b>\u2212d<\/b> <i>debug-level<\/i> ] [ <b>\u2212e<\/b> <i>extension-list<\/i> ] [ <b>\u2212E<\/b> <i>extension-list<\/i> ] [ <b>\u2212f<\/b> ] [ <b>\u2212g<\/b> ] [ <b>\u2212i<\/b> ] [ <b>\u2212l<\/b> <i>volume-label<\/i> ] [ <b>\u2212m<\/b> ] [ <b>\u2212o<\/b> <i>overprovision-ratio-percentage<\/i> ] [ <b>\u2212O<\/b> <i>feature-list<\/i> ] [ <b>\u2212C<\/b> <i>encoding:flags<\/i> ] [ <b>\u2212q<\/b> ] [ <b>\u2212r<\/b> ] [ <b>\u2212R<\/b> <i>root_owner<\/i> ] [ <b>\u2212s<\/b> <i>#-of-segments-per-section<\/i> ] [ <b>\u2212S<\/b> ] [ <b>\u2212t<\/b> <i>nodiscard\/discard<\/i> ] [ <b>\u2212T<\/b> <i>timestamp<\/i> ] [ <b>\u2212w<\/b> <i>wanted-sector-size<\/i> ] [ <b>\u2212z<\/b> <i>#-of-sections-per-zone<\/i> ] [ <b>\u2212V<\/b> ] <i>device [sectors]<\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>mkfs.f2fs<\/b><\/i> is used to create a f2fs file system (usually in a disk partition). <i>device<\/i> is the special file corresponding to the device (e.g. <i>\/dev\/sdXX<\/i>). <i>sectors<\/i> is optionally given for specifing the filesystem size.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The exit code returned by <b>mkfs.f2fs<\/b> is 0 on success and 1 on failure.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212a<\/b> <i>heap-based-allocation<\/i><\/p>\n<p style=\"margin-left:22%;\">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.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212c<\/b> <i>device-list<\/i><\/p>\n<p style=\"margin-left:22%;\">Build f2fs with these additional comma separated devices, so that the user can see all the devices as one big volume. Supports up to 7 devices except meta device.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212d<\/b> <i>debug-level<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify the level of debugging options. The default number is 0, which shows basic debugging messages.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212e<\/b> <i>extension-list<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify a list of file extensions that f2fs will treat as cold files. The data of files with those extensions will be stored in the cold log. The default list includes most of the multimedia file extensions such as jpg, gif, mpeg, mkv, and so on.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212E<\/b> <i>extension-list<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify a list of file extensions that f2fs will treat as hot files. The data of files with those extensions will be stored in the hot log. The default list includes database file extensions, such as db.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212f<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Force overwrite when an existing filesystem is detected on the device. By default, mkfs.f2fs will not write to the device if it suspects that there is a filesystem or partition table on the device already.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212g<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Add default Android options.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212i<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Enable extended node bitmap. <b>\u2212l<\/b> <i>volume-label<\/i> Specify the volume label to the partition mounted as F2FS.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212m<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Specify f2fs filesystem to supports the block zoned feature. Without it, the filesystem doesn\u2019t support the feature.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212o<\/b> <i>overprovision-ratio-percentage<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify the percentage of the volume that will be used as overprovision area. This area is hidden to users, and utilized by F2FS cleaner. If not specified, the best number will be assigned automatically according to the partition size.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212O<\/b> <i>feature-list<\/i><\/p>\n<p style=\"margin-left:22%;\">Set additional features for the filesystem. Features are comma separated, and the flag can be repeated. The following features are supported:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"16%\">\n<p><b>encrypt<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"52%\">\n<p>Enable support for filesystem level encryption.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"16%\">\n<p><b>extra_attr<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"52%\">\n<p>Enable extra attr feature, required for some of the other features.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%;\"><b>project_quota<\/b><\/p>\n<p style=\"margin-left:48%;\">Enable project ID tracking. This is used for projet quota accounting. Requires extra attr.<\/p>\n<p style=\"margin-left:29%;\"><b>inode_checksum<\/b><\/p>\n<p style=\"margin-left:48%;\">Enable inode checksum. Requires extra attr.<\/p>\n<p style=\"margin-left:29%;\"><b>flexible_inline_xattr<\/b><\/p>\n<p style=\"margin-left:48%;\">Enable flexible inline xattr. Requires extra attr.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"8%\">\n<p><b>quota<\/b><\/p>\n<\/td>\n<td width=\"11%\"><\/td>\n<td width=\"21%\">\n<p>Enable quotas.<\/p>\n<\/td>\n<td width=\"31%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%;\"><b>inode_crtime<\/b><\/p>\n<p style=\"margin-left:48%;\">Enable inode creation time feature. Requires extra attr.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"17%\">\n<p><b>lost_found<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"52%\">\n<p>Enable lost+found feature.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"17%\">\n<p><b>verity<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"52%\">\n<p>Reserved feature.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"17%\">\n<p><b>sb_checksum<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"52%\">\n<p>Enable superblock checksum.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"17%\">\n<p><b>casefold<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"52%\">\n<p>Enable casefolding support in the filesystem. Optional flags can be passed with <b>\u2212C<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"17%\">\n<p><b>compression<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"52%\">\n<p>Enable support for filesystem level compression. Requires extra attr.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212C<\/b> <i>encoding:flags<\/i><\/p>\n<p style=\"margin-left:22%;\">Support casefolding with a specific encoding, with optional comma separated flags.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"25%\">\n<p><i>encoding:<\/i><\/p>\n<\/td>\n<td width=\"12%\"><\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"29%\"><\/td>\n<td width=\"25%\">\n<p><b>utf8<\/b><\/p>\n<\/td>\n<td width=\"12%\"><\/td>\n<td width=\"34%\">\n<p>Use UTF-8 for casefolding.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%;\"><i>flags:<\/i><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"46%\">\n<p style=\"margin-top: 1em\"><b>strict<\/b><\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"34%\">\n<p style=\"margin-top: 1em\">This flag specifies that invalid strings should be rejected by the filesystem. Default is disabled.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"46%\">\n<p><b>\u2212q<\/b><\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Quiet mode. With it, mkfs.f2fs does not show any messages, including the basic messages.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><b>\u2212r<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">Sets the checkpointing srand seed to 0.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212R<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Give root_owner option for initial uid\/gid assignment. Default is set by getuid()\/getgid(), and assigned by &#8220;-R $uid:$gid&#8221;.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212s<\/b> <i>#-of-segments-per-section<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify the number of segments per section. A section consists of multiple consecutive segments, and is the unit of garbage collection. The default number is 1, which means one segment is assigned to a section.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>\u2212S<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>Enable sparse mode.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>\u2212t<\/b> <i>1\/0<\/i><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>Specify 1 or 0 to enable or disable discard policy, respectively. The default value is 1.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212T<\/b> <i>timestamp<\/i><\/p>\n<p style=\"margin-left:22%;\">Set inodes times to a given timestamp. By default, the current time will be used. This behaviour corresponds to the value -1.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212w<\/b> <i>wanted-sector-size<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify the sector size in bytes. Without it, the sectors will be calculated by device sector size.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212z<\/b> <i>#-of-sections-per-zone<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify the number of sections per zone. A zone consists of multiple 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.<\/p>\n<p style=\"margin-left:11%;\"><b>sectors<\/b><\/p>\n<p style=\"margin-left:22%;\">Number of sectors. Default is determined by device size.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212V<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"52%\">\n<p>Print the version number and exit.<\/p>\n<\/td>\n<td width=\"26%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This version of <b>mkfs.f2fs<\/b> has been written by Jaegeuk Kim <jaegeuk.kim@samsung.com>.<\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mkfs.f2fs<\/b> is available from git:\/\/git.kernel.org\/pub\/scm\/linux\/kernel\/git\/jaegeuk\/f2fs-tools.git.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mkfs<\/b>(8), <b>fsck.f2fs(8), dump.f2fs(8), defrag.f2fs(8), resize.f2fs(8), sload.f2fs(8).<\/b><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  mkfs.f2fs \u2212 create an F2FS file system <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,40],"class_list":["post-3179","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-mkfs"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3179"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3179\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}