[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
Changes since 1.37: +1 -1 lines


<!DOCTYPE html>
<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>
<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>
<span class="doNotDisplay">
<a href="../">
<li><a href="../changes/">
	    Recent changes</a></li>
<li><a href="//blog.NetBSD.org/">
	    NetBSD blog</a></li>
<li><a href="../gallery/presentations/">
<a href="../about/">
<li><a href="../people/developers.html">
<li><a href="../gallery/">
<li><a href="//wiki.NetBSD.org/ports/">
<li><a href="//www.pkgsrc.org/">
<a href="../docs/">
<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/">
<a href="../support/">
<li><a href="/community/">
<li><a href="/mailinglists/">
	    Mailing lists</a></li>
<li><a href="../support/send-pr.html">
	    Bug reports</a></li>
<li><a href="../support/security/">
<a href="../developers/">
<li><a href="http://cvsweb.NetBSD.org/">
<li><a href="//anonhg.NetBSD.org/">
<li><a href="//nxr.NetBSD.org/">
<li><a href="//releng.NetBSD.org/">
	    Release engineering</a></li>
<li><a href="//wiki.NetBSD.org/projects/">
	    Projects list</a></li>
<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>
	Sometimes when mounting a file system, the kernel will output
	the following warning:
<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
root file system type: ffs
	or an even more scary version:
<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
	which prevents using the disk completely.
	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.
      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
    <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 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>
	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.
	back up all your data from this partition, use a modern newfs(8) to
	recreate the filesystem and restore the data.
<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>