grub.xml 5.2 KB

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