[BACK]Return to ffsv1badsuperblock.html CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / htdocs / docs

File: [cvs.NetBSD.org] / htdocs / docs / ffsv1badsuperblock.html (download) (as text)

Revision 1.26, Fri Jan 3 03:35:10 2020 UTC (4 years, 3 months ago) by reed
Branch: MAIN
Changes since 1.25: +1 -1 lines

change templates to use https for manpage webservers

The manpage webserver now redirects to https.
The manpage web admin, kim, requested that the links to be changed
to https.

Webpages regenerated to use the new template URLs.

Note that some pages still have old URLs hardcoded without using
macros. These still can be fixed -- see
http://netbsd.org/developers/www.html#manpages for instructions.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="generator" content="Website XSL Stylesheet V2.6.0">
<link rel="home" href="../." title="Welcome to The NetBSD Project: Of course it runs NetBSD.">
<link rel="up" href="../docs/." title="NetBSD Documentation">
<link rel="previous" href="../docs/kernel/." title="NetBSD Documentation: Kernel">
<link rel="next" href="../docs/misc/." title="NetBSD Documentation: Other FAQs and HOWTOs">
<link rel="first" href="../docs/Hardware/." title="Hardware Documentation">
<link rel="last" href="../docs/x/." title="NetBSD Documentation: The X Window System">
<link rel="stylesheet" href="../global.css" type="text/css">

    

    

    <title>Mounting an old FFSv1 file system warning</title>
  </head>
<body class="website"><div class="webpage">
<a name="docs-mirror"></a><div id="top"><a href="#mainContent" id="skiplink" tabindex="1">Skip to main content.</a></div>
<div id="centralHeader"><div id="logo">
<a href="../"><img alt="[NetBSD Logo]" src="../images/NetBSD-smaller.png"></a><div id="name"><a href="../">
	  The NetBSD Project
	</a></div>
<div id="slogan"><a href="../">
	  &#8220;Of course it runs NetBSD&#8221;
	</a></div>
</div></div>
<input id="hamburger" type="checkbox"><label class="menuicon" for="hamburger"><span></span></label><div id="navBar" role="navigation">
<span class="doNotDisplay">
	  Navigation:
	</span><ul>
<li><a href="../">
	  Home</a></li>
<li>
<a href="../">
	  News &amp; Media</a><ul>
<li><a href="../changes/">
	    Recent changes</a></li>
<li><a href="//blog.NetBSD.org/">
	    NetBSD blog</a></li>
<li><a href="../gallery/events.html">
	    Events</a></li>
</ul>
</li>
<li>
<a href="../about/">
	  About</a><ul>
<li><a href="../about/">
	    NetBSD</a></li>
<li><a href="../people/developers.html">
	    NetBSD developers</a></li>
<li><a href="../gallery/">
	    Gallery</a></li>
</ul>
</li>
<li>
<a href="../docs/">
	  Documentation</a><ul>
<li><a href="../docs/misc/index.html">
	    FAQ &amp; HOWTOs</a></li>
<li><a href="../docs/guide/en/">
	    The Guide</a></li>
<li><a href="https://man.NetBSD.org/">
	    Manual pages</a></li>
<li><a href="//wiki.NetBSD.org/">
	    Wiki</a></li>
</ul>
</li>
<li>
<a href="../support/">
	  Support</a><ul>
<li><a href="../support/send-pr.html">
	    Problem report guide</a></li>
<li><a href="../cgi-bin/sendpr.cgi?gndb=netbsd">
	    Report a bug</a></li>
<li><a href="../support/query-pr.html">
	    Query bug database</a></li>
<li><a href="../support/security/">
	    Security</a></li>
</ul>
</li>
<li>
<a href="../community/">
	  Community</a><ul>
<li><a href="../mailinglists/">
	    Mailing lists</a></li>
<li><a href="//mail-index.NetBSD.org/">
	    List archives</a></li>
</ul>
</li>
<li>
<a href="../developers/">
	  Developers</a><ul>
<li><a href="http://cvsweb.NetBSD.org/">
	    Browse source</a></li>
<li><a href="//nxr.NetBSD.org/">
	    Cross-reference</a></li>
<li><a href="//releng.NetBSD.org/">
	    Release engineering</a></li>
<li><a href="//wiki.NetBSD.org/projects/">
	    Projects list</a></li>
</ul>
</li>
<li>
<a href="../ports/">
	  Ports</a><ul>
<li><a href="../ports/history.html">
	    History</a></li>
<li><a href="../ports/emulators.html">
	    Emulators</a></li>
</ul>
</li>
<li>
<a href="//www.pkgsrc.org/">
	  Packages</a><ul>
<li><a href="http://www.pkgsrc.se/">
	    Browse packages</a></li>
<li><a href="//releng.NetBSD.org/index-pkgsrc.html">
	    Release engineering</a></li>
</ul>
</li>
</ul>
</div>
<div id="content"><div id="mainContent" class="fullWidth"><div class="rowOfBoxes">
<h1>Mounting an old FFSv1 file system warning</h1>
<div class="sect1">
<div class="titlepage"></div>
    <div class="sect2">
<div class="titlepage"><div><div><h3 class="title">
<a name="why"></a>Why do I get this warning?</h3></div></div></div>
      
      <p>
	Sometimes when mounting a file system, the kernel will output
	the following warning:
	</p>
<pre class="programlisting">
root on wd0a dumps on wd0b
CGSIZE(fs) miscalculated by one - this file system may have been created by
  an old (buggy) userland, see
  http://www.NetBSD.org/docs/ffsv1badsuperblock.html
root file system type: ffs
	</pre>
<p>
	or an even more scary version:
	</p>
<pre class="programlisting">
# mount /home
mount_ffs: /dev/raid2a on /home: incorrect super block
ERROR: cylinder group size mismatch: fs_cgsize = 0x4800, fs-&gt;fs_cgsize = 0x4000, CGSIZE(fs) = 0x4003
	</pre>
<p>
	which prevents using the disk completely.
      </p>
      <p>
	This originally was suspected to happen when the file system has been created with a very
	ancient newfs utility - the bug causing this mis-setup was fixed in revision 1.96
        of src/sbin/newfs/mkfs.c, on January 11, 2006.
      </p>
      <p>
      But later <a class="ulink" href="http://gnats.NetBSD.org/50070" target="_top">analysis</a>
      resulted in a fix of the slightly over-eager sanity check done by the
      kernel.
      </p>
    </div>
    <div class="sect2">
<div class="titlepage"><div><div><h3 class="title">
<a name="action"></a>Is emergency action needed?</h3></div></div></div>
      
      <p>If you get the first form and can still mount the file system: no,
      you can just ignore the issue.
      The second variant of the error prevents usage of the filesystem,
      so you need to upgrade your kernel (see below).</p>
    </div>
    <div class="sect2">
<div class="titlepage"><div><div><h3 class="title">
<a name="longterm"></a>What is the (long term) recommended action to solve the issue?</h3></div></div></div>
      
      <p>
	Assuming the affected file system is not actually of the ancient
	(broken) variant created with a pre-2006 binary: install a newer
	kernel. You should only see this message on some versions of
	-current, so upgrading to a recent -current kernel (newer than
	october 22, 2015) should fix it.
      </p>
      <p>
        Otherwise:
	back up all your data from this partition, use a modern newfs(8) to
	recreate the filesystem and restore the data.
      </p>
    </div>
  </div>
</div></div></div>
<div class="navfoot"></div>
<div id="footer"><div id="footerContent"><center>
<span class="footfeed"><a href="//www.NetBSD.org/cgi-bin/feedback.cgi">
	  Contact</a> |
      </span><span class="footcopy"><a href="../about/disclaimer.html">
      Disclaimer</a> |

      <span class="copyright">Copyright 1994-2019 The NetBSD Foundation, Inc. </span>ALL RIGHTS RESERVED.<br>NetBSD<sup>/sup> is a registered trademark of The NetBSD
	Foundation, Inc.</span>
</center></div></div>
</div></body>
</html>