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.

I installed 12.04(64bit) alongside Windows 7 (64bit) through a USB drive.

Earlier I couldn't load Ubuntu without a USB drive until I ran sudo grub-install --force /dev/sda2.

But now I can't load Windows 7 (loader)(on/dev/sda2) in GRUB. When I select that, it displays a black screen and then returns to GRUB.

Help me to solve this. I read "Installing GRUB 2" article but I cannot understand what I should do.

share|improve this question
    
Try installing boot-repair. See this on installing boot-repair. –  Peachy Aug 16 '12 at 1:32
    
You were supposed to install GRUB in the MBR (grub-install /dev/sda) not in the partition containing Windows. –  Akshit Baunthiyal Aug 16 '12 at 4:13

2 Answers 2

Boot into Ubuntu, open up a terminal (shortcut Ctrl+Alt+T), and type update-grub and press Enter. You'll need to enter your root password. After it's done, reboot your system.

share|improve this answer
    
I did that but it not work.... –  Sam Aug 15 '12 at 8:09

Give this a try:

Boot into Ubuntu and open the terminal(Press Ctrl+Alt+T on your keyboard) or look for it in the dash. Once opened, try the following commands:

sudo grub-install "(hd0)"
sudo update-grub

That should do it. When you run that last command, make sure to see Windows. Take a look at this example. See Windows at the bottom:

Example of what sudo update-grub renders

If you do not see Windows, then you might have installed your dual boot wrong.

Tell me if it works. Hope this helps you.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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