grub.xml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-grub" xreflabel="Grub">
  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. <para>The Grub package contains the GRand Unified Bootloader.</para>
  11. <screen>&buildtime; 0.2 SBU
  12. &diskspace; 10 MB</screen>
  13. <para>Grub installation depends on: Bash, Binutils, Coreutils, Diffutils,
  14. GCC, Glibc, Grep, Make, Ncurses, Sed.</para>
  15. <sect2>
  16. <title>Installation of Grub</title>
  17. <para>This package is known to behave badly when you have changed its default
  18. optimization flags (including the -march and -mcpu options). Therefore, if you
  19. have defined any environment variables that override default optimizations,
  20. such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
  21. Grub.</para>
  22. <para>First prepare Grub for compilation:</para>
  23. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  24. <para>A few of the files comprising Grub have issues with optimizations done
  25. by GCC 3.4. Compile these few files with known-good optimizations:</para>
  26. <screen><userinput>make -C stage2 STAGE2_CFLAGS=-O2 \
  27. pre_stage2_exec-builtins.o pre_stage2_exec-serial.o</userinput></screen>
  28. <para>Now compile the rest of the package:</para>
  29. <screen><userinput>make</userinput></screen>
  30. <para>To test the results, issue:
  31. <userinput>make check</userinput>.</para>
  32. <para>Now install it:</para>
  33. <screen><userinput>make install
  34. mkdir /boot/grub
  35. cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
  36. <para>Replace <filename class="directory">i386-pc</filename> with whatever
  37. directory is appropriate for your hardware.</para>
  38. <para>The <filename class="directory">i386-pc</filename> directory also
  39. contains a number of <filename>*stage1_5</filename> files, different ones
  40. for different file systems. Have a look at the ones available and copy the
  41. appropriate ones to the <filename class="directory">/boot/grub</filename>
  42. directory. Most people will copy the <filename>e2fs_stage1_5</filename>
  43. and/or <filename>reiserfs_stage1_5</filename> files.</para>
  44. </sect2>
  45. <sect2 id="contents-grub"><title>Contents of Grub</title>
  46. <para><emphasis>Installed programs</emphasis>: grub, grub-install,
  47. grub-md5-crypt, grub-terminfo and mbchk</para>
  48. </sect2>
  49. <sect2><title>Short descriptions</title>
  50. <indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
  51. <para id="grub"><command>grub</command> is the GRand Unified Bootloader's command
  52. shell.</para>
  53. <indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
  54. <para id="grub-install"><command>grub-install</command> installs GRUB on the given device.</para>
  55. <indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
  56. <para id="grub-md5-crypt"><command>grub-md5-crypt</command> encrypts a password in MD5
  57. format.</para>
  58. <indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
  59. <para id="grub-terminfo"><command>grub-terminfo</command> generates a terminfo command from a
  60. terminfo name. It can be used if you have an uncommon terminal.</para>
  61. <indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
  62. <para id="mbchk"><command>mbchk</command> checks the format of a multi-boot kernel.</para>
  63. </sect2>
  64. </sect1>