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; Yep- have also rebuilt the EFI partition in this thread - it didn't help. I think the message that the bcd data couldn't be updated was misleading... 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?


    Yep- have also rebuilt the EFI partition in this thread - it didn't help.

    I think the message that the bcd data couldn't be updated was misleading or a consequence of sthg else. But it seems it's not set correctly as I said by selecting on of the advanced options, yet it can be written with bcdedit.

    My guess is that somewhere there's a partition id number discrepancy, but I've no idea where..

    Your post is a very good record of actions taken.
     
    dalchina, Sep 25, 2017
    #16
  2. topgundcp Win User

    I have questions for you:
    • if you open admin command, copy and paste: reagentc /boottore&shutdown /r /f /t 00
      Does it boot into recovery ?
    • Is the disk layout still look like the screen you posted in the other thread with 2 recovery partitions (450MB and 480MB)?

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

      According to suggestions from the thread, you changed from partitiion 5 to partition 1 with reagentc, which in my opinion is not correct. When you upgrade, windows creates an extra 450MB after C: and put a new Winre.wim there and set it to partition 5 (counting from left to right)
     
    topgundcp, Sep 25, 2017
    #17
  3. Bree New Member
    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 {current}. This should match the 'Boot Configuration Data (BCD) identifier' shown by reagentc /info

    Somehow I'd managed to change mine and it was booting to a quite different recovery environment. I used reagentc to find the correct GUID and bcdedit to set it to boot correctly. This was back in Anniversary update, in case of further problems I kept a record of the information back then, and the updated information after the upgrade to Creators Update.

    I've attached my records in case they are of help.

    Interestingly, I've since discovered how my other system manages to boot to the recovery environment despite having no recovery partition (apparently the free upgrade to 10 was unable to find anywhere to put one, being an MBR which already had four partitions). The Windows RE location is shown by reagentc as:
    \\?\GLOBALROOT\device\harddisk0\partition3\Recovery\WindowsRE

    But partition 3 is my C: drive. The files that would normally be found in the recovery partition are instead in the hidden and inaccessible C:\Recovery folder, along with a 0 byte hidden file at the root of C: called $WINRE_BACKUP_PARTITION.MARKER
     
  4. dalchina New Member

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

    Thanks- looks very promising- will investigate tomorrow.
    However, what has persuaded me to discount the 480Mb recovery partition to date is its apparent lack of content:

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


    Here's the other one:

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


    (I'm guessing the two oddly named folders were added by Cryptoprevent when I allocated a drive letter when trying to fix things).
     
    dalchina, Sep 25, 2017
    #19
  5. Bree New Member
    If the content is missing, why not do a clean install to a spare HDD then copy the files from the recovery partition it creates? Then put back your proper drive(s) and put the files into the empty recovery partition.
     
  6. dalchina New Member
    .. it's a laptop... with an M2 SSD. Not something I wish to fiddle with, although it's very mch designed for people to take the back off and fiddle.

    Note that earlier I did a clean install, which was fine in this respect, then restored the system partition. Why do you see two recovery partitions? 'Cos I also did an in-place upgrade repair install.
     
    dalchina, Sep 25, 2017
    #21
  7. Bree New Member
    What alerted me to my problem was that making a system image had stopped including the recovery partition in the images (that and the unfamiliar RE I was booting to). It appears that the reagentc and bcdedit info has to be correct for the system to know where to find (or in your case upgrade) the WinRE. I suspect yours was incorrect before the upgrade to Creators hence the lack of files being put into what you'd expect to be the recovery partition to be used.

    I corrected mine before the upgrade to Creators, which did successfully upgrade my recovery partition. You can recognise a 1703 Advanced Start up by the white box around the selected option, 1607 and before didn't have that.
     
  8. topgundcp Win User

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

    Reagentc command is moving things in and out from the Recovery folder to C:\Windows\System32\Recovery
    NOTE:
    You need to set folder option to show protected operating system files to see them.
    reagentc /enable =====> moves Winre.wim to Recovery folder
    reagentc /disable =====> moves Winre.win to C:\Windows\System32\Recovery

    Apparently, when you run reagentc /setimage... The new Winre.wim might be deleted and shows empty in partition 5.
     
    topgundcp, Sep 25, 2017
    #23
  9. dalchina New Member
    I'll try selecting the second recovery partition and enabling that tomorrow, thanks. I have the wim file, which I generated specifically. I found it not present in C:\Windows\System32\Recovery; it now is, so I can see what happens quite easily when I run reagentc /enable
     
    dalchina, Sep 25, 2017
    #24
  10. lx07 Win User
    Disable it first. Then set the location, then enable.

    I'm not sure why you didn't to as @LCDR suggested though on your other thread. It would get rid of all your pointless partitions and make sure all others were up to date.

    It is easy - backup C, delete all partitions and clean install, restore C.
     
  11. dalchina New Member
    That's exactly what I did do. It's shown in the other thread and mentioned again.

    All my pointless partitions? How many do you think there are?

    There's one as far as I know, created when I subsequently did an in-place upgrade repair install.

    So what didn't I do that @NavyLCDR suggested?
     
    dalchina, Sep 26, 2017
    #26
  12. AndreTen Win User
    Interesting thread dalchina...

    One question: did you try to fix boot problems with Macrium. I know it's one of the most reliable programs (in that area too), just don't know if it diggs into repair section of boot.
     
    AndreTen, Sep 26, 2017
    #27
  13. dalchina New Member

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

    Yes in the first thread... it didn't help.

    This is a learning curve- which I could have done without really- all from when a smooth upgrade to the Creator's build led to the Advanced Startup options being unavailable.

    I have an entirely speculative idea- perhaps it was caused by my Anniversary build having an extra recovery partition remaining from an in-place upgrade repair many months before...

    Later on I'll try @topgundcp 's idea...
     
    dalchina, Sep 26, 2017
    #28
  14. AndreTen Win User
    Have to read through your other thread (why did you separate them?).

    When topgun (or was it Navy..) suggested you to clean install and restore just C: partition, you said you did. But you didn't clean install, just did in-place upgrade. I could misunderstood, of course.
     
    AndreTen, Sep 26, 2017
    #29
  15. dalchina New Member
    Hi, @topgundcp
    - that gives me a 454 'Unexpected error'

    Yes

    The command to set the recovery partition to partition 5 fails, as WINDOWSRE does not exist under RECOVERY
     
    dalchina, Sep 26, 2017
    #30
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