diff options
Diffstat (limited to 'chapter08/grub.xml')
-rw-r--r-- | chapter08/grub.xml | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/chapter08/grub.xml b/chapter08/grub.xml index c8ab79d53..3b67e2896 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -34,23 +34,23 @@ Insert a blank floppy diskette and run the following commands:</para> dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1</userinput></screen> <para>Remove the diskette and store it somewhere safe. Now we'll run the -<userinput>grub</userinput> shell:</para> +<command>grub</command> shell:</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 <emphasis>m</emphasis> the partition number, both starting from zero. This -means, for instance, that partition <filename>hda1</filename> is (hd0,0) to -Grub, and <filename>hdb2</filename> is (hd1,1). In contrast to Linux, Grub +means, for instance, that partition <filename class="partition">hda1</filename> is (hd0,0) to +Grub, and <filename class="partition">hdb2</filename> is (hd1,1). In contrast to Linux, Grub doesn't consider CD-ROM drives to be hard drives, so if you have a CD on -<filename>hdb</filename>, for example, and a second hard drive on -<filename>hdc</filename>, that second hard drive would still be (hd1).</para> +<filename class="partition">hdb</filename>, for example, and a second hard drive on +<filename class="partition">hdc</filename>, that second hard drive would still be (hd1).</para> <para>Using the above information, determine the appropriate designator for your root partition (or boot partition, if you use a separate one). For the following example, we'll assume your root (or separate boot) partition is -<filename>hda4</filename>.</para> +<filename class="partition">hda4</filename>.</para> <para>First, tell Grub where to search for its <filename>stage{1,2}</filename> files -- you can use the Tab key everywhere to make Grub show the alternatives:</para> @@ -67,19 +67,19 @@ would become: <userinput>setup (hd0,3)</userinput>.</para></warning> <para>Tell Grub to install itself into the MBR (Master Boot Record) of -<filename>hda</filename>:</para> +<filename class="partition">hda</filename>:</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 is to it:</para> +<filename class="directory">/boot/grub</filename>. That's all there is to it:</para> <screen><userinput>quit</userinput></screen> <para>Now we need to create a <quote>menu list</quote> file, defining Grub's boot menu:</para> -<screen><userinput>cat > /boot/grub/menu.lst << "EOF"</userinput> +<screen><userinput>cat > /boot/grub/menu.lst << "EOF" # Begin /boot/grub/menu.lst # By default boot the first menu entry. @@ -95,33 +95,33 @@ color green/black light-green/black title LFS &version; root (hd0,3) kernel /boot/lfskernel-&linux-version; root=/dev/hda4 -<userinput>EOF</userinput></screen> +EOF</userinput></screen> -<note><para>By default, Grub will automatically pass a <quote>mem=xxx</quote> +<note><para>By default, Grub will automatically pass a <parameter>mem=xxx</parameter> command line argument to the kernel. However, Grub occasionally gets the amount of memory wrong which can lead to problems in some circumstances. It's best to disable this functionality and let the kernel determine the amount of memory -itself, hence the use of the <emphasis>--no-mem-option</emphasis> above.</para> +itself, hence the use of the <parameter>--no-mem-option</parameter> above.</para> </note> <para>You may want to add an entry for your host distribution. It might look like this:</para> -<screen><userinput>cat >> /boot/grub/menu.lst << "EOF"</userinput> +<screen><userinput>cat >> /boot/grub/menu.lst << "EOF" title Red Hat root (hd0,2) kernel /boot/kernel-2.4.20 root=/dev/hda3 initrd /boot/initrd-2.4.20 -<userinput>EOF</userinput></screen> +EOF</userinput></screen> <para>Also, if you happen to dual-boot Windows, the following entry should allow booting it:</para> -<screen><userinput>cat >> /boot/grub/menu.lst << "EOF"</userinput> +<screen><userinput>cat >> /boot/grub/menu.lst << "EOF" title Windows rootnoverify (hd0,0) chainloader +1 -<userinput>EOF</userinput></screen> +EOF</userinput></screen> <para>If <command>info grub</command> doesn't tell you all you want to know, you can find more information regarding Grub on its website, located at: |