Changeset 673b0d8 for chapter08/grub.xml
- Timestamp:
- 05/03/2004 10:59:46 AM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 0c43171, 2ec64b3, a4a675f
- Parents:
- 287ea55
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/grub.xml
r287ea55 r673b0d8 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [ 3 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 %general-entities; 5 ]> 1 6 <sect1 id="ch-bootable-grub"> 2 7 <title>Making the LFS system bootable</title> 3 <?dbhtml filename="grub.html" dir="chapter08"?> 8 <?dbhtml filename="grub.html"?> 9 10 <indexterm zone="ch-bootable-grub"> 11 <primary sortas="a-Grub">Grub</primary> 12 <secondary>configuring</secondary></indexterm> 4 13 5 14 <para>Your shiny new LFS system is almost complete. One of the last things to 6 15 do is ensure you can boot it. The instructions below apply only to computers of 7 IA-32 architecture, meaning mainstream PCs. Information on "boot loading" for8 other architectures should be available in the usual resource specific 9 locations for those architectures.</para>16 IA-32 architecture, meaning mainstream PCs. Information on <quote>boot 17 loading</quote> for other architectures should be available in the usual 18 resource-specific locations for those architectures.</para> 10 19 11 20 <para>Boot loading can be a complex area. First, a few cautionary words. You … … 14 23 bootable. Please make sure that you have an emergency boot disk ready, so that 15 24 you can rescue your computer if, by any chance, your computer becomes unusable 16 (un bootable).</para>25 (un-bootable).</para> 17 26 18 27 <para>Earlier, we compiled and installed the Grub boot loader software in … … 45 54 46 55 <para>First, tell Grub where to search for its <filename>stage{1,2}</filename> 47 files -- you can use Tabeverywhere to make Grub show the alternatives:</para>56 files -- you can use the Tab key everywhere to make Grub show the alternatives:</para> 48 57 49 58 <screen><userinput>root (hd0,3)</userinput></screen> 50 59 51 <!-- HACK - Force some whitespace to appease tidy -->52 <literallayout></literallayout>53 60 54 61 <warning><para>The following command will overwrite your current boot loader. … … 56 63 using a third party boot manager to manage your MBR (Master Boot Record). In 57 64 this scenario, it would probably make more sense to install Grub into the 58 "boot sector" of the LFS partition, in which case the command would become: 59 <userinput>setup (hd0,3)</userinput>.</para></warning>65 <quote>boot sector</quote> of the LFS partition, in which case this next command 66 would become: <userinput>setup (hd0,3)</userinput>.</para></warning> 60 67 61 <!-- HACK - Force some whitespace to appease tidy -->62 <literallayout></literallayout>63 68 64 <para>T hen tell itto install itself into the MBR (Master Boot Record) of69 <para>Tell Grub to install itself into the MBR (Master Boot Record) of 65 70 <filename>hda</filename>:</para> 66 71 … … 72 77 <screen><userinput>quit</userinput></screen> 73 78 74 <para>Now we need to create a "menu list" file, defining Grub's boot75 menu:</para>79 <para>Now we need to create a <quote>menu list</quote> file, defining Grub's 80 boot menu:</para> 76 81 77 82 <screen><userinput>cat > /boot/grub/menu.lst << "EOF"</userinput> … … 93 98 <userinput>EOF</userinput></screen> 94 99 95 <note><para>By default, Grub will automatically pass a "mem=xxx" command line 96 argument to the kernel. However, Grub occasionally gets the amount of memory 97 wrong which can lead to problems in some circumstances. It's best to disable 98 this functionality and let the kernel determine the amount of memory itself, 99 hence the use of the <emphasis>--no-mem-option</emphasis> above.</para></note> 100 <note><para>By default, Grub will automatically pass a <quote>mem=xxx</quote> 101 command line argument to the kernel. However, Grub occasionally gets the amount 102 of memory wrong which can lead to problems in some circumstances. It's best to 103 disable this functionality and let the kernel determine the amount of memory 104 itself, hence the use of the <emphasis>--no-mem-option</emphasis> above.</para> 105 </note> 100 106 101 107 <para>You may want to add an entry for your host distribution. It might look … … 123 129 124 130 </sect1> 125
Note:
See TracChangeset
for help on using the changeset viewer.