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?
Asked
Active
Viewed 1,504 times
1
-
1Try https://help.ubuntu.com/community/Boot-Repair – Meer Borg Apr 26 '13 at 02:38
-
2Possible duplicate of How can I repair grub? (How to get Ubuntu back after installing Windows?) – David Foerster Apr 24 '16 at 14:54
1 Answers
3
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.

MathCubes
- 5,666
-
Thanks. I've used easybcd in the past, and I never thought of that. Thanks :D – 16trohrt Apr 26 '13 at 02:43
-
1Once you have booted into Ubuntu, run
sudo update-grub
and thensudo grub-install /dev/sdX
where sdX is the drive, where you want to install grub. – grimpitch Apr 26 '13 at 02: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 02:47
-
1The windows install has overwritten the MBR,
grub-install
writes back grub to the MBR. – grimpitch Apr 26 '13 at 02:50 -
The way that I answer is the way that I fixed for myself there maybe a more easier way that I don't know about since I don't use Windows Now. – MathCubes Apr 26 '13 at 02:51
-
-
1You 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 02:56
-
-
-
1