{"id":3223,"date":"2022-12-20T16:43:52","date_gmt":"2022-12-20T19:43:52","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/mkfs-nilfs2-man8\/"},"modified":"2022-12-20T16:43:52","modified_gmt":"2022-12-20T19:43:52","slug":"mkfs-nilfs2-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/mkfs-nilfs2-man8\/","title":{"rendered":"MKFS.NILFS2 (man8)"},"content":{"rendered":"<h1 align=\"center\">MKFS.NILFS2<\/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.nilfs2 \u2212 create a NILFS2 filesystem<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mkfs \u2212t nilfs2<\/b> [ <b>\u2212b<\/b> <i>block-size<\/i> ] [ <b>\u2212B<\/b> <i>blocks-per-segment<\/i> ] [ <b>\u2212c<\/b> ] [ <b>\u2212f<\/b> ] [ <b>\u2212K<\/b> ] [ <b>\u2212L<\/b> <i>volume-label<\/i> ] [ <b>\u2212m<\/b> <i>reserved-segments-percentage<\/i> ] [ <b>\u2212n<\/b> ] [ <b>\u2212O<\/b> <i>feature<\/i>[,&#8230;] ] [ <b>\u2212h<\/b> ] [ <b>\u2212q<\/b> ] [ <b>\u2212v<\/b> ] [ <b>\u2212V<\/b> ] <i>device<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mkfs.nilfs2<\/b> [ <b>\u2212b<\/b> <i>block-size<\/i> ] [ <b>\u2212B<\/b> <i>blocks-per-segment<\/i> ] [ <b>\u2212c<\/b> ] [ <b>\u2212f<\/b> ] [ <b>\u2212K<\/b> ] [ <b>\u2212L<\/b> <i>volume-label<\/i> ] [ <b>\u2212m<\/b> <i>reserved-segments-percentage<\/i> ] [ <b>\u2212n<\/b> ] [ <b>\u2212O<\/b> <i>feature<\/i>[,&#8230;] ] [ <b>\u2212h<\/b> ] [ <b>\u2212q<\/b> ] [ <b>\u2212v<\/b> ] [ <b>\u2212V<\/b> ] <i>device<\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>mkfs.nilfs2<\/b><\/i> is used to create a nilfs2 filesystem (usually in a disk partition). <i>device<\/i> is the special file corresponding to the device (e.g. <i>\/dev\/sdXX<\/i>). Usually <b>mkfs.nilfs2<\/b> is invoked from the <b>mkfs<\/b>(8) front-end program.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The exit code returned by <b>mkfs.nilfs2<\/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>\u2212b<\/b> <i>block-size<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify the size of blocks in bytes. The valid block size is 1024, 2048, 4096, 8192 bytes, &#8230;, and the maximum block size is restricted to the system page size. For most machines, it is 4096 bytes. The default block size is 4096 bytes.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212B<\/b> <i>blocks-per-segment<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify the number of blocks in a segment, where the segment (also called full segment) is an allocation unit of disk space of NILFS. This parameter gives the size of segment and consequently determines how many segments are aligned in the specified device. The default number of blocks per segment is 2048 (= 8MB with 4KB blocks).<\/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>\u2212c<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Check the device for bad blocks before building the filesystem.<\/p>\n<\/td>\n<\/tr>\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, <b>mkfs.nilfs2<\/b> will not write to the device if it suspects that there is a filesystem 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>\u2212h<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Display help message and exit.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212K<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Keep, do not attempt to discard blocks at mkfs time (discarding blocks initially is useful on solid state drives and sparse \/ thinly-provisioned storage).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212L<\/b> <i>new-volume-label<\/i><\/p>\n<p style=\"margin-left:22%;\">Set the volume label for the filesystem to <i>new-volume-label<\/i>. The maximum length of the volume label is 80 bytes.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212m<\/b> <i>reserved-segments-percentage<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify the percentage of the segments reserved for garbage collection. The default percentage is 5%.<\/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>\u2212n<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Cause <b>mkfs.nilfs2<\/b> to not actually create a filesystem, but display what it would be do if it were to create a filesystem.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212O<\/b> <i>feature<\/i>[,&#8230;]<\/p>\n<p style=\"margin-left:22%;\">Create a filesystem with the given features (filesystem options), overriding the default filesystem options.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The filesystem feature set is comprised of a list of features, separated by commas, that are to be enabled. To disable a feature, simply prefix the feature name with a caret (\u2019^\u2019) character. The pseudo-filesystem feature &#8220;none&#8221; will clear all filesystem features. <b><br \/> block_count<\/b><\/p>\n<p style=\"margin-left:32%;\">Enable block count per checkpoint.<\/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>\u2212q<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Quiet execution. Useful if <b>mkfs.nilfs2<\/b> is run in a script.<\/p>\n<\/td>\n<\/tr>\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=\"78%\">\n<p>Verbose execution.<\/p>\n<\/td>\n<\/tr>\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=\"78%\">\n<p>Print the version number of <b>mkfs.nilfs2<\/b> and exit.<\/p>\n<\/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.nilfs2<\/b> has been written by Ryusuke Konishi <konishi.ryusuke@gmail.com>.<\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mkfs.nilfs2<\/b> is part of the nilfs-utils package and is available from https:\/\/nilfs.sourceforge.io.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nilfs<\/b>(8), <b>mkfs<\/b>(8), <b>badblocks<\/b>(8).<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  mkfs.nilfs2 \u2212 create a NILFS2 filesystem <\/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-3223","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\/3223","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=3223"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3223\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}