\section{Rescue Media and Troubleshooting}
\begin{frame}
   {Rescue Media and Troubleshooting}

   \begin{itemize}
      \item Rescue/Recover Media can also be used for troubleshooting
      \item Come in optical media (\textbf{CD}, \textbf{DVD})
      and \textbf{USB} drives.
      \item Contain useful utilities for troubleshooting (and
      repair):

      \begin{itemize}
         \item Disk Maintenance Utilities
         \item Networking Utilities
         \item Miscellaneous Utilities
         \item Logging files
      \end{itemize}
   \end{itemize}

\end{frame}

\cprotect\note{

   We will discuss system rescue and recovery shortly, but
   here let us focus on the use of rescue media in
   troubleshooting.

   Exact tool choices will vary from one \textbf{Linux}
   distribution to another, but when you boot from an
   install or live \textbf{CD/DVD} or \textbf{USB} drive
   you will be able to select an option with a name like
   \texttt{Rescue Installed System}.

   Rescue disks contain many useful programs, including:
   \begin{itemize}
      \item Disk utilities for creating partitions, managing
      \textbf{RAID} devices, managing logical volume, and
      creating filesystems:

      \textbf{fdisk}, \textbf{mdadm}, \textbf{pvcreate},
      \textbf{vgcreate}, \textbf{lvcreate}, \textbf{mkfs},
      and many others.

      \item Networking utilities for network debugging and
      network connectivity:

      \textbf{ifconfig}, \textbf{route},
      \textbf{traceroute}, \textbf{mtr}, \textbf{host},
      \textbf{ftp}, \textbf{scp}, \textbf{ssh}.

      \item Numerous other commands are also available:

      \textbf{bash}, \textbf{chroot}, \textbf{ps},
      \textbf{kill}, \textbf{vi}, \textbf{dd}, \textbf{tar},
      \textbf{cpio}, \textbf{gzip}, \textbf{rpm},
      \textbf{mkdir}, \textbf{ls}, \textbf{cp}, \textbf{mv},
      and \textbf{rm} to name a few.
   \end{itemize}

}
\section{Using Rescue/Recovery Media}
\begin{frame}
   {Using Rescue/Recovery Media}

   \begin{itemize}
      \item
      Will offer to mount your filesystems if possible, usually
      at \filelink{/mnt/sysimage}
      \item
      May offer to \textbf{chroot} into that environment.
      \item
      May offer to help install software, either from local
      disk or network
   \end{itemize}

\end{frame}

\cprotect\note{

   The rescue image will ask a number of questions upon
   starting. One of these is whether or not to mount your
   filesystems (if it can).

   If so, they are mounted at somewhere, usually at
   \filelink{/mnt/sysimage}.  You can move to that
   directory to get to your files or you can change into
   that environment with:
   \begin{cmd}
$ sudo chroot /mnt/sysimage
   \end{cmd}
   For a network-based rescue you may also be asked to
   mount \filelink{/mnt/source}.

   You may install software packages from inside
   \textbf{chroot}-ed environment.  You may also be able to
   install them from outside the chrooted environment.  For
   example, on an \textbf{RPM}-based system, by using the
   \texttt{--root} option to specify the location of the
   root directory:
   \begin{cmd}
$ sudo rpm -ivh --force --root=/mnt/sysimage /mnt/source/Packages/vsftpd-2*.rpm
   \end{cmd}

}


