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 | ]>
|
---|
6 | <sect1 id="ch-system-grub" xreflabel="Grub" role="wrap">
|
---|
7 | <title>Grub-&grub-version;</title>
|
---|
8 | <?dbhtml filename="grub.html"?>
|
---|
9 |
|
---|
10 | <indexterm zone="ch-system-grub"><primary sortas="a-Grub">Grub</primary></indexterm>
|
---|
11 |
|
---|
12 | <sect2 role="package"><title/>
|
---|
13 | <para>The Grub package contains the GRand Unified Bootloader.</para>
|
---|
14 |
|
---|
15 | <segmentedlist>
|
---|
16 | <segtitle>&buildtime;</segtitle>
|
---|
17 | <segtitle>&diskspace;</segtitle>
|
---|
18 | <seglistitem><seg>0.2 SBU</seg><seg>10 MB</seg></seglistitem>
|
---|
19 | </segmentedlist>
|
---|
20 |
|
---|
21 | <segmentedlist>
|
---|
22 | <segtitle>Grub installation depends on</segtitle>
|
---|
23 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
24 | GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
|
---|
25 | </segmentedlist>
|
---|
26 | </sect2>
|
---|
27 |
|
---|
28 | <sect2 role="installation">
|
---|
29 | <title>Installation of Grub</title>
|
---|
30 |
|
---|
31 | <para>This package is known to behave badly when you have changed its default
|
---|
32 | optimization flags (including the <parameter>-march</parameter> and
|
---|
33 | <parameter>-mcpu</parameter> options). Therefore, if you
|
---|
34 | have defined any environment variables that override default optimizations,
|
---|
35 | such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
|
---|
36 | Grub.</para>
|
---|
37 |
|
---|
38 | <para>Prepare Grub for compilation:</para>
|
---|
39 |
|
---|
40 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
41 |
|
---|
42 | <para>Now compile the rest of the package:</para>
|
---|
43 |
|
---|
44 | <screen><userinput>make</userinput></screen>
|
---|
45 |
|
---|
46 | <para>To test the results, issue:
|
---|
47 | <userinput>make check</userinput>.</para>
|
---|
48 |
|
---|
49 | <para>Now install it:</para>
|
---|
50 |
|
---|
51 | <screen><userinput>make install
|
---|
52 | mkdir /boot/grub
|
---|
53 | cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
|
---|
54 |
|
---|
55 | <para>Replace <filename class="directory">i386-pc</filename> with whatever
|
---|
56 | directory is appropriate for your hardware.</para>
|
---|
57 |
|
---|
58 | <para>The <filename class="directory">i386-pc</filename> directory also
|
---|
59 | contains a number of <filename>*stage1_5</filename> files, different ones
|
---|
60 | for different file systems. Have a look at the ones available and copy the
|
---|
61 | appropriate ones to the <filename class="directory">/boot/grub</filename>
|
---|
62 | directory. Most people will copy the <filename>e2fs_stage1_5</filename>
|
---|
63 | and/or <filename>reiserfs_stage1_5</filename> files.</para>
|
---|
64 |
|
---|
65 | </sect2>
|
---|
66 |
|
---|
67 |
|
---|
68 | <sect2 id="contents-grub" role="content"><title>Contents of Grub</title>
|
---|
69 |
|
---|
70 | <segmentedlist>
|
---|
71 | <segtitle>Installed programs</segtitle>
|
---|
72 | <seglistitem><seg>grub, grub-install,
|
---|
73 | grub-md5-crypt, grub-terminfo and mbchk</seg></seglistitem>
|
---|
74 | </segmentedlist>
|
---|
75 |
|
---|
76 | <variablelist><title>Short descriptions</title>
|
---|
77 |
|
---|
78 | <varlistentry id="grub">
|
---|
79 | <term><command>grub</command></term>
|
---|
80 | <listitem>
|
---|
81 | <indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
|
---|
82 | <para>is the GRand Unified Bootloader's command shell.</para>
|
---|
83 | </listitem>
|
---|
84 | </varlistentry>
|
---|
85 |
|
---|
86 | <varlistentry id="grub-install">
|
---|
87 | <term><command>grub-install</command></term>
|
---|
88 | <listitem>
|
---|
89 | <indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
|
---|
90 | <para>installs GRUB on the given device.</para>
|
---|
91 | </listitem>
|
---|
92 | </varlistentry>
|
---|
93 |
|
---|
94 | <varlistentry id="grub-md5-crypt">
|
---|
95 | <term><command>grub-md5-crypt</command></term>
|
---|
96 | <listitem>
|
---|
97 | <indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
|
---|
98 | <para>encrypts a password in MD5 format.</para>
|
---|
99 | </listitem>
|
---|
100 | </varlistentry>
|
---|
101 |
|
---|
102 | <varlistentry id="grub-terminfo">
|
---|
103 | <term><command>grub-terminfo</command></term>
|
---|
104 | <listitem>
|
---|
105 | <indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
|
---|
106 | <para>generates a terminfo command from a
|
---|
107 | terminfo name. It can be used if you have an uncommon terminal.</para>
|
---|
108 | </listitem>
|
---|
109 | </varlistentry>
|
---|
110 |
|
---|
111 | <varlistentry id="mbchk">
|
---|
112 | <term><command>mbchk</command></term>
|
---|
113 | <listitem>
|
---|
114 | <indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
|
---|
115 | <para>checks the format of a multi-boot kernel.</para>
|
---|
116 | </listitem>
|
---|
117 | </varlistentry>
|
---|
118 | </variablelist>
|
---|
119 |
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 |
|
---|
123 | </sect1>
|
---|