{"id":3068,"date":"2022-12-20T16:43:25","date_gmt":"2022-12-20T19:43:25","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/mkfs-cramfs-man8\/"},"modified":"2022-12-20T16:43:25","modified_gmt":"2022-12-20T19:43:25","slug":"mkfs-cramfs-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/mkfs-cramfs-man8\/","title":{"rendered":"MKFS.CRAMFS (man8)"},"content":{"rendered":"<h1 align=\"center\">MKFS.CRAMFS<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#ARGUMENTS\">ARGUMENTS<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#EXIT STATUS\">EXIT STATUS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">mkfs.cramfs \u2212 make compressed ROM file system<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mkfs.cramfs<\/b> [options] <i>directory file<\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Files on cramfs file systems are zlib-compressed one page at a time to allow random read access. The metadata is not compressed, but is expressed in a terse representation that is more space-efficient than conventional file systems.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The file system is intentionally read-only to simplify its design; random write access for compressed files is difficult to implement. cramfs ships with a utility (mkcramfs) to pack files into new cramfs images.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">File sizes are limited to less than 16\u00a0MB.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Maximum file system size is a little under 272\u00a0MB. (The last file on the file system must begin before the 256\u00a0MB block, but can extend past it.)<\/p>\n<h2>ARGUMENTS <a name=\"ARGUMENTS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>directory<\/i> is simply the root of the directory tree that we want to generate a compressed filesystem out of.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>file<\/i> will contain the cram file system, which later can be mounted.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\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>\u2212v<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">Enable verbose messaging.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212E<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Treat all warnings as errors, which are reflected as command exit status.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212b<\/b> <i>blocksize<\/i><\/p>\n<p style=\"margin-left:22%;\">Use defined block size, which has to be divisible by page size.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212e<\/b> <i>edition<\/i><\/p>\n<p style=\"margin-left:22%;\">Use defined file system edition number in superblock.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212N<\/b> <i>big, little, host<\/i><\/p>\n<p style=\"margin-left:22%;\">Use defined endianness. Value defaults to <i>host<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212i<\/b> <i>file<\/i><\/p>\n<p style=\"margin-left:22%;\">Insert a <i>file<\/i> to cramfs file system.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212n<\/b> <i>name<\/i><\/p>\n<p style=\"margin-left:22%;\">Set name of the cramfs file system.<\/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>\u2212p<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Pad by 512 bytes for boot code.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212s<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>This option is ignored. Originally the \u2212s turned on directory entry sorting.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212z<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Make explicit holes.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:22%;\">Display help text and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212V<\/b>, <b>\u2212\u2212version<\/b><\/p>\n<p style=\"margin-left:22%;\">Display version information and exit.<\/p>\n<h2>EXIT STATUS <a name=\"EXIT STATUS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\"><b>0<\/b><\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p style=\"margin-top: 1em\">success<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p><b>8<\/b><\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>operation error, such as unable to allocate memory<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>fsck.cramfs<\/b>(8), <b>mount<\/b>(8)<\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The mkfs.cramfs command is part of the util-linux package and is available from <a href=\"https:\/\/www.kernel.org\/pub\/linux\/utils\/util-linux\/\">Linux Kernel Archive<\/a>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  mkfs.cramfs \u2212 make compressed ROM 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-3068","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\/3068","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=3068"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3068\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}