grub-inst.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Grub</title>
  4. <para>Grub needs a patch applied that fixes a compile problem with
  5. GCC-3.3.1:</para>
  6. <para><screen><userinput>patch -Np1 -i ../grub-&grub-patch-version;.patch</userinput></screen></para>
  7. <para>Prepare Grub for compilation:</para>
  8. <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
  9. <para>Compile the package:</para>
  10. <para><screen><userinput>make</userinput></screen></para>
  11. <para>And install it:</para>
  12. <para><screen><userinput>make install
  13. mkdir /boot/grub
  14. cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen></para>
  15. <para>Replace <filename class="directory">i386-pc</filename> with whatever
  16. directory is appropriate for your hardware.</para>
  17. <para>The <filename class="directory">i386-pc</filename> directory also
  18. contains a number of <filename>*stage1_5</filename> files, different ones
  19. for different filesystems. Have a look at the ones available and copy the
  20. appropriate ones to the <filename class="directory">/boot/grub</filename>
  21. directory. Most people will copy the <filename>e2fs_stage1_5</filename>
  22. and/or <filename>reiserfs_stage1_5</filename> files.</para>
  23. </sect2>