Ubuntu Dual Boot question

EvilManagedCare

Senior member
Nov 6, 2004
324
0
0
Hi,

I have googled this, but the results seem to focus on establishing a dual boot system, not modifying an existing one.

I currently have a dual boot system using Windows XP and Ubuntu (10.04 I believe). The boot menu that appears during startup is GRUB.

I intend to install Windows 7 onto the partition Windows XP is currently on. From what I have read, it seems the Windows boot menu should prevail after the installation with no option to boot into Ubuntu. How do I restore GRUB to reflect the new version of Windows? Would it be better to simply delete the Ubuntu partition and reinstall after installing Windows 7?

I figure deleting the Ubuntu partition and reinstalling is the worst case scenario.

Thanks for the help.
 

her209

No Lifer
Oct 11, 2000
56,336
11
0
You probably have to mark the Ubuntu partition (the partition containing the /boot files) as the active partition.

Disclaimer: I haven't done a a Linux/Windows dual boot setup but I have done a Linux/Linux dual boot.
 

JD50

Lifer
Sep 4, 2005
11,929
2,931
136
You can just reinstall grub after you install Windows 7, then add Windows 7 to your grub menu.
 

PreferLinux

Senior member
Dec 29, 2010
420
0
0
You can just reinstall grub after you install Windows 7, then add Windows 7 to your grub menu.
To do this, boot with the CD/DVD. I am not familiar with Ubuntu, but in Fedora, I think you would you would boot into Rescue Mode (on DVD) and run
Code:
grub-install /dev/sda
(assuming one HDD at /dev/sda). Ubuntu would probably be similar, except you would probably boot to the CD/DVD normally, open a terminal, and run
Code:
sudo grub-install /dev/sda
You can easily check my code with
Code:
man grub-install
and read through that.

You would then be able to boot as previously, but GRUB would still say Windows XP (or whatever). You would probably want to change that, and someone familiar with Ubuntu would be best to tell you how to do that, rather than me.
 

her209

No Lifer
Oct 11, 2000
56,336
11
0
You would then be able to boot as previously, but GRUB would still say Windows XP (or whatever). You would probably want to change that, and someone familiar with Ubuntu would be best to tell you how to do that, rather than me.
For grub 0.97, the boot menu is located in /boot/grub/menu.lst