\section{Filesystem Corruption and Recovery}

\begin{frame}
   {Filesystem Corruption and Recovery}

   \begin{itemize}
      \item \textbf{fsck} may be used to fix corrupted
      filesystems
      \item Check \filelink{/etc/fstab} for misconfiguration
      \item May need to run
      \begin{cmd}
$ mount -o remount,rw /
      \end{cmd}
      to attempt fixes
      \item Try manually mounting filesystems
   \end{itemize}

\end{frame}

\cprotect\note{

   \textbf{fsck} may be used to attempt repair.  However,
   before doing that one should check that
   \filelink{/etc/fstab} has not been misconfigured or
   corrupted.  Note once again you could have a problem
   with a filesystem type the kernel you are running does
   not understand.

   If the root filesystem has been mounted you can examine
   this file, but \filelink{/} may have been mounted as
   read-only.  so to edit the file and fix it you can run:
   \begin{cmd}
$ sudo mount -o remount,rw /
   \end{cmd}
   to remount it with write permission.

   If \filelink{/etc/fstab} seems to be correct, you can
   move to \textbf{fsck}.  First you should try:
   \begin{cmd}
$ sudo mount -a
   \end{cmd}
   to try and mount all filesystems.  If this does not
   succeed completely, you can try to manually mount the
   ones with problems.  You should first run \textbf{fsck}
   to just examine; afterwards you can run it again to have
   it try and fix any errors found.

}


