Tags
Boot-repair, Dual boot XP and Ubuntu, GRUB2, GRUB2 reinstallation, How to, Installing Windows 7 after Ubuntu, linux, Ubuntu 10.04 LTS, Ubuntu 10.10, Ubuntu 11.04
It is always recommended to install Ubuntu after you install Windows XP or any other Window operating systems. Because Windows is not smart enough to detect any Linux operating system on your computer and what it does is to rewrite the boot menu with Windows as the only operating system. But sometimes in life, we face situations where we might have to do the opposite way around, install XP after Ubuntu as a dual boot. This can be easily done. Here I will show you the easiest way.
From Ubuntu 9.10 Karmic Koala, Ubuntu has been using a new type of boot loader, it’s called GRUB2, which is a modification of GRUB (GRand Unified Bootloader). What Windows does when it installs itself is to delete GRUB2 from the system. Ubuntu provides several ways to reinstall GRUB2. They also provide a GUI to do that. All you need is a Live CD (or USB) and an internet connection. Here I will tell you how through these easy steps.
- Boot your computer with the Live CD: Use the Live CD(or USB) to start a live Ubuntu session on your computer. It is recommended to match the version of the Ubuntu Live CD with the one installed on your computer.
-
Download and install Boot-repair: Go to Application>Accessories>Terminal (or type CTRL + ALT + T), open a Terminal window and type the following commands:
sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update && sudo apt-get install -y boot-repair
- Run Boot-repair: If you use Gnome (default in Ubuntu 10.10 and previous versions): launch Boot-repair from System-> Application-> Boot-Repair menu, if you use Unity (default in Ubuntu 11.04): search “boot” in the dash.
Follow the prompts and click “OK”.
When the installation finishes, restart your computer normally.
Remarks: If you want to repair a 64bits system, you need to use a 64bits system. Same for 32bits system.
For more ways to reinstall GRUB2 and for more details, read the Community Ubuntu Documentation page on GRUB2.
Yann said:
THANKS for this article.
One point to update please: the package to install is now “boot-repair” instead of “boot-repair-ubuntu”.
More information at: https://help.ubuntu.com/community/Boot-Repair
Keep up the good job !
Subhadip Ghosh said:
Thanks Yann.
Jarred said:
Is there any way Windows might overwrite Ubuntu when it is installed?
Subhadip Ghosh said:
Unless you install them both in the same partition, no there is no chance. But Windows’ boot loader will overwrite Grub and this post is all about how to reinstall Grub.