Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Recently, I dualbooted windows 7 and Ubuntu 12.04, then I decided to be able to open the Windows 7 files from within Ubuntu. But I mounted the wrong partition and accidentally deleted it when I realized it was the wrong one... It's only when I restarted my computer that I realized that I deleted the boot partition. Now, whenever I try to open the PC, it says: BOOTMGR is missing Press Ctrl+Alt+Del to restart

Whenever I try the above command, it eventually restarts and gets back to the same screen. Windows 7 was the main boot screen. I was planning on creating a Windows recovery disc, is it a great idea? Will it work? If not, have any other ideas?

share|improve this question

closed as off topic by jokerdino, Anwar Shah, Jorge Castro, izx, fossfreedom Aug 22 '12 at 11:20

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

This is offtopic - I realise you have Ubuntu installed - but this question is about Windows. – 23 93 26 35 19 57 3 89 Jul 28 '12 at 6:23
up vote 3 down vote accepted

You have to fix two bootloaders:

  1. Windows 7 bootmgr and
  2. GRUB for Ubuntu.

Following are the steps to do so:

  1. Insert your Windows Vista or Windows 7 disk into your DVD player and restart your computer.

  2. The next screen you see should have the Language, Time and Currency and Keyboard boxes.

  3. In the lower left side there are two options: “What to know before installing Windows” and “Repair your computer.”

  4. Click on “Repair your computer”.

  5. Windows will then try to find the installation directory for Vista or Windows 7, depending on what you have.

  6. Next up is a screen with a box called Recovery Options. Click the first option, Startup Repair.

  7. You’ll see a Startup Repair box with the message “Startup Repair is checking your system for problems…”

  8. When it’s done, it will prompt you to reboot. If there is more than one problem it may reboot again to continue repairing.

  9. At this point, you can remove the DVD, reboot and everything should be working.

Now you are done with Windows 7 Boot loader. Time to fix GRUB. Do the Following:

You can install GRUB on your hard disk. You can do this by using bootable Ubuntu CD.

Boot to live cd. When you get UBUNTU Live Desktop. Open terminal and type the following

  1. sudo grub-install /dev/sda

  2. sudo update-grub

  3. quit

You are done now. Reboot the machine.

This will install grub on MBR of your hard disk with dual boot. Try the latest Ubuntu 12.04 LTS.

You can also use the bootrepair tool to reinstall grub:

share|improve this answer
This Grub information is for Grub Legacy not Grub2. – 23 93 26 35 19 57 3 89 Jul 28 '12 at 6:24
Updated to grub2 now – Amit Rane Jul 28 '12 at 6:45
Thanks - that's better :) – 23 93 26 35 19 57 3 89 Jul 28 '12 at 8:28
Thanks a lot. That was really helpful :) – Nick Rameau Jul 28 '12 at 11:55
Feel free to ask about UBUNTU over here and get yourself unleash to new world of ubuntu – Amit Rane Jul 28 '12 at 13:28

Check the following links to get help on recovering Windows 7 boot files

After you successfully recovered Windows 7, you need to recover Grub to be able to boot to Ubuntu. See this questions for that:

Hope this will fix your problem

share|improve this answer
These links were also helpful. Thanks. – Nick Rameau Jul 28 '12 at 11:56
@NickRameau Yes, I was a bit lazy to provide more information since the Internet is seems to be flooded with the same topic :-) – Anwar Shah Jul 28 '12 at 12:30

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