Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.


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

From ""

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
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
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
See my comment above, Once you have booted into Ubuntu.... – grimpitch Apr 26 '13 at 3:00

Your Answer


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.