Sunday, 26 May 2019

boot - How do you recreate the System Recovery environment in Windows 7?


I'm running Windows 7 Home Premium RTM (64-bit) and I want to take advantage of the system recovery tools (eg the Command Prompt) without using the Windows 7 DVD. My understanding is that this environment (WinRE) should be installed to your HDD by default as part of the Windows 7 installation. However, when I hit F8 on boot and select "Repair", I get:



Windows failed to start. A recent hardware or software change might be the cause. To fix the problem...


Status: 0xc000000e


Info: The boot selection failed because a required device is inaccessible.



The "Info" line seems like the smoking gun. My next step was to boot from the Windows 7 DVD, and choose "Repair". It indicated my Recovery Environment wasn't on the Windows 7 boot menu (perfect) and offered to fix it. I said yes and rebooted, however same issue as above. In addition, when I booted in to Windows 7 and I looked at the boot menu options, the recovery/repair option was not there. Only my Windows installation.


Finally, I ran the Disk Management tool (diskmgmt.msc) and took a look at the contents of my "System Reserved" partition (which was set to "Active" as normal). It's unclear to me what the contents should look like, however it is my understanding that the WinRE environment gets installed to this partition.


(As part of the above troubleshooting I followed How do I fix a boot process that broke because of a failed hard drive? (Windows 7) which lead to http://www.sevenforums.com/tutorials/668-system-recovery-options.html).



Answer



For recovery on F8 you need:


a special loader entry and a device options entry in the BCD and two files on disk: "winre.wim" + "boot.sdi" and some linking between them.


I have posted here -->Windows 7 boot some info on "good" BCD entries created during Windows 7 install to VHD (a litle more complicated - but the principle is the same).


For (during) a Windows 7 installation 3 entries in the BCD store are created:


1.) Windows 7 loader entry


2.) Windows 7 recovery loader entry


3.) device options entry for the recovery loader.


There is a link from 1.) to 2.) and a link from 2.) to 3.) implemented through {GUID}'s (every entry in the BCD is regarded as object and has a {GUID}).


I intend to post a step by step "How-to repair the 'Repair my computer' option on F8" only by repairing Windows BCD and copying two files. (check link above next week).


Added: In Dual-boot Repair - second part of page explained how to add 'Repair your computer' on F8 (advanced boot options) if missing. Download link for Windows 7 32-bit and 64-bit recovery files.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...