No problem! First, copy
/boot/grub/menu.lst to
/boot/grub/menu.old.lst (as root). If your boot file becomes messed up for some reason, you can go back and fix the problem using the backup file (even
using Windows). What you're about to do is not difficult, but you never know what could happen. Okay, so now you'll need to open
/boot/grub/menu.lst with root privileges. (
sudo gedit /boot/grub/menu.lst in a terminal)
Scroll down until you see a list of operating systems:
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=3cf77cc0-5e33-4537-902a-f8d7f46900fb ro quiet splash locale=nl_NL
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=3cf77cc0-5e33-4537-902a-f8d7f46900fb ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=3cf77cc0-5e33-4537-902a-f8d7f46900fb ro quiet splash locale=nl_NL
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=3cf77cc0-5e33-4537-902a-f8d7f46900fb ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet
### 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/sda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1
You should recognize the text behind the word 'title' as it is shown in your boot menu. You can rename these entries if you like. Anyhow, now comes the easy part. Just move the entry for Windows to the top of the OS list like this:
(Note: do not copy/paste this, the situation could be different on your computer.)# Note: you can add comments to this file by using the pound character
# Windows is on top of the list
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=3cf77cc0-5e33-4537-902a-f8d7f46900fb ro quiet splash locale=nl_NL
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=3cf77cc0-5e33-4537-902a-f8d7f46900fb ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=3cf77cc0-5e33-4537-902a-f8d7f46900fb ro quiet splash locale=nl_NL
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=3cf77cc0-5e33-4537-902a-f8d7f46900fb ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
And you're done. Note that I deleted this entry:
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
This entry doesn't actually do anything, it's just something like a separator. If you'd like to separate Windows from the Ubuntu entries, add this entry right underneath the entry for Windows:
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Ubuntu boot options:
root
You get the general idea. And if you'd like to uninstall Ubuntu: boot the Recovery Console from your Windows XP install CD, execute
fixmbr and
fixboot, delete Ubuntu's partitions and you're done. The boot menu has been removed and all traces of Ubuntu are gone.