2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect1 id="ch-system-grub" xreflabel="Grub" role="wrap">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>Grub-&grub-version;</title>
|
|
|
|
<?dbhtml filename="grub.html"?>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-grub"><primary sortas="a-Grub">Grub</primary></indexterm>
|
2003-09-11 22:35:35 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="package"><title/>
|
2004-01-12 23:23:50 +00:00
|
|
|
<para>The Grub package contains the GRand Unified Bootloader.</para>
|
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
<seglistitem><seg>0.2 SBU</seg><seg>10 MB</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Grub installation depends on</segtitle>
|
|
|
|
<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
|
|
|
GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
2003-09-11 22:35:35 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="installation">
|
2003-11-01 22:31:50 +00:00
|
|
|
<title>Installation of Grub</title>
|
|
|
|
|
|
|
|
<para>This package is known to behave badly when you have changed its default
|
2004-06-19 13:04:20 +01:00
|
|
|
optimization flags (including the <parameter>-march</parameter> and
|
|
|
|
<parameter>-mcpu</parameter> options). Therefore, if you
|
2003-11-01 22:31:50 +00:00
|
|
|
have defined any environment variables that override default optimizations,
|
2004-05-03 11:59:46 +01:00
|
|
|
such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
|
2003-11-01 22:31:50 +00:00
|
|
|
Grub.</para>
|
|
|
|
|
2004-06-11 16:49:18 +01:00
|
|
|
<para>Prepare Grub for compilation:</para>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2004-06-11 16:49:18 +01:00
|
|
|
<screen><userinput>./configure --prefix=/usr</userinput></screen>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
|
|
|
<para>Now compile the rest of the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2004-05-03 22:28:58 +01:00
|
|
|
<para>To test the results, issue:
|
|
|
|
<userinput>make check</userinput>.</para>
|
|
|
|
|
2004-09-28 16:07:07 +01:00
|
|
|
<para>Note that the test results will always give the error
|
|
|
|
<quote>ufs2_stage1_5 is too big</quote>. This is due to a compiler issue,
|
|
|
|
but can be ignored unless you plan to boot from a UFS partition, normally only
|
|
|
|
used by Sun workstations.
|
|
|
|
</para>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>Now install it:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install
|
|
|
|
mkdir /boot/grub
|
|
|
|
cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
|
|
|
|
|
|
|
|
<para>Replace <filename class="directory">i386-pc</filename> with whatever
|
|
|
|
directory is appropriate for your hardware.</para>
|
|
|
|
|
|
|
|
<para>The <filename class="directory">i386-pc</filename> directory also
|
|
|
|
contains a number of <filename>*stage1_5</filename> files, different ones
|
2004-01-31 15:07:36 +00:00
|
|
|
for different file systems. Have a look at the ones available and copy the
|
2003-11-01 22:31:50 +00:00
|
|
|
appropriate ones to the <filename class="directory">/boot/grub</filename>
|
|
|
|
directory. Most people will copy the <filename>e2fs_stage1_5</filename>
|
|
|
|
and/or <filename>reiserfs_stage1_5</filename> files.</para>
|
|
|
|
|
|
|
|
</sect2>
|
2003-09-11 22:35:35 +01:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<sect2 id="contents-grub" role="content"><title>Contents of Grub</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed programs</segtitle>
|
|
|
|
<seglistitem><seg>grub, grub-install,
|
|
|
|
grub-md5-crypt, grub-terminfo and mbchk</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<variablelist><title>Short descriptions</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="grub">
|
|
|
|
<term><command>grub</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>is the GRand Unified Bootloader's command shell.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="grub-install">
|
|
|
|
<term><command>grub-install</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>installs GRUB on the given device.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="grub-md5-crypt">
|
|
|
|
<term><command>grub-md5-crypt</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>encrypts a password in MD5 format.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="grub-terminfo">
|
|
|
|
<term><command>grub-terminfo</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>generates a terminfo command from a
|
2004-05-03 11:59:46 +01:00
|
|
|
terminfo name. It can be used if you have an uncommon terminal.</para>
|
2004-05-17 22:55:01 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="mbchk">
|
|
|
|
<term><command>mbchk</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>checks the format of a multi-boot kernel.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
|
|
</sect1>
|