GNU Info

Info Node: (grub.info)GNU/Linux

(grub.info)GNU/Linux


Next: FreeBSD Prev: GNU/Hurd Up: OS-specific notes
Enter node , (file) or (file)node

GNU/Linux
---------

   It is relatively easy to boot GNU/Linux from GRUB, because it
somewhat resembles to boot a Multiboot-compliant OS.

  1. Set GRUB's root device to the same drive as GNU/Linux's. Probably
     the command `find /vmlinuz' or similar can help you (Note: find).

  2. Load the kernel:

          grub> kernel /vmlinuz root=/dev/hda1

     If you need to specify some kernel parameters, just append them to
     the command. For example, to set `vga' to `ext', do this:

          grub> kernel /vmlinuz root=/dev/hda1 vga=ext

     See the documentation in the Linux source tree for the complete
     information on the available options.

  3. If you use an initrd, execute the command `initrd' (Note:
     initrd) after `kernel':

          grub> initrd /initrd

  4. Finally, run the command `boot' (Note: boot).

   *Caution:* If you use an initrd and specify the `mem=' option to the
kernel, to let it use less than actual memory size, you will also have
to specify the same memory size to GRUB. To let GRUB know the size, run
the command `uppermem' _before_ loading the kernel. Note: uppermem,
for more information.


automatically generated by info2www version 1.2.2.9