After installing Windows 7, I found Winre.wim in C:\Recovery
folder. I wanted to create a separate recovery partition and set it up so that it will boot to Windows Recovery Environment. So I created a new primary partition formatted in NTFS. I rebooted with Windows 7 DVD, chose “Repair Your Computer.” and opened a Command Prompt. I typed the following commands:
C:
bootrec /fixboot
copy D:\bootmgr C:\
robocopy D:\Boot C:\Boot /E
robocopy D:\Recovery C:\Recovery /E
D: is the Windows 7 partition. I used bcdedit in the following way to enable Windows Recovery Partition:
bcdedit /create /d "Windows Recovery Environment" /application osloader
bcdedit /set {13800a57...} device ramdisk=[C:]\Recovery\Winre.wim,{ramdiskoptions}
bcdedit /set {13800a57...} osdevice ramdisk=[C:]\Recovery\Winre.wim,{ramdiskoptions}
bcdedit /set {13800a57...} path \Windows\System32\winload.exe
bcdedit /set {13800a57...} systemroot \Windows
bcdedit /set {13800a57...} winpe yes
bcdedit /displayorder {13800a57...} /addlast
Here, the UUID's have been abbreviated. However, Windows Recovery Partition seemed to be loading for a few seconds, then crashed with blue screen.
No comments:
Post a Comment