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 made my laptop Dell XPS 15z dual boot with Ubuntu last year, and something went wrong & BOOTMGR of my windows got fried. I couldn't fix it that time. And I kept using Ubuntu. I don't even remember whether I installed directly via a live usb or used wubi, sorry.

I installed 11.10 at that point of time, but right now I am on 12.10.

Today, I got to know about the Boot repair tool, so I was wondering with this tool may be I can figure out what's exactly wrong with my setup.

This is my Boot info - http://paste.ubuntu.com/1343575/

If I select the Win7 entry on GRUB2, I get the error BOOTMGR is missing. Press Ctrl-Alt-Del.

Now the thing is I have read numerous links on how this could be fixed, but I don't feel comfortable without knowing what I am doing. So unless I am sure what a certain tool would do, I would prefer fixing it by hand (manually editing files).

So reading from my boot info file, can anyone explain it to me what's messed up wrong here and what could fix it? I certainly can't afford to have my ubuntu install unbootable right now, but looking into this issue is bothering me too much. Help appreciated!

I have Win7 DVD & Ubuntu live USBs with me, I am just looking for a sure shot way of fixing Win7 without any harm to my existing Ubuntu install.

share|improve this question
    
From your log it seems you have two Windows 7 entries: Windows 7 (loader) (on /dev/sda3) and Windows 7. Which one gives you the error? –  Salem Nov 8 '12 at 21:50
    
@Salem sda4 is the one which has the install and gives error. sda3 is the recovery partition, it also throws an error but something different. –  Ashfame Nov 8 '12 at 21:53
    
Can you mount the sda3 partition and provide a directory listing of it (maybe using ls -la /media/(...))? –  Salem Nov 8 '12 at 22:36
    
If it was WUBI you wouldn't have access to Ubuntu. Tut, Ubuntu relying on Windows. –  saleemrashid1 Nov 11 '12 at 22:28

4 Answers 4

Using windows recovery:

In System recovery options, click command prompt.

Now type

Bootrec /RebuildBcd 

and then press ENTER.

Restart your computer after it finishes.

Emergency Tip: If the Bootrec.exe tool cannot locate any missing Windows installations.

Type the following commands in the order from top to bottom.

Bcdedit /export C:\BCD_Backup and press enter
ren c:\boot\bcd bcd.old and press enter
Bootrec /rebuildbcd and press enter

Hope this helps.

source http://www.troublefixers.com/unable-to-boot-in-windows-vista-windows-boot-configuration-data-file-is-missing-required-information/

share|improve this answer

If you installed Ubuntu with Wubi you will not be getting grub menu. So you didn't installed Ubuntu with Wubi.

To get windows boot loader back and add it to grub menu. First install Windows boot loader (grub will be gone) and after that re-install grub boot loader

for windows boot loader

=> Boot from your windows disc and go to repair but do not use start-up repair or instead repair using windows command prompt

enter image description here

type the following two commands in cmd

Bootrec/fixmbr 'press enter'

Bootrec/fixboot 'press enter'

now reboot u can see windows boot loader again

now back to Ubuntu for grub boot loader

=> Boot from Ubuntu live USB then install boot-repair and repair grub u can see it in this how it is done https://help.ubuntu.com/community/Boot-Repair

In advanced options => GRUB Options -- select the "Purge Grub before reinstalling it"

In advanced options => Other options -- Unselect the "Repair windows Bootfiles"(remove the tick) 
share|improve this answer
  1. Fix Windows via a Windows disk: https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader , until you get direct access to Windows
  2. Convert Windows dynamic partitioning (SFS partitions) to a basic disk. This can be performed via tools such as TestDisk or EASEUS-Partition-Master or MiniTool-Partition-Wizard.
  3. Recover the GRUB menu via Boot-Repair
share|improve this answer

Usually Windows 7 creates two partitions during setup: a partition with the boot manager and a partition to the operating system. It seems that your Windows selected the recovery partition and used it as the boot partition, probably overwriting it (it is the only partition with the "boot" flag (line 79 of the log)). So to boot Windows i think you must boot the recovery partition (/dev/sda3).

But if i'm not wrong, booting from your recovery partition may reset the MBR, and so replace GRUB with the Windows 7 MBR. So before doing this, you really should create a backup of your Ubuntu, or of the MBR atleast!

The best way to proceed is creating a new boot entry in /etc/grub.d/40_custom, editing it with root privileges:

sudo gedit /etc/grub.d/40_custom

This file should already have one entry. After it add the following:

menuentry 'My Windows entry' --class windows {
    insmod part_msdos
    insmod ntfs
    set root='hd0,msdos3'
    chainloader +1
}

Save the file and run sudo update-grub in a terminal. This will recreate the Grub boot entries. After that, the next time you reboot you should have a new entry, which hopefully will let you boot on Windows 7.

share|improve this answer
    
Can't I set the bootflag back to sda4? I really can't afford to mess up my grub/Ubuntu install, that's why I am looking for a definite way of fixing this with least risk. –  Ashfame Nov 8 '12 at 22:23
    
Don't know, it may work. –  Salem Nov 9 '12 at 11:39

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.