Jump to content

- - - - -

Win7 Corrupted Partition? BCDEDIT QUestions...

  • Please log in to reply
2 replies to this topic

#1 ruddykins



  • Members
  • 14 posts
    United States

Posted 02 August 2011 - 02:43 AM

Hey guys, I've got a doozie here. :cheers:

Short story: Quadcore Vista machine (installed on SSD). Upgraded to Win7 x64 (dual boot - Win7 on Second SSD). BCD patched using EasyBCD like a year ago. My dad wanted to rearrange the drives in his machine. (Replace a 1TB mirror with a 2TB mirror, 2 new drives.)

Remove the Vista SSD, no more boot. Plug the Vista SSD back in, no more boot. Aw crap. Way too many apps and such to reinstall at this time, MAJOR problem. I'm looking to try to repair in place.

I did the instructions here using the Win7x64 Recovery Command Prompt and I created the missing BCD store on the Win7 SSD.

I tried both manual repair, and Nuclear Holocaust, but both had to be modified in some way...

Manual process

bootrec.exe /fixmbr (SUCCESS)
bootsect.exe /nt60 all /force (SUCCESS)
attrib -h -s C:\boot\BCD (SUCCESS)
del C:\boot\BCD (SUCCESS)
bootrec.exe /rebuildbcd (FAIL)

Nuclear Holocaust
NOTE - I had to add the BOLD stuff otherwise it couldn't find the BCD store.

bootrec.exe /fixmbr
x:\boot\bootsect.exe /nt60 all /force
attrib -h -s C:\boot\BCD
del C:\boot\BCD
bcdedit /createstore c:\boot\bcd.temp
bcdedit.exe /store c:\boot\bcd.temp /create {bootmgr} /d "Windows Boot Manager"
bcdedit.exe /store c:\boot\bcd.temp /import c:\boot\bcd.temp
bcdedit.exe /store c:\boot\bcd.temp /set {bootmgr} device partition=C:
bcdedit.exe /store c:\boot\bcd.temp /timeout 10
attrib -h -s C:\boot\bcd.temp
del c:\boot\bcd.temp
bcdedit.exe /store c:\boot\bcd.temp /create /d "Windows 7" /application osloader
bcdedit.exe /store c:\boot\bcd.temp /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} device partition=C:
bcdedit.exe /store c:\boot\bcd.temp /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} osdevice partition=C:
bcdedit.exe /store c:\boot\bcd.temp /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} path \Windows\system32\winload.exe
bcdedit.exe /store c:\boot\bcd.temp /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} systemroot \Windows
bcdedit.exe /store c:\boot\bcd.temp /displayorder {c0dfc4fa-cb21-11dc-81bf-005056c00008}
bcdedit.exe /store c:\boot\bcd.temp /default {c0dfc4fa-cb21-11dc-81bf-005056c00008}

I also went into DISKPART and did BOTH
SELECT DISK 1 Volume 0 ACTIVE (Dosen't Boot)
SELECT DISK 1 Volume 1 ACTIVE (Boots old recovery)

Current boot error is a Winload.exe 0xc0000428.
Verified that Winload.exe is there.
sfc /SCANNOW (including offline switches) will not run with various errors.
bootrec /rebuildbcd and got an element not found error (but c:\windows found)

WOW....I was collecting info to ask for help, and then I found this in the forums and the command that I was missing was:

bcdboot c:\windows /s c:

I wasn't going to post since everything is working fine now, but I figured you guys might enjoy this. :)


Edited by ruddykins, 02 August 2011 - 02:55 AM.

#2 boyans



  • Members
  • 13 posts
  • Interests:Music

Posted 02 August 2011 - 05:55 AM

When installing several Windows versions in a dual-boot or multi-boot system the boot environment of the latest Windows version MUST be in control of the booting or else booting problems will follow. So when installing Vista and Windows 7 in a dual-boot Windows 7 boot environment has to be in control.

The tool "Dual-boot Repair" does just that. It can be downloaded from http://boyans.my3gb.com. It has an "Automatic repair" option that when selected scans the system for installed Windows versions and selects the latest Windows version as "master". Then it installs this "master" boot environment to the active partition using bootsect.exe and bcdboot.exe supplying the correct parameters.

The next step would be to have loader entries in the BCD for all installed Windows versions. This is a done automatically selecting "Create missing Windows loaders" in the tool "Visual BCD Editor" v.0.9.2. One one go loaders for XP, Vista, Windows 7 and VHD's are created (if missing).

#3 ruddykins



  • Members
  • 14 posts
    United States

Posted 03 August 2011 - 01:36 AM

Thanks! I'll take a look at that... :dubbio:

Another quick question for anyone that might know...

Is there a simple way to boot into Win7, capture all the files/everything from the OS install (Apps, and/or everything), copy it into an image file?

And then the next step, an easy way to re-deploy that onto another harddrive and/or new computer?


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users