Windows 10: How does Windows boot to advanced recovery option e.g. command prompt?

Discus and support How does Windows boot to advanced recovery option e.g. command prompt? in Windows 10 Support to solve the problem; I had occasion to sort out booting to my recovery partition a while back. The GUID involved is the one shown by bcdedit as 'recoverysequence' for... Discussion in 'Windows 10 Support' started by dalchina, Sep 24, 2017.

  1. dalchina New Member

    How does Windows boot to advanced recovery option e.g. command prompt?


    @Bree
    Thanks, I'm missing
    recoverysequence {f1e6bbc2-051f-11e7-9da9-e89a8f988ded}



    How does Windows boot to advanced recovery option e.g. command prompt? [​IMG]
     
    dalchina, Sep 26, 2017
    #31
  2. dalchina New Member

    So, first considering topgundcp's idea of which recovery partition to select:

    I created a folder WindowsRE under Recovery in partition 5 (offline), booted and selected that partition as the recovery partition.

    I rebooted (SHIFT+ left click Restart)

    The Advanced startup options had the Win 10 white rectangle around them, but Command Prompt, System Restore and Startup Repair were missing.

    I discovered I still needed to run
    reagentc /enable

    This gave me all Advanced startup options and the missing BCD entry is now present, but...
    the PC still hangs on selecting e,g Command Prompt as before.


    How does Windows boot to advanced recovery option e.g. command prompt? [​IMG]



    How does Windows boot to advanced recovery option e.g. command prompt? [​IMG]
     
    dalchina, Sep 26, 2017
    #32
  3. dalchina New Member
    I did a then b as per original thread.
    a. Clean install, (worked) then restored image of C:
    b. Subsequent to that I tried an in-place upgrade repair install (hence my two recovery partitions).

    In this thread I was simply hoping to learn how this works, rather than investigate my particular problem.
     
    dalchina, Sep 26, 2017
    #33
  4. AndreTen Win User

    How does Windows boot to advanced recovery option e.g. command prompt?

    Thanks *Smile Interesting debate, happy to learn from you guys
     
    AndreTen, Sep 26, 2017
    #34
  5. topgundcp Win User
    - that gives me a 454 'Unexpected error' This tells me that the BCD is partially corrupted.

    The commands: shutdown.exe /r /o /f /t 00
    or: %SystemRoot%\System32\Cmd.exe /c reagentc /boottore&shutdown /r /f /t 00
    should boot into Recovery if everything is configured correctly.
    FYI, If Windows is configured correctly:
    • If Reagentc is disabled, you still can get into Recovery but with limited options.
    • If Reagentc is enabled, you'll get all options.
    • If you boot Windows using Recovery USB stick, You'll get into Recovery with couple of options missing.

    Here's my suggestion if you want to try:
    OPTION 1: Will save the trouble of re-install Windows.

    • Download the image of my first 3 partitions (450MB Recovery, 100 MB EFI partition, and 16MB unformatted primary)
      EFI_Boot-00-00.7z - Google Drive
    • Run Macrium and restore the image from step 1, overwriting your existing 1st three partitions, leaving C alone.
    • Delete the 490MB Recovery partition.
    • From Macrium, run fix boot problems.
    • Reboot. Open Admin command prompt then run Reagentc /info to make sure that it is enabled. If not, enable it.
      if failed to enable, reboot and try again.
    OPTION 2: Assuming you've already had Windows backup with Macrium.

    • Wipe out the first 5 parttiions. (450MB, 100MB, 16MB, C Drive, 480MB)
    • Fresh install Windows 10
    • Restore C drive from backup image, run fix boot problems
    • repeat step 5 from OPTION 1 above.
     
    topgundcp, Sep 26, 2017
    #35
  6. dalchina New Member
    Many thanks, will take a look when time permits.

    If the BCD data is corrupted, I'm surprised rebuilding the EFI partition, or clean installing and restoring the Windows partition didn't resolve this.
     
    dalchina, Sep 28, 2017
    #36
  7. lx07 Win User
    Are you saying that after you did a clean install you did a repair install and it made another recovery partition? That never happens - repair install (or upgrade) only makes a new partition if the existing recovery partition is too small (unless this is a new bug).

    It seems to me you didn't do a clean install - what you did was delete C. The installer found not enough space for recovery and made another. Back up C, delete all partitions and do it again.

    If you have one instance of WinRE.wim and it is registered then it will work (could be on C or on recovery partition).

    If you don't have WinRE.wim registered it won't work. There isn't much more to it than that really.

    The other possibility is you have to reset NVRAM but that is more a boot issue.
     
  8. dalchina New Member

    How does Windows boot to advanced recovery option e.g. command prompt?

    Thanks for your interest.

    As you suggest, I may just repeat the whole process again, as it makes little sense that a fully working clean install should lose access to the advanced startup options as a result of restoring the Windows partition, but not for the reason you suggest.

    Now I do know what a clean install is. I deleted all the Windows partitions on my SSD.
    All the partitions were thus replaced when I did a clean install.
    Following the clean install I had exactly the correct number of partitions.
    I did not only delete the Windows partition.

    I have done this procedure previously - a year ago- (Clean install and replace the Windows partition from and image)

    And finally, I did insert the installation DVD and progress through a normal installation process.

    Subsequent to having done all that, finding the advanced startup options now missing, I did the in-place upgrade repair install.

    That's the second time I've seen an in-place upgrade repair install create a second recovery partition (the other was a year ago or so).

    This time I know a bit more, so can try to investigate what's happening,
     
    dalchina, Sep 28, 2017
    #38
  9. lx07 Win User
    The only difference between what you have done (and what works for me) is I made the partitions manually and made recovery 500MB and put it after C as recommended here UEFI/GPT-based hard drive partitions | Microsoft Docs

    Could be Windows Upgrade team doesn't talk to Install team.

    It is worth a try though. 500MB after C works for me (but then 450MB before C worked in the past too but I've not tried it on 1507).
     
  10. topgundcp Win User
    Rebuilding the BCD will only fix boot problems, it does not fix the Recovery problem, you'd need to use reagentc for this.

    FYI, there's other programs, when run also modify the BCD. For example, when you run from admin command: reagentc /boottore
    an entry will be added to the BCD:
    bootsequence {31416d29-611c-11e6-8f31-90f4a30e3b92} ====> GUID of the Recovery partition.pointing the GUID of the Recovery partition so when you restart, Windows will get into the Recovery environment dirrectly.

    In addition, the file "ReAgent.xml" under: C:\Windows\System32\Recovery is modified with info as shown:
    When Eanabled
    <?xml version='1.0' encoding='utf-8'?>

    <WindowsRE version="2.0">
    <WinreBCD id="{00000000-0000-0000-0000-000000000000}"/>
    <WinreLocation path="" id="0" offset="0" guid="{00000000-0000-0000-0000-000000000000}"/>
    <ImageLocation path="" id="0" offset="0" guid="{00000000-0000-0000-0000-000000000000}"/>
    ......

    When Disabled:
    <?xml version='1.0' encoding='utf-8'?>

    <WindowsRE version="2.0">
    <WinreBCD id="{31416d2b-611c-11e6-8f31-90f4a30e3b92}"/>
    <WinreLocation path="\Recovery\WindowsRE" id="0" offset="1048576" guid="{f32021c5-b6b3-4c83-8a3c-ad3d2eac74d0}"/>
    ......

    As you can see, Windows save all the info for the Recovery partition. So, when you re-enable it, it will set to the correct location.


    OPTION 1 mentioned above was used successfully to fix the exact same problem for a friend in the past.
     
    topgundcp, Sep 28, 2017
    #40
  11. AndreTen Win User
    @dalchina
    Do you now this toy? Bootice

    See it somewhere and remembered this thread...
     
    AndreTen, Sep 29, 2017
    #41
  12. Bree New Member
    Remembering your problems, I tested advanced recovery after upgrading to Fall Creators Update. All working in 1709 as it was in 1703 (and 1607 before that).
     
  13. dalchina New Member

    How does Windows boot to advanced recovery option e.g. command prompt?

    Thanks.. good to hear. I've yet to pluck up courage (or be bothered enough??) to try again, having been busy with other things. I intend to follow my usual policy of not upgrading
    a. Until Aeroglass is compatible
    b. The first major update has been released...
     
    dalchina, Oct 17, 2017
    #43
  14. dalchina New Member
    Thanks.. good to hear. I've yet to pluck up courage (or be bothered enough??) to try again, having been busy with other things. I intend to follow my usual policy of not upgrading
    a. Until Aeroglass is compatible
    b. The first major update has been released...
     
    dalchina, Oct 17, 2017
    #44
  15. NavyLCDR New Member
    Have you looked to see how many recovery partitions you have now?
     
    NavyLCDR, Oct 17, 2017
    #45
Thema:

How does Windows boot to advanced recovery option e.g. command prompt?

Loading...
  1. How does Windows boot to advanced recovery option e.g. command prompt? - Similar Threads - does boot advanced

  2. No Command Prompt in Advanced Startup

    in Windows 10 Gaming
    No Command Prompt in Advanced Startup: Hi, I tried to recover my password in advanced startup on my HP laptop Windows 11 but unfortunately, I can't find the command prompt when I go in to troubleshoot I see only the start-up settings and UEFI firmware I can't find the command prompt please help thanks by the way I...
  3. No Command Prompt in Advanced Startup

    in Windows 10 Software and Apps
    No Command Prompt in Advanced Startup: Hi, I tried to recover my password in advanced startup on my HP laptop Windows 11 but unfortunately, I can't find the command prompt when I go in to troubleshoot I see only the start-up settings and UEFI firmware I can't find the command prompt please help thanks by the way I...
  4. How can i boot into advanced recovery options

    in Windows 10 Gaming
    How can i boot into advanced recovery options: I've been having this "SYSTEM_THREAD_EXCEPTION_NOT_HANDLED" problem for 2 days now it says "tcpip.sys" is what failed i know i have to go into advanced recovery options to fix this but the problem is that i can't get into advanced recovery options i tried shutting the pc down...
  5. How can i boot into advanced recovery options

    in Windows 10 Software and Apps
    How can i boot into advanced recovery options: I've been having this "SYSTEM_THREAD_EXCEPTION_NOT_HANDLED" problem for 2 days now it says "tcpip.sys" is what failed i know i have to go into advanced recovery options to fix this but the problem is that i can't get into advanced recovery options i tried shutting the pc down...
  6. Administrator account disabled and Command prompt missing in advanced option

    in Windows 10 Gaming
    Administrator account disabled and Command prompt missing in advanced option: Dear Microsoft, I'm facing a problem that is actually bad .I can't login to my administrator account cuz it's disabled + Command Prompt missing in Advanced Option... Please reply...
  7. Administrator account disabled and Command prompt missing in advanced option

    in Windows Hello & Lockscreen
    Administrator account disabled and Command prompt missing in advanced option: Dear Microsoft, I'm facing a problem that is actually bad .I can't login to my administrator account cuz it's disabled + Command Prompt missing in Advanced Option... Please reply...
  8. Advanced Options Command Prompt Problem

    in Windows 10 Ask Insider
    Advanced Options Command Prompt Problem: Ok so I set a net user <username> /time command and I need to remove the command in advanced options command prompt. When the try to execute the command net user <username> /time:all. It returns username not found. I am confused about what is going wrong submitted by...
  9. Stuck in command prompt loop of advanced recovery

    in Windows 10 Installation and Upgrade
    Stuck in command prompt loop of advanced recovery: Hello All, I tried to boot in safe mode. At login screen 1. Power -> Shift+restart 2. Troubleshoot 3. Advanced options 4. here i was supposed to select STARTUP SETTINGS, but i selected COMMAND PROMPT by mistake. Now it is asking for an admin account password ad...
  10. Not able to see Command prompt in Advance options after Restart

    in Windows 10 Installation and Upgrade
    Not able to see Command prompt in Advance options after Restart: I am not able to see Command prompt in Advance options after Restart, i want run a script in Windows RE through that to fix my software. https://answers.microsoft.com/en-us/windows/forum/all/not-able-to-see-command-prompt-in-advance-options/d9e1a5dd-83b3-4599-aa0d-d1672faa1f36