1. On the Ubuntu livecd is a program called "Partition Editor" (gparted). You can run that to add/delete/resize partitions. Do NOT delete any NTFS or FAT partitions found.
2. Open menu.lst (letter L) as root...
Code:
gksudo gedit /boot/grub/menu.lst
and count your kernel entries (including Windows). In this example...
Code:
## ## End Default Options ##
title Ubuntu 9.04, kernel 2.6.28-15-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-15-generic root=/dev/sda6 ro quiet splash vga=771
initrd /boot/initrd.img-2.6.28-15-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-15-generic root=/dev/sda6 ro single
initrd /boot/initrd.img-2.6.28-15-generic
title Ubuntu 9.04, memtest86+
root (hd0,5)
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/sdb1
title Microsoft Windows XP Home Edition
rootnoverify (hd1,0)
savedefault
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Windows is #4. Go here...
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 use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
and change the 0 to whatever number Windows is then save the file.
Bookmarks