locked
Using WinPE to rescue invalid or corrupt BCD store RRS feed

  • General discussion

  • Since few days ago, I've been attempting to setup Windows To Go USB bootable drive myself. But somehow I messed up the BCD store with the incorrect bcdboot.exe parameter and the slate doesn't boot anymore. It has a white stuck cursor on the upper-left corner during boot. I've been frantically searching for a solution to un-brick this nice slate, and finally I found one to share, and hope that nobody would experience the pain again.

    This plan includes steps to create a WinPE on USB drive to fix corrupt or invalid default BCD entry in Samsung slate.

    Requirement:
    Samsung slate (UEFI) on dock.
    USB drive (~204MB required)
    USB keyboard connected to slate dock.
    Assessment and Deployment Kit


    1. Format USB drive as FAT32 on a Win7/Win8 PC. In this sample, USB mount point become F: when finished.

    diskpart.exe
    select disk 1 (careful! select USB drive)
    clean
    create partition primary
    select partition 1
    active
    format quick fs=fat32 (Slate can only USB boot to FAT32, not NTFS)
    assign
    exit

    2. Install ADK:
    In Assessment and Deployment Kit, run "Windows PE x64-x86_en-us.msi"

    3. Create WinPE USB drive
    C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Pr
    einstallation Environment\amd64\Media>xcopy * /e f:\
    C:bootmgr
    C:bootmgr.efi
    C:Boot\BCD
    C:Boot\boot.sdi
    C:Boot\bootfix.bin
    C:Boot\memtest.exe
    C:Boot\en-us\bootmgr.exe.mui
    C:Boot\en-us\memtest.exe.mui
    C:Boot\Fonts\chs_boot.ttf
    C:Boot\Fonts\cht_boot.ttf
    C:Boot\Fonts\jpn_boot.ttf
    C:Boot\Fonts\kor_boot.ttf
    C:Boot\Fonts\malgun_boot.ttf
    C:Boot\Fonts\meiryo_boot.ttf
    C:Boot\Fonts\msjh_boot.ttf
    C:Boot\Fonts\msyh_boot.ttf
    C:Boot\Fonts\segmono_boot.ttf
    C:Boot\Fonts\segoe_boot.ttf
    C:Boot\Fonts\wgl4_boot.ttf
    C:Boot\Resources\bootres.dll
    C:EFI\Boot\bootx64.efi
    C:EFI\Boot\en-us\bootx64.efi.mui
    C:EFI\Microsoft\Boot\BCD
    C:EFI\Microsoft\Boot\memtest.efi
    C:EFI\Microsoft\Boot\en-us\memtest.efi.mui
    C:EFI\Microsoft\Boot\Fonts\chs_boot.ttf
    C:EFI\Microsoft\Boot\Fonts\cht_boot.ttf
    C:EFI\Microsoft\Boot\Fonts\jpn_boot.ttf
    C:EFI\Microsoft\Boot\Fonts\kor_boot.ttf
    C:EFI\Microsoft\Boot\Fonts\malgun_boot.ttf
    C:EFI\Microsoft\Boot\Fonts\meiryo_boot.ttf
    C:EFI\Microsoft\Boot\Fonts\msjh_boot.ttf
    C:EFI\Microsoft\Boot\Fonts\msyh_boot.ttf
    C:EFI\Microsoft\Boot\Fonts\segmono_boot.ttf
    C:EFI\Microsoft\Boot\Fonts\segoe_boot.ttf
    C:EFI\Microsoft\Boot\Fonts\wgl4_boot.ttf
    C:EFI\Microsoft\Boot\Resources\bootres.dll
    C:en-us\bootmgr.efi.mui
    38 File(s) copied

    C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Pr
    einstallation Environment\amd64\Media>cd..

    C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Pr
    einstallation Environment\amd64>md f:\sources

    C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Pr
    einstallation Environment\amd64>copy winpe.wim f:\sources\boot.wim
            1 file(s) copied.

    4. Plugin USB drive to slate. Press and hold Volume-Up and Volume-Down, then power up the slate. It should go into BIOS setup.
    In "Advanced Configuration", change "Attempt Secure Boot" to Disabled.
    Press Volume-Up and Volume-Down to exit, then "Save Changes and Reset".
    Power off the slate.

    5. Dock the slate, connect USB keyboard to dock.
    Press and Hold Volume-Up button, then power up the slate. It should boot into USB drive WinPE now.

    6. Use USB keyboard to issue commands, since onscreen keyboard is not available in WinPE.

    bcdedit /delete {bad-guid}
    bcdedit /default {C:-guid}
    bcdedit (write down the recoverysequence, next line will erase it)
    bcdboot c:\Windows

    bcdedit /set recoverysequence {previous guid from 2 steps back}
    bcdedit /set recoveryenabled yes
    bcdedit /deletevalue detecthal
    exit

    7. Verify slate can now boot back to c:\Windows.
    8. Set BIOS "Attempt Secure Boot" back to Enabled. USB drive can be removed now.

     


    Friday, September 23, 2011 4:19 AM

All replies

  • This is great info, and timely for me too.  I am trying to rebuild my Samsung tablet from //build/ and have it in a messed up state.  Could you tell me where I can download the Assessment and Deployment Kit.  Thanks!

     

    John Wiese (jwiese@microsoft.com), Sr. Architect Evangelist - Windows 8, Microsoft

     

    Wednesday, January 18, 2012 5:32 PM
  • Could you tell me where I can download the Assessment and Deployment Kit. Thanks!

     

     Hi John,

    You can download the ADK from the Connect site, you’ll find an invitation code inside the Folder they gave you at //build/ event, but as a Microsoft employee you can ask someone else from Microsoft ;)

     


    • Edited by Tofan Wednesday, January 18, 2012 9:31 PM
    Wednesday, January 18, 2012 9:21 PM
  • Hi how can this procedure be extended to revert to early Windows 8 configuration?  I installed an anti-virus and now I cannot boot my Win8 build tablet.  I know about teh recovery menu but is asking for a password I don't have.
    Friday, January 27, 2012 12:15 AM
  • Hi i do not speak english well..but i have the same problem i buy in US an pc slate... I am not familarwith tec.. can u send for me the file in order to repairmy slate?  il leavin in a french territory Martinique.. I neeed your help...


    matniksvt@hotmail.com
    • Edited by godier Saturday, August 18, 2012 3:09 PM
    Saturday, August 18, 2012 3:08 PM
  • can any body help me with this got stuck here dont no what to do!

    (In Assessment and Deployment Kit, run "Windows PE x64-x86_en-us.msi")

    Sunday, March 10, 2013 3:20 PM
  • Should be more instructions to point 4 above... here goes

    I haven't been able to get the tablet to boot from the USB Drive but I have got it to boot from a DVD/CD drive

    Have the Tablet 'NOT DOCKED' in Slate Mode

    Plugin USB DVD drive to slate.

    Press and hold Volume-Up and Volume-Down, then power up the slate.

    It should go into BIOS setup where you can select the USB DVD Drive *** DO NOT SELECT THE DRIVE YET *** (reason the touch screen doesn't function in this mode and you cant hit any key to boot fro USB - the boot from USB hit any key doesn't display when docked)

    Dock the Slate in the Keyboard

    Now select the boot from DVD Drive and 'hit any key to boot from DVD'

    You will then boot from DVD and be able to do a clean install and delete all the old partitions. Installing Windows 10 Enterprise as I type

    --------------------

    This is the Link to the current Windows ADK - Assessment and Deployment Kit

    https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx


    Mark Masiak

    Saturday, April 9, 2016 10:25 AM