source: BOOK/final-system/x86/grub.xml@ a3d70cc

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a3d70cc was 37ba094c, checked in by Jim Gifford <clfs@…>, 19 years ago

r3673@server: jim | 2006-05-28 22:57:55 -0700
Added: Grub disk geometry patch

  • Property mode set to 100644
File size: 4.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7<sect1 id="ch-system-grub" role="wrap">
8 <?dbhtml filename="grub.html"?>
9
10 <title>GRUB-&grub-version;</title>
11
12 <indexterm zone="ch-system-grub">
13 <primary sortas="a-GRUB">GRUB</primary>
14 </indexterm>
15
16 <sect2 role="package">
17 <title/>
18
19 <para>The GRUB package contains the GRand Unified Bootloader.</para>
20
21 </sect2>
22
23 <sect2 role="installation">
24 <title>Installation of GRUB</title>
25
26 <para os="p1">Sometimes grub under Linux 2.6 doesn't detect the disk geometry correctly,
27 which will result in an error message. The error message is
28 Error 24: Attempt to access block outside partition. The following patch fixes this issue:</para>
29
30<screen os="p2"><userinput>patch -Np1 -i ../&grub-disk-patch;</userinput></screen>
31
32 <para os="a">This package is known to have issues when its default optimization
33 flags (including the <option>-march</option> and <option>-mcpu</option>
34 options) are changed. If any environment variables that override default
35 optimizations have been defined, such as <envar>CFLAGS</envar> and
36 <envar>CXXFLAGS</envar>, unset them when building GRUB.</para>
37
38 <para os="b">Prepare GRUB for compilation:</para>
39
40<screen><userinput>./configure --prefix=/usr</userinput></screen>
41
42 <para os="c">Compile the package:</para>
43
44<screen os="d"><userinput>make</userinput></screen>
45
46 <para os="e">To test the results, issue:
47 <userinput>make check</userinput>.</para>
48
49 <para os="f">Install the package:</para>
50
51<screen os="g"><userinput>make install
52mkdir -v /boot/grub
53cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
54
55 <para os="h">Replace <filename class="directory">i386-pc</filename> with whatever
56 directory is appropriate for the hardware in use.</para>
57
58 <para os="i">The <filename class="directory">i386-pc</filename> directory
59 contains a number of <filename>*stage1_5</filename> files, different
60 ones for different file systems. Review the files available and copy
61 the appropriate ones to the <filename
62 class="directory">/boot/grub</filename> directory. Most users will
63 copy the <filename>e2fs_stage1_5</filename> and/or
64 <filename>reiserfs_stage1_5</filename> files.</para>
65
66 </sect2>
67
68 <sect2 id="contents-grub" role="content">
69 <title>Contents of GRUB</title>
70
71 <segmentedlist>
72 <segtitle>Installed programs</segtitle>
73
74 <seglistitem>
75 <seg>grub, grub-install, grub-md5-crypt, grub-terminfo, and mbchk</seg>
76 </seglistitem>
77 </segmentedlist>
78
79 <variablelist>
80 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
81 <?dbfo list-presentation="list"?>
82 <?dbhtml list-presentation="table"?>
83
84 <varlistentry id="grub">
85 <term><command>grub</command></term>
86 <listitem>
87 <para>The Grand Unified Bootloader's command shell</para>
88 <indexterm zone="ch-system-grub grub">
89 <primary sortas="b-grub">grub</primary>
90 </indexterm>
91 </listitem>
92 </varlistentry>
93
94 <varlistentry id="grub-install">
95 <term><command>grub-install</command></term>
96 <listitem>
97 <para>Installs GRUB on the given device</para>
98 <indexterm zone="ch-system-grub grub-install">
99 <primary sortas="b-grub-install">grub-install</primary>
100 </indexterm>
101 </listitem>
102 </varlistentry>
103
104 <varlistentry id="grub-md5-crypt">
105 <term><command>grub-md5-crypt</command></term>
106 <listitem>
107 <para>Encrypts a password in MD5 format</para>
108 <indexterm zone="ch-system-grub grub-md5-crypt">
109 <primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary>
110 </indexterm>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry id="grub-terminfo">
115 <term><command>grub-terminfo</command></term>
116 <listitem>
117 <para>Generates a terminfo command from a terminfo name; it can be
118 employed if an unknown terminal is being used</para>
119 <indexterm zone="ch-system-grub grub-terminfo">
120 <primary sortas="b-grub-terminfo">grub-terminfo</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry id="mbchk">
126 <term><command>mbchk</command></term>
127 <listitem>
128 <para>Checks the format of a multi-boot kernel</para>
129 <indexterm zone="ch-system-grub mbchk">
130 <primary sortas="b-mbchk">mbchk</primary>
131 </indexterm>
132 </listitem>
133 </varlistentry>
134
135 </variablelist>
136
137 </sect2>
138
139</sect1>
Note: See TracBrowser for help on using the repository browser.