Solved Help needed with BOOTLDR, BCD on a multiboot machine

TheWindows

New member
Local time
8:23 AM
Messages
7
Help needed with BOOTMGR, BCD on a multiboot machine

Hi there,

Eighteen months ago, I purchased Seven as a download only. For some reason, I didn't burnt it to a DVD but stored the expanded iso in a dedicated partition (say, the third partition of my second hard drive). So far, so good, install went fine and everything is dandy ever after.:cool:

Also, this is a dual boot machine, the primary OS being Ubuntu. Choose the OS at startup via Grub, (or, alternatively, by selecting the boot drive from BIOS).

Since then, I've been playing around a bit :party: with my partitions and boot sequences, most recently when I painstakingly :cry: :huh: :mad: installed W7 SP1, which required me to move and expand the W7 system partition :shock:.

My partitions layout is now briefly as follow :
disk 1 : [unused space][linux swap][linux sys]
disk 2 : [win sys][win data][win install][linux swap][linux data]

A bit complicated, but it works.

My only problem now is that the win boot process goes through the [win install] partition, no matter what. That's where the BOOTMGR and the BCD landed, for reasons that are not completely clear to me :sarc:. This does not impact everyday operations, but if I ever want to boot from the install disk, I simply cannot.

I'm now willing to clean up my act, that is :
1) make normal Windows boot totaly independant of the [win install] partition
2) re-build an install iso that I could burn to a DVD or squeeze onto a USB pen drive, regaining the ability to perform an eventual fresh install on an eventual new machine
3) proceed from 2) to build a rescue DVD or pen drive

As you can guess, I am really not familiar with BOOTMGR and BCD and such.

So the question is : Where do I start ?
Bonus track : what BCDEDIT currently says :
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

C:\Windows\system32>bcdedit

Gestionnaire de démarrage Windows
---------------------------------
identificateur {bootmgr}
device partition=Z:
path \bootmgr
description Windows Boot Manager
locale fr-FR
default {current}
resumeobject {0476f794-f432-11e0-aa18-806e6f6e6963}
displayorder {current}
timeout 30

Chargeur de démarrage Windows
-----------------------------
identificateur {current}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7 Home Premium N (récupéré)
locale fr-FR
recoverysequence {502b3cab-f43a-11e0-b5c7-c8976b7f0609}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {0476f794-f432-11e0-aa18-806e6f6e6963}

C:\Windows\system32>
 
Last edited:

My Computer

OS
Windows 7 Home Premium N 64bit
1.) Download a Windows 7 Recovery image - ~150MB (64-bit for you?) - put either to CD or USB using Windows 7 USB DVD Download Tool.
2.) The expanded Windows 7 installation files have to be put to iso with some tool - this is a separate task - you have already altered some files on this partition using it as Windows 7 'system' partition ! (changes are mainly in \Boot folder and BCD store)
At this point you will have all installation sources (Win7, Ubuntu) + Windows 7 Recovery media.

To make [win sys] your boot partition you have to mark it active - use Windows Disk Management.
To make [disk 2] bootable you have to connect it as theog described in post above.

3.) Boot from Win 7 Recovery USB/CD or from Win 7 Install USB/DVD and select Recovery - on recovery console:
a) write mbr & boot sector using 'bootsect.exe' (gives help with /?)
b) recreate boot config data & bootmgr using 'bcdboot.exe'
This will make [disk 2] bootable from 1st partition.
For doing 3.) you can also use Win 7 "Automatic Recovery" - run it up to three times with rebooting after each until no errors reported.

4. Connect disks as they where before.
After booting to Ubuntu you have to run 'grub-install' to update boot config for the moved Windows boot partition.
 

My Computer

Computer Manufacturer/Model Number
Acer Notebook
OS
Win 8 RP, Win 7, XP
CPU
Intel
I would clean reinstall Win7 to it's HD with Ubunutu HD unplugged: Perfect Reinstall

After install plug back in Ubuntu and boot it only via the BIOS one-time Boot menu key - remove GRUB if it is unnecessarily installed.
 
1) Burn the ISO to DVD disk.
2) Physically disconnect the Linux HD.

Mmm, OK thanks, but my problem is precisely that I don't have the ISO anymore.
 

My Computer

OS
Windows 7 Home Premium N 64bit
1.) Download a Windows 7 Recovery image - ~150MB
This sounds great. Where can I download one ?


you have already altered some files on this partition using it as Windows 7 'system' partition ! (changes are mainly in \Boot folder and BCD store)

Yep, that's the whole point. Will the Windows 7 Recovery image you mentionned above enable me to somewhat revert this partition to an "install ready" state ?

To make [win sys] your boot partition you have to mark it active - use Windows Disk Management.
I tried this before. Result : BOOTMGR missing. The problem, once again, is that said BOOTMGR nested itself without my knowledge nor consent in the [win install] partition. Catch 22 anyone ?



To make [disk 2] bootable you have to connect it as theog described in post above.
[disk 2] is bootable, no issue here, I've just booted from it.


3.) Boot from Win 7 Recovery USB/CD or from Win 7 Install USB/DVD and select Recovery - on recovery console:
a) write mbr & boot sector using 'bootsect.exe' (gives help with /?)
b) recreate boot config data & bootmgr using 'bcdboot.exe'
This will make [disk 2] bootable from 1st partition.
For doing 3.) you can also use Win 7 "Automatic Recovery" - run it up to three times with rebooting after each until no errors reported.

4. Connect disks as they where before.
After booting to Ubuntu you have to run 'grub-install' to update boot config for the moved Windows boot partition.
I take good note, this really seems the way to go.
Alternate question though : since bootsect.exe and bcdboot.exe are already present on my HD, both in the [win sys] and [win install] partition, would there be a way for me to use them already, forgoing steps 1 to 3 ?


:DAnyway, many thanks for your much detailled & helpfull answers :D
 

My Computer

OS
Windows 7 Home Premium N 64bit
I would clean reinstall Win7

Even if I could, that would be an overkill with many unpleasant side effects, like ruining a patiently handcrafted and otherwise perfect configuration, including a finely tuned IBM Lotus Domino server.

Anyway, the main point is that, as of now, I just can't.
 

My Computer

OS
Windows 7 Home Premium N 64bit
Using bootsect.exe you can write always a partition boot record (PBR) to any Windows mapped partition. The MBR is written only to first disk !

The boot sequence for Windows XP or later is always - first disk MBR and active partition boot record from first disk then ntldr or bootmgr.

bcdboot repairs or creates [bootmgr & \boot folder] on the "system" or on the partition specified with parameter /s. Here the "source" parameter (letter:\windows) is crucial - it must point to latest Windows version on your computer in a dual-multi boot scenario.

All advice given to disconnect other disks and connect disk to be repaired to be the only one connected is because then Windows Startup Repair has best results. It is better to keep things simple - best is if there are no choices and parameters to specify and the user can go only one way (the right way) to get things done.

Download link for Windows 7 Recovery disks:
http://www.proposedsolution.com/downloads/download-windows-7-vista-bootable-disc-cd-dvd-iso-image/
 
Last edited:

My Computer

Computer Manufacturer/Model Number
Acer Notebook
OS
Win 8 RP, Win 7, XP
CPU
Intel
This might be usefull. If you have expanded installer in a folder or partition. you can use UltraISO or some other program to build a bootable DVD installer. In ultra click on bootable then load boot file. When the windows opens find the installer files and go to the boot folder and select or type into file area etfsboot.com and click open. Now ultra should show that it is bootable. Next drag folders and files to top window from installer files then burn dvd. You should now have a bootable installer to use to install or repair windows7.

TJG :)
 

My Computer

Computer Manufacturer/Model Number
Dell Dimension E510
OS
Windows 7 Home Premium 32bits
CPU
Intel Pentium 4 521
Motherboard
Dell Inc. ORD203
Memory
DDR2 4096MBytes
Graphics Card(s)
ATI Radeon HD 2400 Series
Sound Card
On-Board Sigma Tel High Definition Audio
Monitor(s) Displays
Dell ST2210 1920x1080x60 hertz
Hard Drives
320 SATA
500 SATA
PSU
Antec 430 Watts
Case
Dell
Cooling
Standard Fans
Thanks for all the help !

This thread is nearing closure.

The main breakthrough came when I discovered EasyBCD. Great tool with good online documentation.
Using this tools and the inputs from this thread, I fumbled my way to a solution.

Main steps :
* Using EasyBCD, set correct MBR to [disk 2]
* Using EasyBCD, set correct BCD and bootmgr to partition [win sys] of [disk 2]
--> now booting Windows straigh from [win sys] without any side loop through [win install]

* observed that the BCD on [win install] partition was automatically backed up at earlier, happier times. Reinstating this backup to be the acting BCD for this partition made the deal : now if I boot from this partition, via grub,I effectively boot to the install and repair process.

While I was there, I used this procedure (option 2) to build a bootable install USB stick.

Finally, back under Linux, a sleak mkisofs enabled be to back up the [win install] partition as a sanctuarized iso image.

Additional resources I found useful :
Understanding the Startup Process - Windows 7 Tutorial
Boot Configuration Data in Windows Vista
Windows Vista startup process - Wikipedia, the free encyclopedia

Still not completely sure I understand everything I did, but well ... it works as intended and I certainly learned a thing or two in the process.
 

My Computer

OS
Windows 7 Home Premium N 64bit
...
 
Last edited:

My Computer

OS
Windows 7 Home Premium N 64bit
Back
Top