%general-entities; ]> Grub-&grub-version; Grub <para>The Grub package contains the GRand Unified Bootloader.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem><seg>0.2 SBU</seg><seg>10 MB</seg></seglistitem> </segmentedlist> <segmentedlist> <segtitle>Grub installation depends on</segtitle> <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Grub This package is known to behave badly when you have changed its default optimization flags (including the -march and -mcpu options). Therefore, if you have defined any environment variables that override default optimizations, such as CFLAGS and CXXFLAGS, we recommend un-setting them when building Grub. First prepare Grub for compilation: ./configure --prefix=/usr A few of the files comprising Grub have issues with optimizations done by GCC 3.4. Compile these few files with known-good optimizations: make -C stage2 STAGE2_CFLAGS=-O2 \ pre_stage2_exec-builtins.o pre_stage2_exec-serial.o Now compile the rest of the package: make To test the results, issue: make check. Now install it: make install mkdir /boot/grub cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub Replace i386-pc with whatever directory is appropriate for your hardware. The i386-pc directory also contains a number of *stage1_5 files, different ones for different file systems. Have a look at the ones available and copy the appropriate ones to the /boot/grub directory. Most people will copy the e2fs_stage1_5 and/or reiserfs_stage1_5 files. Contents of Grub Installed programs grub, grub-install, grub-md5-crypt, grub-terminfo and mbchk Short descriptions grub grub is the GRand Unified Bootloader's command shell. grub-install grub-install installs GRUB on the given device. grub-md5-crypt grub-md5-crypt encrypts a password in MD5 format. grub-terminfo grub-terminfo generates a terminfo command from a terminfo name. It can be used if you have an uncommon terminal. mbchk mbchk checks the format of a multi-boot kernel.