Equerm
June 30th, 2009, 10:07 AM
I recently installed Ubuntu 9.10 Karmic Koala and Grub2 followed with it. But my Windows XP installation did not follow in the Grub2 setup, does anyone know how to add Windows XP to grub2?
For the record Grub2 does not contain a menu.lst file, it got a grub.cfg file, this file does not use the standard grub code that i am used to. It looks like this
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd1,7)
search --no-floppy --fs-uuid --set 7cece53a-77f2-4714-abd2-cd4d29e14c16
if loadfont /usr/share/grub/ascii.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.30-10-generic" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-10-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro quiet splash
initrd /initrd.img-2.6.30-10-generic
}
menuentry "Ubuntu, Linux 2.6.30-10-generic (recovery mode)" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-10-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro single
initrd /initrd.img-2.6.30-10-generic
}
menuentry "Ubuntu, Linux 2.6.30-9-generic" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-9-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro quiet splash
initrd /initrd.img-2.6.30-9-generic
}
menuentry "Ubuntu, Linux 2.6.30-9-generic (recovery mode)" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-9-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro single
initrd /initrd.img-2.6.30-9-generic
}
menuentry "Ubuntu, Linux 2.6.30-8-generic" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-8-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro quiet splash
initrd /initrd.img-2.6.30-8-generic
}
menuentry "Ubuntu, Linux 2.6.30-8-generic (recovery mode)" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-8-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro single
initrd /initrd.img-2.6.30-8-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
For the record Grub2 does not contain a menu.lst file, it got a grub.cfg file, this file does not use the standard grub code that i am used to. It looks like this
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd1,7)
search --no-floppy --fs-uuid --set 7cece53a-77f2-4714-abd2-cd4d29e14c16
if loadfont /usr/share/grub/ascii.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.30-10-generic" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-10-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro quiet splash
initrd /initrd.img-2.6.30-10-generic
}
menuentry "Ubuntu, Linux 2.6.30-10-generic (recovery mode)" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-10-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro single
initrd /initrd.img-2.6.30-10-generic
}
menuentry "Ubuntu, Linux 2.6.30-9-generic" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-9-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro quiet splash
initrd /initrd.img-2.6.30-9-generic
}
menuentry "Ubuntu, Linux 2.6.30-9-generic (recovery mode)" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-9-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro single
initrd /initrd.img-2.6.30-9-generic
}
menuentry "Ubuntu, Linux 2.6.30-8-generic" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-8-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro quiet splash
initrd /initrd.img-2.6.30-8-generic
}
menuentry "Ubuntu, Linux 2.6.30-8-generic (recovery mode)" {
set root=(hd1,6)
search --no-floppy --fs-uuid --set c85c3571-0842-4cc7-bcf0-c4b02b43fbf6
linux /vmlinuz-2.6.30-8-generic root=UUID=7cece53a-77f2-4714-abd2-cd4d29e14c16 ro single
initrd /initrd.img-2.6.30-8-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###