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 Ubuntu 12.10 64 bit on my hard drive, then decided to install Windows 7 alongside on a 25 gb partition. I shrank my Ubuntu install by about 25 gb with a GParted Live USB. Ubuntu booted correctly after the shrink. I shut down and installed Windows 7 on the 25 gb partition. Now Windows 7 boots, and Ubuntu doesn't. Did I overwrite my MBR? If so, how do I fix it?

share|improve this question
1  
Try help.ubuntu.com/community/Boot-Repair –  Meer Borg Apr 26 '13 at 2:38
add comment

1 Answer 1

up vote 3 down vote accepted

Use EasyBCD to edit the Microsoft boot manager, too add ubuntu on to it. Then boot up Ubuntu and install Boot-Repair and reinstall grub and that should take care of it and set the default boot manager back to grub.

Boot-Rair

  • sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get
  • update sudo apt-get install -y boot-repair && (sudo boot-repair &)

From "https://help.ubuntu.com/community/Boot-Repair"

Just post a comment if you just need me to go into more detail on this.

share|improve this answer
    
Thanks. I've used easybcd in the past, and I never thought of that. Thanks :D –  16trohrt Apr 26 '13 at 2:43
1  
Once you have booted into Ubuntu, run sudo update-grub and then sudo grub-install /dev/sdX where sdX is the drive, where you want to install grub. –  grimpitch Apr 26 '13 at 2:44
    
I'm pretty sure that grub is installed. I'm just trying to recover my Ubuntu partition. I primarily use Ubuntu, I just need Windows for iTunes :) –  16trohrt Apr 26 '13 at 2:47
1  
You need to create a live CD or a bootable USB drive, I like to use the rescue mode in the debian installer in such cases. –  grimpitch Apr 26 '13 at 2:56
1  
See my comment above, Once you have booted into Ubuntu.... –  grimpitch Apr 26 '13 at 3:00
show 7 more comments

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.