grub.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-grub" role="wrap">
  8. <?dbhtml filename="grub.html"?>
  9. <sect1info condition="script">
  10. <productname>grub</productname>
  11. <productnumber>&grub-version;</productnumber>
  12. <address>&grub-url;</address>
  13. </sect1info>
  14. <title>GRUB-&grub-version;</title>
  15. <indexterm zone="ch-system-grub">
  16. <primary sortas="a-Grub">GRUB</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The GRUB package contains the GRand Unified Bootloader.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&grub-ch6-sbu;</seg>
  26. <seg>&grub-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of GRUB</title>
  32. <para>This package is known to have issues when its default
  33. optimization flags (including the <parameter>-march</parameter> and
  34. <parameter>-mcpu</parameter> options) are changed. If any environment
  35. variables that override default optimizations have been defined, such
  36. as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>,
  37. unset them when building GRUB.</para>
  38. <para>Start by applying the following patch to allow for better drive
  39. detection, fix some GCC 4.x issues, and provide better SATA support
  40. for some disk controllers:</para>
  41. <screen><userinput remap="pre">patch -Np1 -i ../&grub-geometry-patch;</userinput></screen>
  42. <para>Prepare GRUB for compilation:</para>
  43. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  44. <para>Compile the package:</para>
  45. <screen><userinput remap="make">make</userinput></screen>
  46. <para>To test the results, issue:</para>
  47. <screen><userinput remap="test">make check</userinput></screen>
  48. <para>Install the package:</para>
  49. <screen><userinput remap="install">make install
  50. mkdir -v /boot/grub
  51. cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
  52. <para>Replace <filename class="directory">i386-pc</filename> with whatever
  53. directory is appropriate for the hardware in use.</para>
  54. <para>The <filename class="directory">i386-pc</filename> directory
  55. contains a number of <filename>*stage1_5</filename> files, different
  56. ones for different file systems. Review the files available and copy
  57. the appropriate ones to the <filename
  58. class="directory">/boot/grub</filename> directory. Most users will
  59. copy the <filename>e2fs_stage1_5</filename> and/or
  60. <filename>reiserfs_stage1_5</filename> files.</para>
  61. </sect2>
  62. <sect2 id="contents-gRUB" role="content">
  63. <title>Contents of GRUB</title>
  64. <segmentedlist>
  65. <segtitle>Installed programs</segtitle>
  66. <seglistitem>
  67. <seg>grub, grub-install, grub-md5-crypt, grub-set-default,
  68. grub-terminfo, and mbchk</seg>
  69. </seglistitem>
  70. </segmentedlist>
  71. <variablelist>
  72. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  73. <?dbfo list-presentation="list"?>
  74. <?dbhtml list-presentation="table"?>
  75. <varlistentry id="grub">
  76. <term><command>grub</command></term>
  77. <listitem>
  78. <para>The Grand Unified Bootloader's command shell</para>
  79. <indexterm zone="ch-system-grub grub">
  80. <primary sortas="b-grub">grub</primary>
  81. </indexterm>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry id="grub-install">
  85. <term><command>grub-install</command></term>
  86. <listitem>
  87. <para>Installs GRUB on the given device</para>
  88. <indexterm zone="ch-system-grub grub-install">
  89. <primary sortas="b-grub-install">grub-install</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="grub-md5-crypt">
  94. <term><command>grub-md5-crypt</command></term>
  95. <listitem>
  96. <para>Encrypts a password in MD5 format</para>
  97. <indexterm zone="ch-system-grub grub-md5-crypt">
  98. <primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="grub-set-default">
  103. <term><command>grub-set-default</command></term>
  104. <listitem>
  105. <para>Sets the default boot entry for GRUB</para>
  106. <indexterm zone="ch-system-grub grub-set-default">
  107. <primary sortas="b-grub-set-default">grub-set-default</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="grub-terminfo">
  112. <term><command>grub-terminfo</command></term>
  113. <listitem>
  114. <para>Generates a terminfo command from a terminfo name; it can be
  115. employed if an unknown terminal is being used</para>
  116. <indexterm zone="ch-system-grub grub-terminfo">
  117. <primary sortas="b-grub-terminfo">grub-terminfo</primary>
  118. </indexterm>
  119. </listitem>
  120. </varlistentry>
  121. <varlistentry id="mbchk">
  122. <term><command>mbchk</command></term>
  123. <listitem>
  124. <para>Checks the format of a multi-boot kernel</para>
  125. <indexterm zone="ch-system-grub mbchk">
  126. <primary sortas="b-mbchk">mbchk</primary>
  127. </indexterm>
  128. </listitem>
  129. </varlistentry>
  130. </variablelist>
  131. </sect2>
  132. </sect1>