1. Boot up the computer in Ubuntu
2. Backup the menu.lst file:
a) Applications > Accessories > Terminal
b) Type "sudo cp /boot/grub/menu.lst /boot/grub/menubak.lst" and Enter
3. Edit the menu.lst file:
a) Type in Terminal "sudo gedit /boot/grub/menu.lst" and Enter
This will open the menu.lst file in the editor
locate this:
----------------------------------------------------------------------------------
## ## End Default Options ##
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 22b78024-f5d3-4eff-b440-717ab5d5a3d6
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=22b78024-f5d3-4eff-b440-717ab5d5a3d6 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 22b78024-f5d3-4eff-b440-717ab5d5a3d6
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=22b78024-f5d3-4eff-b440-717ab5d5a3d6 ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid 22b78024-f5d3-4eff-b440-717ab5d5a3d6
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 Professional
rootnoverify (hd0,0)
savedefault
chainloader +1
-----------------------------------------------------------------------------------------
move the last 4 lines to just below ## ## End Default Options ## so that the above section looks like this:
------------------------------------------------------------------------------------------
## ## End Default Options ##
title Microsoft Windows XP Professional
rootnoverify (hd0,0)
savedefault
chainloader +1
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 22b78024-f5d3-4eff-b440-717ab5d5a3d6
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=22b78024-f5d3-4eff-b440-717ab5d5a3d6 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 22b78024-f5d3-4eff-b440-717ab5d5a3d6
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=22b78024-f5d3-4eff-b440-717ab5d5a3d6 ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid 22b78024-f5d3-4eff-b440-717ab5d5a3d6
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
-----------------------------------------------------------------------------------------
In your case, only the first 2 title blocks are necessary.
Ensure that ALL lines including "Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)" is deleted.
On line 14 you have a statememt "default 0"
If you want the Default system to Bootup as XP, leave it as it is. If you want Ubuntu as the Default bootup, change it to 1.
Save and Reboot.
My advice would be to delete all lines after "### END DEBIAN AUTOMAGIC KERNELS LIST" so that the option of Repairing the Ubuntu OS is available.
Ramesh