[673b0d8] | 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 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-grub" xreflabel="Grub" role="wrap">
|
---|
[673b0d8] | 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>
|
---|
[955533b] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Grub package contains the GRand Unified Bootloader.</para>
|
---|
| 14 |
|
---|
[a001133] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
| 18 | <seglistitem><seg>0.2 SBU</seg><seg>10 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
[673b0d8] | 20 |
|
---|
[a001133] | 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>
|
---|
[955533b] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[73aedd1d] | 29 | <title>Installation of Grub</title>
|
---|
| 30 |
|
---|
| 31 | <para>This package is known to behave badly when you have changed its default
|
---|
[ef57e3b] | 32 | optimization flags (including the <parameter>-march</parameter> and
|
---|
| 33 | <parameter>-mcpu</parameter> options). Therefore, if you
|
---|
[73aedd1d] | 34 | have defined any environment variables that override default optimizations,
|
---|
[673b0d8] | 35 | such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
|
---|
[73aedd1d] | 36 | Grub.</para>
|
---|
| 37 |
|
---|
[0fa9275] | 38 | <para>Prepare Grub for compilation:</para>
|
---|
[9dfc02f] | 39 |
|
---|
[0fa9275] | 40 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
[9dfc02f] | 41 |
|
---|
| 42 | <para>Now compile the rest of the package:</para>
|
---|
[73aedd1d] | 43 |
|
---|
| 44 | <screen><userinput>make</userinput></screen>
|
---|
| 45 |
|
---|
[9dfc02f] | 46 | <para>To test the results, issue:
|
---|
| 47 | <userinput>make check</userinput>.</para>
|
---|
| 48 |
|
---|
[673b0d8] | 49 | <para>Now install it:</para>
|
---|
[73aedd1d] | 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
|
---|
[ab3b93b] | 60 | for different file systems. Have a look at the ones available and copy the
|
---|
[73aedd1d] | 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>
|
---|
[955533b] | 66 |
|
---|
[5888299] | 67 |
|
---|
[c6cb3aa] | 68 | <sect2 id="contents-grub" role="content"><title>Contents of Grub</title>
|
---|
[673b0d8] | 69 |
|
---|
[c6cb3aa] | 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>
|
---|
[673b0d8] | 75 |
|
---|
[c6cb3aa] | 76 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 77 |
|
---|
[b8a819f] | 78 | <varlistentry id="grub">
|
---|
| 79 | <term><command>grub</command></term>
|
---|
[c6cb3aa] | 80 | <listitem>
|
---|
[673b0d8] | 81 | <indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
|
---|
[c6cb3aa] | 82 | <para>is the GRand Unified Bootloader's command shell.</para>
|
---|
| 83 | </listitem>
|
---|
| 84 | </varlistentry>
|
---|
[73aedd1d] | 85 |
|
---|
[b8a819f] | 86 | <varlistentry id="grub-install">
|
---|
| 87 | <term><command>grub-install</command></term>
|
---|
[c6cb3aa] | 88 | <listitem>
|
---|
[673b0d8] | 89 | <indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
|
---|
[c6cb3aa] | 90 | <para>installs GRUB on the given device.</para>
|
---|
| 91 | </listitem>
|
---|
| 92 | </varlistentry>
|
---|
[673b0d8] | 93 |
|
---|
[b8a819f] | 94 | <varlistentry id="grub-md5-crypt">
|
---|
| 95 | <term><command>grub-md5-crypt</command></term>
|
---|
[c6cb3aa] | 96 | <listitem>
|
---|
[673b0d8] | 97 | <indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
|
---|
[c6cb3aa] | 98 | <para>encrypts a password in MD5 format.</para>
|
---|
| 99 | </listitem>
|
---|
| 100 | </varlistentry>
|
---|
[673b0d8] | 101 |
|
---|
[b8a819f] | 102 | <varlistentry id="grub-terminfo">
|
---|
| 103 | <term><command>grub-terminfo</command></term>
|
---|
[c6cb3aa] | 104 | <listitem>
|
---|
[673b0d8] | 105 | <indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
|
---|
[c6cb3aa] | 106 | <para>generates a terminfo command from a
|
---|
[673b0d8] | 107 | terminfo name. It can be used if you have an uncommon terminal.</para>
|
---|
[c6cb3aa] | 108 | </listitem>
|
---|
| 109 | </varlistentry>
|
---|
[673b0d8] | 110 |
|
---|
[b8a819f] | 111 | <varlistentry id="mbchk">
|
---|
| 112 | <term><command>mbchk</command></term>
|
---|
[c6cb3aa] | 113 | <listitem>
|
---|
[673b0d8] | 114 | <indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
|
---|
[c6cb3aa] | 115 | <para>checks the format of a multi-boot kernel.</para>
|
---|
| 116 | </listitem>
|
---|
| 117 | </varlistentry>
|
---|
| 118 | </variablelist>
|
---|
[673b0d8] | 119 |
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 |
|
---|
| 123 | </sect1>
|
---|