grub.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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>By default, GRUB doesn't support ext2 filesystems with 256-byte inodes.
  43. Fix this by applying the following patch:</para>
  44. <screen><userinput remap="pre">patch -Np1 -i ../&grub-inode-patch;</userinput></screen>
  45. <para>Prepare GRUB for compilation:</para>
  46. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  47. <para>Compile the package:</para>
  48. <screen><userinput remap="make">make</userinput></screen>
  49. <para>To test the results, issue:</para>
  50. <screen><userinput remap="test">make check</userinput></screen>
  51. <para>Install the package:</para>
  52. <screen><userinput remap="install">make install
  53. mkdir -v /boot/grub
  54. cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
  55. <para>Replace <filename class="directory">i386-pc</filename> with whatever
  56. directory is appropriate for the hardware in use.</para>
  57. <para>The <filename class="directory">i386-pc</filename> directory
  58. contains a number of <filename>*stage1_5</filename> files, different
  59. ones for different file systems. Review the files available and copy
  60. the appropriate ones to the <filename
  61. class="directory">/boot/grub</filename> directory. Most users will
  62. copy the <filename>e2fs_stage1_5</filename> and/or
  63. <filename>reiserfs_stage1_5</filename> files.</para>
  64. </sect2>
  65. <sect2 id="contents-gRUB" role="content">
  66. <title>Contents of GRUB</title>
  67. <segmentedlist>
  68. <segtitle>Installed programs</segtitle>
  69. <seglistitem>
  70. <seg>grub, grub-install, grub-md5-crypt, grub-set-default,
  71. grub-terminfo, and mbchk</seg>
  72. </seglistitem>
  73. </segmentedlist>
  74. <variablelist>
  75. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  76. <?dbfo list-presentation="list"?>
  77. <?dbhtml list-presentation="table"?>
  78. <varlistentry id="grub">
  79. <term><command>grub</command></term>
  80. <listitem>
  81. <para>The Grand Unified Bootloader's command shell</para>
  82. <indexterm zone="ch-system-grub grub">
  83. <primary sortas="b-grub">grub</primary>
  84. </indexterm>
  85. </listitem>
  86. </varlistentry>
  87. <varlistentry id="grub-install">
  88. <term><command>grub-install</command></term>
  89. <listitem>
  90. <para>Installs GRUB on the given device</para>
  91. <indexterm zone="ch-system-grub grub-install">
  92. <primary sortas="b-grub-install">grub-install</primary>
  93. </indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="grub-md5-crypt">
  97. <term><command>grub-md5-crypt</command></term>
  98. <listitem>
  99. <para>Encrypts a password in MD5 format</para>
  100. <indexterm zone="ch-system-grub grub-md5-crypt">
  101. <primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="grub-set-default">
  106. <term><command>grub-set-default</command></term>
  107. <listitem>
  108. <para>Sets the default boot entry for GRUB</para>
  109. <indexterm zone="ch-system-grub grub-set-default">
  110. <primary sortas="b-grub-set-default">grub-set-default</primary>
  111. </indexterm>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry id="grub-terminfo">
  115. <term><command>grub-terminfo</command></term>
  116. <listitem>
  117. <para>Generates a terminfo command from a terminfo name; it can be
  118. employed if an unknown terminal is being used</para>
  119. <indexterm zone="ch-system-grub grub-terminfo">
  120. <primary sortas="b-grub-terminfo">grub-terminfo</primary>
  121. </indexterm>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry id="mbchk">
  125. <term><command>mbchk</command></term>
  126. <listitem>
  127. <para>Checks the format of a multi-boot kernel</para>
  128. <indexterm zone="ch-system-grub mbchk">
  129. <primary sortas="b-mbchk">mbchk</primary>
  130. </indexterm>
  131. </listitem>
  132. </varlistentry>
  133. </variablelist>
  134. </sect2>
  135. </sect1>