I have intalled Ubuntu and Windows 7 in my laptop. When I select Windows 7 loader, this screen appears:

BOOTMGR is missing 
Press Ctrl+Alt+Del to restart.

But my ubuntu works fine.I then update the grub there I got the message:

Generating grub.cfg
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found memtest86+ image: /boot/memtest86+.bin
grub-probe : error filesystem
Found Windows 7 (loader) on dev/sda5

But can't access Windows 7 yet what to do now ?


Receiving the "BOOTMGR is missing" message indicates that the windows bootloader was successfully loaded by GRUB, but found an error in its own configuration. The first step is to boot using the Windows 7 cd, enter the recovery console (right at the beginning of the installer), and type the following into the console:

bootrec /fixboot

This will fix the windows bootloader files without altering the MBR. More info about the bootrec tool can be found here: Use the Bootrec.exe tool in the Windows Recovery Environment to troubleshoot and repair startup issues in Windows. Reboot and see if Windows will load from GRUB.

If that does not work some people suggest booting again from the Windows installer cd, and doing a repair install on windows. This will most likely overwrite grub in the MBR so ONLY windows will start.

If windows now boots, simply use the Ubuntu CD to recovery boot your existing Ubuntu install. Once it is started run the grub tool again to restore grub to the MBR, so it can start either Linux of Windows. Replace /dev/sdz with the device of your boot hard drive.

sudo grub-install /dev/sdz

More details about this process can be found in this very well written HOWTO: Recovering Ubuntu After Windows Install.

Hopefully both systems will boot from grub now. If not your problem is more complex, and some more answering might be in order.

| improve this answer | |
  • 1
    Can you be more specific about what you mean when you say the "grub tool"? Helpful answer. – John S Gruber Oct 23 '12 at 20:45
  • Some info about recovering ubuntu after you have reinstalled Windows (if that is what you opt to do): help.ubuntu.com/community/… – Gjermund Bjaanes Oct 23 '12 at 20:55
  • I tried with bootsec /fixboot But console output is bootsec is not recognized as an internal or extarnal command,operable programme or batch file. – HammerEngineer Oct 23 '12 at 21:09
  • 1
    @HammerEngineer I am sorry for the error. The tool is called bootrec, so you run bootrec /fixboot . The response has been edited as well. I know booting to the recovery environment is a pain in the neck. – trognanders Oct 23 '12 at 21:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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