grub.xml 4.8 KB

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