[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.38, Mon Apr 19 07:19:25 2021 UTC (6 months ago) by nia
Branch: MAIN
CVS Tags: HEAD
Changes since 1.37: +1 -1 lines

regen

<!DOCTYPE html>
<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">
<link rel="stylesheet" href="../donations/thermo/fundraiser.css" type="text/css">

    

    

    <title>Mounting an old FFSv1 file system warning</title>
  </head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<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>
<input id="hamburger" type="checkbox"><label class="menuicon" for="hamburger"><span></span><span></span><span></span></label><div id="navBar" role="navigation">
<div id="centralHeader"><div id="logo">
<a href="../"><img id="projectLogo" alt="" height="120" src="../images/NetBSD-smaller-tb.png"></a><a href="/"><div id="fundraiser">
<br><div id="fundraiser-amount"><div id="fundraiser-raised"></div></div>
</div></a>
</div></div>
<span class="doNotDisplay">
	  Navigation:
	</span><ul>
<li>
<a href="../">
	  Home</a><ul>
<li><a href="../changes/">
	    Recent changes</a></li>
<li><a href="//blog.NetBSD.org/">
	    NetBSD blog</a></li>
<li><a href="../gallery/presentations/">
	    Presentations</a></li>
</ul>
</li>
<li>
<a href="../about/">
	  About</a><ul>
<li><a href="../people/developers.html">
	    Developers</a></li>
<li><a href="../gallery/">
	    Gallery</a></li>
<li><a href="//wiki.NetBSD.org/ports/">
	    Ports</a></li>
<li><a href="//www.pkgsrc.org/">
	    Packages</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="//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="/community/">
	    Community</a></li>
<li><a href="/mailinglists/">
	    Mailing lists</a></li>
<li><a href="../support/send-pr.html">
	    Bug reports</a></li>
<li><a href="../support/security/">
	    Security</a></li>
</ul>
</li>
<li>
<a href="../developers/">
	  Developers</a><ul>
<li><a href="http://cvsweb.NetBSD.org/">
	    CVSWeb</a></li>
<li><a href="//anonhg.NetBSD.org/">
	    Mercurial</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>
</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-2021 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>