2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-01-30 18:06:48 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect1 id="ch-system-grub" role="wrap">
|
2005-07-02 19:00:19 +01:00
|
|
|
<title>GRUB-&grub-version;</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
<?dbhtml filename="grub.html"?>
|
|
|
|
|
2005-07-02 19:00:19 +01:00
|
|
|
<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/>
|
2005-07-02 19:00:19 +01:00
|
|
|
<para>The GRUB package contains the GRand Unified Bootloader.</para>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2005-06-14 07:08:58 +01:00
|
|
|
<seglistitem><seg>0.2 SBU</seg><seg>10.0 MB</seg></seglistitem>
|
2004-05-16 01:08:42 +01:00
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<segmentedlist>
|
2005-02-24 22:26:46 +00:00
|
|
|
<segtitle>&dependencies;</segtitle>
|
2005-02-19 22:16:42 +00:00
|
|
|
<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
|
|
|
GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-16 01:08:42 +01:00
|
|
|
</sect2>
|
2003-09-11 22:35:35 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="installation">
|
2005-07-02 19:00:19 +01:00
|
|
|
<title>Installation of GRUB</title>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>This package is known to have issues when its default
|
|
|
|
optimization flags (including the <parameter>-march</parameter> and
|
|
|
|
<parameter>-mcpu</parameter> options) are changed. If any environment
|
|
|
|
variables that override default optimizations have been defined, such
|
|
|
|
as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>,
|
2005-07-02 19:00:19 +01:00
|
|
|
unset them when building GRUB.</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2005-07-02 19:00:19 +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
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>Compile 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:
|
2005-09-09 21:34:44 +01:00
|
|
|
<userinput>make check</userinput>.</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para>Install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install
|
2005-09-29 21:55:40 +01:00
|
|
|
mkdir -v /boot/grub
|
|
|
|
cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>Replace <filename class="directory">i386-pc</filename> with whatever
|
|
|
|
directory is appropriate for the hardware in use.</para>
|
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>The <filename class="directory">i386-pc</filename> directory
|
|
|
|
contains a number of <filename>*stage1_5</filename> files, different
|
|
|
|
ones for different file systems. Review the files available and copy
|
|
|
|
the appropriate ones to the <filename
|
|
|
|
class="directory">/boot/grub</filename> directory. Most users will
|
|
|
|
copy the <filename>e2fs_stage1_5</filename> and/or
|
|
|
|
<filename>reiserfs_stage1_5</filename> files.</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
</sect2>
|
2003-09-11 22:35:35 +01:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2005-07-02 19:00:19 +01:00
|
|
|
<sect2 id="contents-gRUB" role="content"><title>Contents of GRUB</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2005-02-19 22:16:42 +00: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
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
2005-02-24 18:32:19 +00:00
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<varlistentry id="grub">
|
|
|
|
<term><command>grub</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>The Grand Unified Bootloader's command shell</para>
|
|
|
|
<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="grub-install">
|
|
|
|
<term><command>grub-install</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Installs GRUB on the given device</para>
|
|
|
|
<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="grub-md5-crypt">
|
|
|
|
<term><command>grub-md5-crypt</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Encrypts a password in MD5 format</para>
|
|
|
|
<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="grub-terminfo">
|
|
|
|
<term><command>grub-terminfo</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Generates a terminfo command from a terminfo name; it can be
|
|
|
|
employed if an unknown terminal is being used</para>
|
|
|
|
<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="mbchk">
|
|
|
|
<term><command>mbchk</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Checks the format of a multi-boot kernel</para>
|
|
|
|
<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
</sect2>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect1>
|
2005-02-19 22:16:42 +00:00
|
|
|
|