{"id":3779,"date":"2022-12-20T17:20:03","date_gmt":"2022-12-20T20:20:03","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/jfs_fsck-man8-2\/"},"modified":"2022-12-20T17:20:03","modified_gmt":"2022-12-20T20:20:03","slug":"jfs_fsck-man8-2","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/jfs_fsck-man8-2\/","title":{"rendered":"jfs_fsck (man8)"},"content":{"rendered":"<h1 align=\"center\">jfs_fsck<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#WARNING\">WARNING<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#EXIT CODE\">EXIT CODE<\/a><br \/> <a href=\"#REPORTING BUGS\">REPORTING BUGS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>jfs_fsck<\/b> \u2212 initiate replay of the JFS transaction log, and check and repair a JFS formatted device<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>jfs_fsck<\/b> [ <b>-afnpvV<\/b> ] [ <b>-j<\/b> <i>journal_device<\/i> ] [ <b>&#8211;omit_journal_replay<\/b> ] [ <b>&#8211;replay_journal_only<\/b> ] <i>device<\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>jfs_fsck<\/b><\/i> is used to replay the JFS transaction log, check a JFS formatted device for errors, and fix any errors found.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>device<\/i> is the special file name corresponding to the actual device to be checked (e.g. <b>\/dev\/hdb1<\/b>).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>jfs_fsck<\/b> must be run as root.<\/p>\n<h2>WARNING <a name=\"WARNING\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>jfs_fsck<\/b> should only be used to check an <b>unmounted<\/b> file system or a file system that is mounted READ ONLY. Using <b>jfs_fsck<\/b> to check a file system mounted other than READ ONLY could seriously damage the file system!<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">If no options are selected, the default is <b>\u2212p<\/b>.<\/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>\u2212a<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Autocheck mode &#8211; Replay the transaction log. Do not continue fsck processing unless the aggregate state is dirty or the log replay failed. Functionally equivalent to <b>\u2212p<\/b>. Autocheck mode is typically the default mode used when <b>jfs_fsck<\/b> is called at boot time.<\/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>Replay the transaction log and force checking even if the file system appears clean. Repair all problems automatically.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212j<\/b> <i>journal_device<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify the journal device.<\/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>Open the file system read only. Do not replay the transaction log. Report errors, but do not repair them.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212-omit_journal_replay<\/b><\/p>\n<p style=\"margin-left:22%;\">Omit the replay of the transaction log. This option should not be used unless as a last resort (i.e. the log has been severely corrupted and replaying it causes further problems).<\/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>Automatically repair (&#8220;preen&#8221;) the file system. Replay the transaction log. Do not continue fsck processing unless the aggregate state is dirty or the log replay failed. Functionally equivalent to <b>\u2212a<\/b>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212-replay_journal_only<\/b><\/p>\n<p style=\"margin-left:22%;\">Only replay the transaction log. Do not continue with a full file system check if the replay fails or if the file system is still dirty even after a journal replay. In general, this option should only be used for debugging purposes as it could leave the file system in an unmountable state. This option cannot be used with <b>-f<\/b>, <b>-n<\/b>, or <b>&#8211;omit_journal_replay<\/b>.<\/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=\"78%\">\n<p>Verbose messaging &#8211; print details and debug statements to stdout.<\/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 version information and exit (regardless of any other chosen options).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Check the 3rd partition on the 2nd hard disk, print extended information to stdout, replay the transaction log, force complete jfs_fsck checking, and give permission to repair all errors:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>jfs_fsck \u2212v \u2212f \/dev\/hdb3<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Check the 5th partition on the 1st hard disk, and report, but do not repair, any errors:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>jfs_fsck \u2212n \/dev\/hda5<\/b><\/p>\n<h2>EXIT CODE <a name=\"EXIT CODE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The exit code returned by <b>jfs_fsck<\/b> represents one of the following conditions:<\/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=\"6%\">\n<p style=\"margin-top: 1em\">\u00a0 <b>0<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">No errors<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p>\u00a0 <b>1<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p>File system errors corrected and\/or transaction log replayed successfully<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p>\u00a0 <b>2<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p>File system errors corrected, system should be rebooted if file system was mounted<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p>\u00a0 <b>4<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p>File system errors left uncorrected<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p>\u00a0 <b>8<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p>Operational error<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p>\u00a0 <b>16<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p>Usage or syntax error<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p>\u00a0 <b>128<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p>Shared library error<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>REPORTING BUGS <a name=\"REPORTING BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">If you find a bug in <b>JFS<\/b> or <b>jfs_fsck<\/b>, please report it via the bug tracking system (&#8220;Report Bugs&#8221; section) of the JFS project web site: <br \/> http:\/\/jfs.sourceforge.net\/<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Please send as much pertinent information as possible, including the complete output of running <b>jfs_fsck<\/b> with the <b>\u2212v<\/b> option on the JFS device.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>fsck<\/b>(8), <b>jfs_mkfs<\/b>(8), <b>jfs_fscklog<\/b>(8), <b>jfs_tune<\/b>(8), <b>jfs_logdump<\/b>(8), <b>jfs_debugfs<\/b>(8)<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Barry Arndt (barndt@us.ibm.com) <br \/> William Braswell, Jr.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>jfs_fsck<\/b> is maintained by IBM. <br \/> See the JFS project web site for more details: <br \/> http:\/\/jfs.sourceforge.net\/<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  jfs_fsck \u2212 initiate replay of the JFS transaction log, and check and repair a JFS formatted device <\/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,31,4],"class_list":["post-3779","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-fsck","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3779","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=3779"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3779\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}