Ubuntu/XP dual boot

Tullphan

Diamond Member
Jul 27, 2001
3,507
5
81
It seems that after the timeout my pc automatically boots into Ubuntu instead of XP.
How can I edit my grub menu for XP to boot by default instead of Ubuntu.
Also, in my grub menu, there's 4 instances of Ubuntu:

title Ubuntu, kernel 2.6.12-10-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot

title Ubuntu, kernel 2.6.12-10-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.12-10-386
boot

title Ubuntu, kernel 2.6.12-9-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot

title Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.12-9-386
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

Do I need to see (what I assume is) the older kernels? If not, do I just add the "#" beside them?

Thanks in advance!
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

Move this to the top of the file from the bottom.

And if you installed the 2.6.12-10 kernel then you can remove the entries referring to the 2.6.12-9 kernel.
 

Tullphan

Diamond Member
Jul 27, 2001
3,507
5
81
Thanks, Sleep WalkerX.
Now, if I decide to try the new "Dapper", will it install over 2.6.12-10 kernel or create another partition?