Windows 7 and windows PE boot


  1. Posts : 1
    windows 7 enterprise 64 bit
       #1

    Windows 7 and windows PE boot


    Hi i am trying to build a WDS setup where a Recovery partition is created. The recovery partition have the drive letter R, and the content of the drive corosponds to that of a bootable USB or CD.
    I want to add my R drive to my BCD file and create a Boot loader entry that makes it possible to boot into the windows setup on the recovery drive and install windows anew on the C drive.
    For this purpose I have created the following script.
    SCRIPT START ……………………………………………………….
    bcdedit /set {default} description "Recovery"
    bcdedit /copy {default} /d "Windows"

    bcdedit /deletevalue {default} nx
    bcdedit /deletevalue {default} inherit
    bcdedit /deletevalue {default} resumeobject
    bcdedit /set {default} device ramdisk=[R:]\sources\boot.wim,{ramdiskoptions}
    bcdedit /set {default} path \Windows\System32\Boot\winload.exe
    bcdedit /set {default} locale en-US
    bcdedit /set {default} osdevice ramdisk=[R:]\sources\boot.wim,{ramdiskoptions}
    bcdedit /set {default} systemroot \Windows
    bcdedit /set {default} detecthal Yes
    bcdedit /set {default} winpe Yes

    setlocal enabledelayedexpansion

    set description=Windows
    for /f "tokens=1*" %%a in ('bcdedit.exe') do (
    if /i "%%a"=="identifier" (set identifier=%%~b)
    if /i "%%a %%b"=="description %description%" (goto :descriptionFound)
    )
    echo Did not find description matching '%description%'

    exit /b 1

    :descriptionFound

    echo Found description %description% at ID %identifier%.

    ECHO bcdedit /default %identifier%

    bcdedit /default %identifier%
    bcdedit /displayorder %identifier% /addfirst
    bcdedit /timeout 5
    SCRIPT END ……………………………………………………….

    The script executes perfectly but when I reboot and chose the Recovery boot option Windows PE ends in blue screen of death after the first loading screen.

    I have tried creating the same entry using the EasyBCD software and that works perfect, can anyone help ??
      My Computer


  2. Posts : 7,107
    W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
       #2

    Hi Anders,
    I do know that W7 must be the PRIMARY OS boot option, otherwise causes all kinds of probs possibly yours as well.

    Roy
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:15.
Find Us