Saturday, March 1, 2008

config files: grub legacy VS grub2


1. Grub Legacy versions are grub-0.9x

2. Grub2 versions are grub-1.9x

3. creating menu
  • Grub Legacy example

  • ....
    default 0

    title menu1
    root (hd0,0)
    kernel /boot/linux root=/dev/hda1

    title menu2
    kernel /boot/linux
    initrd /boot/initrd
  • Grub2 example

  • ...
    set default=0

    menuentry "Menu One" {
    set root=(hd0,0)
    linux /boot/linux root=/dev/hda1
    }

    menuentry "Menu Two" {
    linux /boot/linux
    initrd /boot/initrd
    }

links
bootloader tips
Grub2 CVS
Grub2 Wiki