Open a terminal window in Ubuntu and type
su then your root password
Type
cd /boot/grub
then
cp menu.lst menu.lst.backup to make sure you have a working version of the file.
Then type
joe menu.lst to open it in my favourite text editor
(use
vi or
emacs if you prefer)
This is the top bit of mine:
Code:
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
scroll down till you find this:
Code:
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=c37b4b0c-2bdb-4add-b5
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=c37b4b0c-2bdb-4add-b5
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,7)
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
chainloader +1
Count down the entries beginning
title till you get to the one you want to boot as default. In my case XP is
5. Subtract 1 and enter that number in the line beginning
default at the top of the file.
Then hit
CTRL+K+X to save and exit, and reboot. Note the above is for Kubuntu 7.04, so the exact wording may be different.
Good luck!