- Timestamp:
- 07/02/2005 06:37:58 PM (19 years ago)
- Branches:
- 6.1, 6.1.1
- Children:
- 68b786c
- Parents:
- b8a3fb2
- Location:
- chapter08
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/grub.xml
rb8a3fb2 r82fd24a 9 9 10 10 <indexterm zone="ch-bootable-grub"> 11 <primary sortas="a-Grub">G rub</primary>11 <primary sortas="a-Grub">GRUB</primary> 12 12 <secondary>configuring</secondary></indexterm> 13 13 … … 26 26 unusable (un-bootable).</para> 27 27 28 <para>Earlier, we compiled and installed the G rubboot loader software28 <para>Earlier, we compiled and installed the GRUB boot loader software 29 29 in preparation for this step. The procedure involves writing some 30 special G rubfiles to specific locations on the hard drive. We highly31 recommend creating a G rubboot floppy diskette as a backup. Insert a30 special GRUB files to specific locations on the hard drive. We highly 31 recommend creating a GRUB boot floppy diskette as a backup. Insert a 32 32 blank floppy diskette and run the following commands:</para> 33 33 … … 40 40 <screen><userinput>grub</userinput></screen> 41 41 42 <para>G rubuses its own naming structure for drives and partitions in42 <para>GRUB uses its own naming structure for drives and partitions in 43 43 the form of <emphasis>(hdn,m)</emphasis>, where <emphasis>n</emphasis> 44 44 is the hard drive number and <emphasis>m</emphasis> is the partition 45 45 number, both starting from zero. For example, partition <filename 46 46 class="partition">hda1</filename> is <emphasis>(hd0,0)</emphasis> to 47 G ruband <filename class="partition">hdb3</filename> is48 <emphasis>(hd1,2)</emphasis>. In contrast to Linux, G rubdoes not47 GRUB and <filename class="partition">hdb3</filename> is 48 <emphasis>(hd1,2)</emphasis>. In contrast to Linux, GRUB does not 49 49 consider CD-ROM drives to be hard drives. For example, if using a CD 50 50 on <filename class="partition">hdb</filename> and a second hard drive … … 58 58 class="partition">hda4</filename>.</para> 59 59 60 <para>Tell G rubwhere to search for its60 <para>Tell GRUB where to search for its 61 61 <filename>stage{1,2}</filename> files. The Tab key can be used 62 everywhere to make G rubshow the alternatives:</para>62 everywhere to make GRUB show the alternatives:</para> 63 63 64 64 <screen><userinput>root (hd0,3)</userinput></screen> … … 68 68 using a third party boot manager to manage the Master Boot Record 69 69 (MBR). In this scenario, it would make more sense to install 70 G rubinto the <quote>boot sector</quote> of the LFS partition. In this70 GRUB into the <quote>boot sector</quote> of the LFS partition. In this 71 71 case, this next command would become <userinput>setup 72 72 (hd0,3)</userinput>.</para></warning> 73 73 74 <para>Tell G rubto install itself into the MBR of74 <para>Tell GRUB to install itself into the MBR of 75 75 <filename class="partition">hda</filename>:</para> 76 76 77 77 <screen><userinput>setup (hd0)</userinput></screen> 78 78 79 <para>If all went well, G rubwill have reported finding its files in79 <para>If all went well, GRUB will have reported finding its files in 80 80 <filename class="directory">/boot/grub</filename>. That's all there is 81 81 to it. Quit the <command>grub</command> shell:</para> … … 83 83 <screen><userinput>quit</userinput></screen> 84 84 85 <para>Create a <quote>menu list</quote> file defining G rub's boot menu:</para>85 <para>Create a <quote>menu list</quote> file defining GRUB's boot menu:</para> 86 86 87 87 <screen><userinput>cat > /boot/grub/menu.lst << "EOF" … … 123 123 124 124 <para>If <command>info grub</command> does not provide all necessary material, additional 125 information regarding G rubis located on its website at:125 information regarding GRUB is located on its website at: 126 126 <ulink url="http://www.gnu.org/software/grub/"/>.</para> 127 127 128 <para>The FHS stipulates that G rub's <filename>menu.lst</filename> file should be symlinked to128 <para>The FHS stipulates that GRUB's <filename>menu.lst</filename> file should be symlinked to 129 129 <filename class="symlink">/etc/grub/menu.lst</filename>. To satisfy this requirement, issue the 130 130 following command:</para> -
chapter08/introduction.xml
rb8a3fb2 r82fd24a 10 10 <para>It is time to make the LFS system bootable. This chapter 11 11 discusses creating an <filename>fstab</filename> file, building a 12 kernel for the new LFS system, and installing the G rubboot loader so12 kernel for the new LFS system, and installing the GRUB boot loader so 13 13 that the LFS system can be selected for booting at startup.</para> 14 14
Note:
See TracChangeset
for help on using the changeset viewer.