Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

marked as duplicate by Eliah Kagan, Jorge Castro, Stephen Myall, hhlp, Luis Alvarado Jan 11 '13 at 13:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Technically windows didn't write over grub, it's still there, you just have to tell bios to use the linux partition instead of the windows partition. Also, while not technically an answer you're looking for, there's a tool you can use to specify different operating systems to be in the windows boot menu called EasyBCD - neosmart.net/dl.php?id=1 –  dkuntz2 Dec 22 '10 at 22:51
    
Can you post the results of bootscript pls.So that i can help you.. –  karthick87 Dec 23 '10 at 7:04
add comment

4 Answers 4

up vote 1 down vote accepted

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

share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the links for reference. –  Eliah Kagan Dec 25 '12 at 4:21
add comment

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

share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Eliah Kagan Dec 25 '12 at 4:22
add comment

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

share|improve this answer
add comment

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,

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.