\contentsline {section}{\numberline {1}Aim}{2}{section.1} \contentsline {section}{\numberline {2}What You Will Do}{2}{section.2} \contentsline {section}{\numberline {3}Background}{2}{section.3} \contentsline {subsection}{\numberline {3.1}Installing \textsf {grub}\xspace in MBR from a floppy, and from the OS}{3}{subsection.3.1} \contentsline {subsubsection}{\numberline {3.1.1}Real and Protected Mode: OS cannot run BIOS routines}{3}{subsubsection.3.1.1} \contentsline {subsubsection}{\numberline {3.1.2}Making sure \textsf {grub}\xspace knows what the BIOS will do}{3}{subsubsection.3.1.2} \contentsline {subsubsection}{\numberline {3.1.3}Using \texttt {grub-install} from the OS: the quick but less reliable way}{3}{subsubsection.3.1.3} \contentsline {subsection}{\numberline {3.2}The way \textsf {grub}\xspace refers to devices}{3}{subsection.3.2} \contentsline {subsection}{\numberline {3.3}The Structure of the Master Boot Record}{4}{subsection.3.3} \contentsline {subsection}{\numberline {3.4}What does \textsf {grub}\xspace do when you install it using \texttt {setup}?}{4}{subsection.3.4} \contentsline {subsubsection}{\numberline {3.4.1}using \texttt {find} in \textsf {grub}\xspace to locate your Linux partition containing your \texttt {/boot} directory}{4}{subsubsection.3.4.1} \contentsline {subsubsection}{\numberline {3.4.2}The \textsf {grub}\xspace setup command}{5}{subsubsection.3.4.2} \contentsline {subsection}{\numberline {3.5}How does \textsf {grub}\xspace work when it boots your computer from the hard disk?}{5}{subsection.3.5} \contentsline {subsection}{\numberline {3.6}Reading the Documentation for \textsf {grub}\xspace }{5}{subsection.3.6} \contentsline {subsection}{\numberline {3.7}The \textsf {grub}\xspace Configuration File \texttt {/boot/grub/grub.conf}}{5}{subsection.3.7} \contentsline {subsection}{\numberline {3.8}Chainloading: Can I Install \textsf {grub}\xspace Anywhere Besides the MBR?}{7}{subsection.3.8} \contentsline {subsubsection}{\numberline {3.8.1}Example: many Linux installations on one hard disk: part time classes}{7}{subsubsection.3.8.1} \contentsline {subsection}{\numberline {3.9}Runlevels and \texttt {init}}{9}{subsection.3.9} \contentsline {subsubsection}{\numberline {3.9.1}Single User Mode}{9}{subsubsection.3.9.1} \contentsline {subsubsection}{\numberline {3.9.2}How to Change Runlevels with \texttt {init}}{9}{subsubsection.3.9.2} \contentsline {section}{\numberline {4}Procedure}{10}{section.4} \contentsline {subsection}{\numberline {4.1}Creating a Grub Installation Disk}{10}{subsection.4.1} \contentsline {subsection}{\numberline {4.2}Using the \textsf {grub}\xspace installation disk to install \textsf {grub}\xspace into the MBR}{11}{subsection.4.2} \contentsline {subsection}{\numberline {4.3}Destroying your Master Boot Record!}{12}{subsection.4.3} \contentsline {subsection}{\numberline {4.4}Recovering From Disaster}{13}{subsection.4.4} \contentsline {subsection}{\numberline {4.5}Booting an operating system interactively with a \textsf {grub}\xspace installation disk}{13}{subsection.4.5} \contentsline {subsubsection}{\numberline {4.5.1}Overcoming a limitation of the Windows Bootloader}{13}{subsubsection.4.5.1} \contentsline {subsubsection}{\numberline {4.5.2}Experiments with \textsf {grub}\xspace }{13}{subsubsection.4.5.2} \contentsline {subsection}{\numberline {4.6}Setting up a Menu to Boot other Operating Systems}{14}{subsection.4.6} \contentsline {subsection}{\numberline {4.7}Investigating Runlevels}{14}{subsection.4.7} \contentsline {subsubsection}{\numberline {4.7.1}Booting into Runlevel 1, or Single User Mode}{14}{subsubsection.4.7.1} \contentsline {subsubsection}{\numberline {4.7.2}Examining single user mode}{15}{subsubsection.4.7.2} \contentsline {subsubsection}{\numberline {4.7.3}Investigating the Runlevels}{15}{subsubsection.4.7.3} \contentsline {subsubsection}{\numberline {4.7.4}The Runlevel Scripts}{16}{subsubsection.4.7.4} \contentsline {section}{Index}{16}{Item.62}