grub.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/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>Prepare GRUB for compilation:</para>
  34. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  35. <para>Compile the package:</para>
  36. <screen><userinput>make</userinput></screen>
  37. <para>To test the results, issue:
  38. <userinput>make check</userinput>.</para>
  39. <para>Install the package:</para>
  40. <screen><userinput>make install
  41. mkdir -v /boot/grub
  42. cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
  43. <para>Replace <filename class="directory">i386-pc</filename> with whatever
  44. directory is appropriate for the hardware in use.</para>
  45. <para>The <filename class="directory">i386-pc</filename> directory
  46. contains a number of <filename>*stage1_5</filename> files, different
  47. ones for different file systems. Review the files available and copy
  48. the appropriate ones to the <filename
  49. class="directory">/boot/grub</filename> directory. Most users will
  50. copy the <filename>e2fs_stage1_5</filename> and/or
  51. <filename>reiserfs_stage1_5</filename> files.</para>
  52. </sect2>
  53. <sect2 id="contents-gRUB" role="content">
  54. <title>Contents of GRUB</title>
  55. <segmentedlist>
  56. <segtitle>Installed programs</segtitle>
  57. <seglistitem>
  58. <seg>grub, grub-install, grub-md5-crypt, grub-set-default,
  59. grub-terminfo, and mbchk</seg>
  60. </seglistitem>
  61. </segmentedlist>
  62. <variablelist>
  63. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  64. <?dbfo list-presentation="list"?>
  65. <?dbhtml list-presentation="table"?>
  66. <varlistentry id="grub">
  67. <term><command>grub</command></term>
  68. <listitem>
  69. <para>The Grand Unified Bootloader's command shell</para>
  70. <indexterm zone="ch-system-grub grub">
  71. <primary sortas="b-grub">grub</primary>
  72. </indexterm>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry id="grub-install">
  76. <term><command>grub-install</command></term>
  77. <listitem>
  78. <para>Installs GRUB on the given device</para>
  79. <indexterm zone="ch-system-grub grub-install">
  80. <primary sortas="b-grub-install">grub-install</primary>
  81. </indexterm>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry id="grub-md5-crypt">
  85. <term><command>grub-md5-crypt</command></term>
  86. <listitem>
  87. <para>Encrypts a password in MD5 format</para>
  88. <indexterm zone="ch-system-grub grub-md5-crypt">
  89. <primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="grub-set-default">
  94. <term><command>grub-set-default</command></term>
  95. <listitem>
  96. <para>Sets the default boot entry for GRUB</para>
  97. <indexterm zone="ch-system-grub grub-set-default">
  98. <primary sortas="b-grub-set-default">grub-set-default</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="grub-terminfo">
  103. <term><command>grub-terminfo</command></term>
  104. <listitem>
  105. <para>Generates a terminfo command from a terminfo name; it can be
  106. employed if an unknown terminal is being used</para>
  107. <indexterm zone="ch-system-grub grub-terminfo">
  108. <primary sortas="b-grub-terminfo">grub-terminfo</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. <varlistentry id="mbchk">
  113. <term><command>mbchk</command></term>
  114. <listitem>
  115. <para>Checks the format of a multi-boot kernel</para>
  116. <indexterm zone="ch-system-grub mbchk">
  117. <primary sortas="b-mbchk">mbchk</primary>
  118. </indexterm>
  119. </listitem>
  120. </varlistentry>
  121. </variablelist>
  122. </sect2>
  123. </sect1>