6

Possible Duplicate:
How can I repair grub? (How to get Ubuntu back after installing Windows?)

So I had a dual boot, with Windows, and Ubuntu, but I had to re-install windows for various reasons...

Now that I have re-installed windows, windows wrote over grub, which I knew was going to happen, but I didn't think about how to fix the problem, or if it was even possible... so here is my question, how do I restore grub to allow me to boot into windows and my already installed ubuntu?

TheXed
  • 27,638

4 Answers4

5

There is quite a comprehensive guide on the Ubuntu wiki that should work for you. I suggest giving that a go.

Iain Lane
  • 3,007
2

I think you have installed win 7 after isntalling ubuntu in that case boot from the live cd download Grub Customizer Portable and then right click properties -> permissions and tick allow excecuting and then run it by double-clicking it and then go to File -> Install to MBR.

enter image description here

Lincity
  • 25,749
1

This is a very common thing... google solves it for you! :) http://ubuntuforums.org/showthread.php?t=1014708 or https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

antivirtel
  • 3,685
1

Open up the /boot/grub/menu.lst file in your favorite text editor. I’m using gedit: so press Alt+F2 and paste

gksu gedit /boot/grub/menu.lst

Now find the section that looks like this:

##hiddenmenu
#Hides the menu by default (press ESC to see the menu)
hiddenmenu

Put a # before hiddenmenu to comment that line out:

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

Let me know, if this the solution.

Regards,

Ilias
  • 1,326