diff options
Diffstat (limited to 'chapter08/grub.xml')
-rw-r--r-- | chapter08/grub.xml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/chapter08/grub.xml b/chapter08/grub.xml index 426457deb..af69909b6 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -6,7 +6,7 @@ we need to ensure we can boot it. To do this, we will run the <userinput>grub</userinput> program.</para> -<para><screen><userinput>grub</userinput></screen></para> +<screen><userinput>grub</userinput></screen> <para>Grub uses its own naming structure for drives and partitions, in the form of (hdn,m), where <emphasis>n</emphasis> is the hard drive number, and @@ -24,22 +24,22 @@ partition is <filename>hda4</filename>.</para> <para>First, tell Grub where to search for its <filename>stage{1,2}</filename> files -- you can use Tab everywhere to make Grub show the alternatives:</para> -<para><screen><userinput>root (hd0,3)</userinput></screen></para> +<screen><userinput>root (hd0,3)</userinput></screen> <para>Then tell it to install itself into the MBR (Master Boot Record) of <filename>hda</filename>:</para> -<para><screen><userinput>setup (hd0)</userinput></screen></para> +<screen><userinput>setup (hd0)</userinput></screen> <para>If all is well, Grub will have reported finding its files in <filename>/boot/grub</filename>. That's all there was to it:</para> -<para><screen><userinput>quit</userinput></screen></para> +<screen><userinput>quit</userinput></screen> <para>Now we need to create the <filename>menu.lst</filename> file, which defines Grub's boot menu:</para> -<para><screen><userinput>cat > /boot/grub/menu.lst << "EOF"</userinput> +<screen><userinput>cat > /boot/grub/menu.lst << "EOF"</userinput> # Begin /boot/grub/menu.lst # By default boot the first menu entry. @@ -55,26 +55,26 @@ color green/black light-green/black title LFS 5.0 root (hd0,3) kernel /boot/lfskernel root=/dev/hda4 ro -<userinput>EOF</userinput></screen></para> +<userinput>EOF</userinput></screen> <para>You may want to add an entry for your host distribution. It might look like this:</para> -<para><screen><userinput>cat >> /boot/grub/menu.lst << "EOF"</userinput> +<screen><userinput>cat >> /boot/grub/menu.lst << "EOF"</userinput> title Red Hat root (hd0,2) kernel /boot/kernel-2.4.20 root=/dev/hda3 ro initrd /boot/initrd-2.4.20 -<userinput>EOF</userinput></screen></para> +<userinput>EOF</userinput></screen> <para>Also, if you happen to dual-boot Windows, the following entry should allow booting it:</para> -<para><screen><userinput>cat >> /boot/grub/menu.lst << "EOF"</userinput> +<screen><userinput>cat >> /boot/grub/menu.lst << "EOF"</userinput> title Windows rootnoverify (hd0,0) chainloader +1 -<userinput>EOF</userinput></screen></para> +<userinput>EOF</userinput></screen> <para>If <userinput>info grub</userinput> doesn't tell you all you want to know, you can find more information regarding Grub on its website, located at: |