grub.xml 4.0 KB

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