grub.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-grub" role="wrap">
  7. <title>GRUB-&grub-version;</title>
  8. <?dbhtml filename="grub.html"?>
  9. <indexterm zone="ch-system-grub"><primary sortas="a-Grub">GRUB</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The GRUB package contains the GRand Unified Bootloader.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.2 SBU</seg><seg>10.0 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>&dependencies;</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  20. GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of GRUB</title>
  25. <para>This package is known to have issues when its default
  26. optimization flags (including the <parameter>-march</parameter> and
  27. <parameter>-mcpu</parameter> options) are changed. If any environment
  28. variables that override default optimizations have been defined, such
  29. as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>,
  30. unset them when building GRUB.</para>
  31. <para>Prepare GRUB for compilation:</para>
  32. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  33. <para>Compile the package:</para>
  34. <screen><userinput>make</userinput></screen>
  35. <para>To test the results, issue:
  36. <userinput>make check</userinput>.</para>
  37. <para>Install the package:</para>
  38. <screen><userinput>make install
  39. mkdir -v /boot/grub
  40. cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
  41. <para>Replace <filename class="directory">i386-pc</filename> with whatever
  42. directory is appropriate for the hardware in use.</para>
  43. <para>The <filename class="directory">i386-pc</filename> directory
  44. contains a number of <filename>*stage1_5</filename> files, different
  45. ones for different file systems. Review the files available and copy
  46. the appropriate ones to the <filename
  47. class="directory">/boot/grub</filename> directory. Most users will
  48. copy the <filename>e2fs_stage1_5</filename> and/or
  49. <filename>reiserfs_stage1_5</filename> files.</para>
  50. </sect2>
  51. <sect2 id="contents-gRUB" role="content"><title>Contents of GRUB</title>
  52. <segmentedlist>
  53. <segtitle>Installed programs</segtitle>
  54. <seglistitem><seg>grub, grub-install,
  55. grub-md5-crypt, grub-terminfo, and mbchk</seg></seglistitem>
  56. </segmentedlist>
  57. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  58. <?dbfo list-presentation="list"?>
  59. <?dbhtml list-presentation="table"?>
  60. <varlistentry id="grub">
  61. <term><command>grub</command></term>
  62. <listitem>
  63. <para>The Grand Unified Bootloader's command shell</para>
  64. <indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
  65. </listitem>
  66. </varlistentry>
  67. <varlistentry id="grub-install">
  68. <term><command>grub-install</command></term>
  69. <listitem>
  70. <para>Installs GRUB on the given device</para>
  71. <indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
  72. </listitem>
  73. </varlistentry>
  74. <varlistentry id="grub-md5-crypt">
  75. <term><command>grub-md5-crypt</command></term>
  76. <listitem>
  77. <para>Encrypts a password in MD5 format</para>
  78. <indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
  79. </listitem>
  80. </varlistentry>
  81. <varlistentry id="grub-terminfo">
  82. <term><command>grub-terminfo</command></term>
  83. <listitem>
  84. <para>Generates a terminfo command from a terminfo name; it can be
  85. employed if an unknown terminal is being used</para>
  86. <indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="mbchk">
  90. <term><command>mbchk</command></term>
  91. <listitem>
  92. <para>Checks the format of a multi-boot kernel</para>
  93. <indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
  94. </listitem>
  95. </varlistentry>
  96. </variablelist>
  97. </sect2>
  98. </sect1>