Browse Source


Sven Vermeulen 12 years ago
  1. 33


@ -471,6 +471,39 @@ Changed system type of partition 4 to 82 (Linux swap)</programlisting>
your file system. This has already been covered in <xref
linkend="mountsection" />.</para>
<title>Fixing Corrupt File Systems</title>
<para>If a file system is corrupt, you will notice this when you want
to mount the file system (or when the system tries to automatically
mount the file system for you):</para>
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), the the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 &lt;device&gt;
* Filesystem couldn't be fixed :(</programlisting>
<para>Now, before you run into the night, screaming for help, sit down
and try executing the command that the output gave:</para>
<programlisting>(The proposed command will vary depending on file system used)
~# <command>e2fsck -b 8193 /dev/hda4</command></programlisting>
<para>If the <command>e2fsck</command><indexterm>
</indexterm> check reports that there is corruption found, it might
ask you to confirm every correction it wants to do. As a file system
check can easily report hundreds to thousands of corruptions (not that
that means that there are thousands of files corrupt), it might be
easier to tell e2fsck to just acknowledge them all for you:</para>
<programlisting>~# <command>e2fsck -y /dev/hda4</command></programlisting>