Changeset b78c747 for chapter08/grub.xml


Ignore:
Timestamp:
12/18/2005 01:44:24 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
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.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, 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:
d781ffb
Parents:
7686ca6
Message:

Chapter08 indentation.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7229 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/grub.xml

    r7686ca6 rb78c747  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
     2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
     3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
    34  <!ENTITY % general-entities SYSTEM "../general.ent">
    45  %general-entities;
    56]>
     7
    68<sect1 id="ch-bootable-grub">
    7 <title>Making the LFS System Bootable</title>
    8 <?dbhtml filename="grub.html"?>
     9  <?dbhtml filename="grub.html"?>
    910
    10 <indexterm zone="ch-bootable-grub">
    11 <primary sortas="a-Grub">GRUB</primary>
    12 <secondary>configuring</secondary></indexterm>
     11  <title>Making the LFS System Bootable</title>
    1312
    14 <para>Your shiny new LFS system is almost complete. One of the last
    15 things to do is to ensure that the system can be properly booted. The
    16 instructions below apply only to computers of IA-32 architecture,
    17 meaning mainstream PCs. Information on <quote>boot loading</quote> for
    18 other architectures should be available in the usual resource-specific
    19 locations for those architectures.</para>
     13  <indexterm zone="ch-bootable-grub">
     14    <primary sortas="a-Grub">GRUB</primary>
     15    <secondary>configuring</secondary>
     16  </indexterm>
    2017
    21 <para>Boot loading can be a complex area, so a few cautionary
    22 words are in order. Be familiar with the current boot loader and any other
    23 operating systems present on the hard drive(s) that need to be
    24 bootable. Make sure that an emergency boot disk is ready to
    25 <quote>rescue</quote> the computer if the computer becomes
    26 unusable (un-bootable).</para>
     18  <para>Your shiny new LFS system is almost complete. One of the last
     19  things to do is to ensure that the system can be properly booted. The
     20  instructions below apply only to computers of IA-32 architecture,
     21  meaning mainstream PCs. Information on <quote>boot loading</quote> for
     22  other architectures should be available in the usual resource-specific
     23  locations for those architectures.</para>
    2724
    28 <para>Earlier, we compiled and installed the GRUB boot loader software
    29 in preparation for this step. The procedure involves writing some
    30 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 blank floppy diskette and run the following commands:</para>
     25  <para>Boot loading can be a complex area, so a few cautionary
     26  words are in order. Be familiar with the current boot loader and any other
     27  operating systems present on the hard drive(s) that need to be
     28  bootable. Make sure that an emergency boot disk is ready to
     29  <quote>rescue</quote> the computer if the computer becomes
     30  unusable (un-bootable).</para>
     31
     32  <para>Earlier, we compiled and installed the GRUB boot loader software
     33  in preparation for this step. The procedure involves writing some
     34  special GRUB files to specific locations on the hard drive. We highly
     35  recommend creating a GRUB boot floppy diskette as a backup. Insert a
     36  blank floppy diskette and run the following commands:</para>
    3337
    3438<screen><userinput>dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
    3539dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1</userinput></screen>
    3640
    37 <para>Remove the diskette and store it somewhere safe. Now, run the
    38 <command>grub</command> shell:</para>
     41  <para>Remove the diskette and store it somewhere safe. Now, run the
     42  <command>grub</command> shell:</para>
    3943
    4044<screen><userinput>grub</userinput></screen>
    4145
    42 <para>GRUB uses its own naming structure for drives and partitions in
    43 the form of <emphasis>(hdn,m)</emphasis>, where <emphasis>n</emphasis>
    44 is the hard drive number and <emphasis>m</emphasis> is the partition
    45 number, both starting from zero. For example, partition <filename
    46 class="partition">hda1</filename> is <emphasis>(hd0,0)</emphasis> to
    47 GRUB and <filename class="partition">hdb3</filename> is
    48 <emphasis>(hd1,2)</emphasis>. In contrast to Linux, GRUB does not
    49 consider CD-ROM drives to be hard drives. For example, if using a CD
    50 on <filename class="partition">hdb</filename> and a second hard drive
    51 on <filename class="partition">hdc</filename>, that second hard drive
    52 would still be <emphasis>(hd1)</emphasis>.</para>
     46  <para>GRUB uses its own naming structure for drives and partitions in
     47  the form of <emphasis>(hdn,m)</emphasis>, where <emphasis>n</emphasis>
     48  is the hard drive number and <emphasis>m</emphasis> is the partition
     49  number, both starting from zero. For example, partition <filename
     50  class="partition">hda1</filename> is <emphasis>(hd0,0)</emphasis> to
     51  GRUB and <filename class="partition">hdb3</filename> is
     52  <emphasis>(hd1,2)</emphasis>. In contrast to Linux, GRUB does not
     53  consider CD-ROM drives to be hard drives. For example, if using a CD
     54  on <filename class="partition">hdb</filename> and a second hard drive
     55  on <filename class="partition">hdc</filename>, that second hard drive
     56  would still be <emphasis>(hd1)</emphasis>.</para>
    5357
    54 <para>Using the above information, determine the appropriate
    55 designator for the root partition (or boot partition, if a separate
    56 one is used). For the following example, it is assumed that the root
    57 (or separate boot) partition is <filename
    58 class="partition">hda4</filename>.</para>
     58  <para>Using the above information, determine the appropriate
     59  designator for the root partition (or boot partition, if a separate
     60  one is used). For the following example, it is assumed that the root
     61  (or separate boot) partition is <filename
     62  class="partition">hda4</filename>.</para>
    5963
    60 <para>Tell GRUB where to search for its
    61 <filename>stage{1,2}</filename> files. The Tab key can be used
    62 everywhere to make GRUB show the alternatives:</para>
     64  <para>Tell GRUB where to search for its
     65  <filename>stage{1,2}</filename> files. The Tab key can be used
     66  everywhere to make GRUB show the alternatives:</para>
    6367
    6468<screen><userinput>root (hd0,3)</userinput></screen>
    6569
    66 <warning><para>The following command will overwrite the current boot
    67 loader. Do not run the command if this is not desired, for example, if
    68 using a third party boot manager to manage the Master Boot Record
    69 (MBR). In this scenario, it would make more sense to install
    70 GRUB into the <quote>boot sector</quote> of the LFS partition. In this
    71 case, this next command would become <userinput>setup
    72 (hd0,3)</userinput>.</para></warning>
     70  <warning>
     71    <para>The following command will overwrite the current boot loader. Do not
     72    run the command if this is not desired, for example, if using a third party
     73    boot manager to manage the Master Boot Record (MBR). In this scenario, it
     74    would make more sense to install GRUB into the <quote>boot sector</quote>
     75    of the LFS partition. In this case, this next command would become
     76    <userinput>setup (hd0,3)</userinput>.</para>
     77  </warning>
    7378
    74 <para>Tell GRUB to install itself into the MBR of
    75 <filename class="partition">hda</filename>:</para>
     79  <para>Tell GRUB to install itself into the MBR of
     80  <filename class="partition">hda</filename>:</para>
    7681
    7782<screen><userinput>setup (hd0)</userinput></screen>
    7883
    79 <para>If all went well, GRUB will have reported finding its files in
    80 <filename class="directory">/boot/grub</filename>. That's all there is
    81 to it. Quit the <command>grub</command> shell:</para>
     84  <para>If all went well, GRUB will have reported finding its files in
     85  <filename class="directory">/boot/grub</filename>. That's all there is
     86  to it. Quit the <command>grub</command> shell:</para>
    8287
    8388<screen><userinput>quit</userinput></screen>
    8489
    85 <para>Create a <quote>menu list</quote> file defining GRUB's boot menu:</para>
     90  <para>Create a <quote>menu list</quote> file defining GRUB's boot menu:</para>
    8691
    8792<screen><userinput>cat &gt; /boot/grub/menu.lst &lt;&lt; "EOF"
     
    103108EOF</userinput></screen>
    104109
    105 <para>Add an entry for the host distribution if desired. It might look
    106 like this:</para>
     110  <para>Add an entry for the host distribution if desired. It might look
     111  like this:</para>
    107112
    108113<screen><userinput>cat &gt;&gt; /boot/grub/menu.lst &lt;&lt; "EOF"
     
    113118EOF</userinput></screen>
    114119
    115 <para>If dual-booting Windows, the following entry will allow
    116 booting it:</para>
     120  <para>If dual-booting Windows, the following entry will allow
     121  booting it:</para>
    117122
    118123<screen><userinput>cat &gt;&gt; /boot/grub/menu.lst &lt;&lt; "EOF"
     
    122127EOF</userinput></screen>
    123128
    124 <para>If <command>info grub</command> does not provide all necessary material, additional
    125 information regarding GRUB is located on its website at:
    126 <ulink url="http://www.gnu.org/software/grub/"/>.</para>
     129  <para>If <command>info grub</command> does not provide all necessary material,
     130  additional information regarding GRUB is located on its website at:
     131  <ulink url="http://www.gnu.org/software/grub/"/>.</para>
    127132
    128 <para>The FHS stipulates that GRUB's <filename>menu.lst</filename> file should be symlinked to
    129 <filename class="symlink">/etc/grub/menu.lst</filename>.  To satisfy this requirement, issue the
    130 following command:</para>
     133  <para>The FHS stipulates that GRUB's <filename>menu.lst</filename> file should
     134  be symlinked to <filename class="symlink">/etc/grub/menu.lst</filename>. To
     135  satisfy this requirement, issue the following command:</para>
    131136
    132137<screen><userinput>mkdir -v /etc/grub &amp;&amp;
     
    134139
    135140</sect1>
    136 
Note: See TracChangeset for help on using the changeset viewer.