James Bannan03 March 2009, 8:00 PM
Page 5 - Restore the GRUB boot loader
How to dual-boot Windows XP and Linux. (Now updated for Ubuntu 9.04.)
Once XP has been installed, it will boot happily into XP but there's no sign of Ubuntu. To reinstate GRUB as the system bootloader it needs to be reinstalled into the MBR.
Boot the system from the Ubuntu Live CD and select "Try Ubuntu without any change to your computer".
Open a Terminal session - Applications, Accessories, Terminal
To enter the GRUB configuration mode, type in "sudo grub" and press Enter. Then type in the following commands in sequence:
- root (hd0,0) NOTE - if you moved the ext3 partition to the right, then use (hd0,1)
- setup (hd0)
Reboot the system. You'll get the GRUB bootloader but XP won't be an option - we need to add this to the boot options.
Boot into Ubuntu and open up another Terminal session. Then, type in sudo gedit /boot/grub/menu.lst
Scroll down to the bottom of the file and type in the following text strings:
title Windows XP
root (hd0,1) (or (hd0,0) if Ubuntu is on the (hd0,1) partition)
Save the file and reboot. When the GRUB loader launches hit ESC for the boot menu. Windows XP is the last option - select it and XP will load.
If you want to make the GRUB menu always available, boot back into Ubuntu and edit the MENU.LST file. Find the hiddenmenu text string and change it to #hiddenmenu.
To increase the menu timeout, change the default timeout 3 to something more appropriate.