Share via

Can't Fix Wrong Active Drive - Boot drive on different disk than system reserved active/primary volume - No Command Prompt Access in Windows RE

Anonymous
2023-08-28T03:04:40+00:00

Hi all,

I know similar questions to this have been asked before, but I have tried just about everything and am at a loss.

I went to install some new hard drives in my system today, I wanted to replace some old small SSD's that I had already made backups of anything important from.
Realized the computer would not start (boot-loop at the bios check screen) once I removed one of those SSD's, but started right up fine when I put it back in. This seemed strange to me as it was NOT my C boot drive.

Looking at disk management you can see the problem, my NVMe (465gb) Disk 1 drive houses my boot volume (C:), but my system reserved active primary drive is on disk 0 (223gb ssd):

A couple things I'll note here:

  • For some reason I cannot extend my boot drive to incorporate those two unallocated spaces.
  • I can convert the 502mb to a simple volume, I can also shrink the boot drive and make a simple volume from that (as shown below) but,
  • I cannot set any of them to "active".

In the process of trying to understand what was going on, I tried booting the computer with just the NVMe and a bootable W10 usb. I wanted to see if I could do a fresh install on C, which I figured would be a good last resort. However when I tried to select the partition I got this message:

(ignore here that there are other drives installed, I was recreating for the purposes of explanation). This confused me as, i am 99% sure i am not running a legacy BIOS, but just to be sure I checked msinfo32, and low and behold...windows believes I am running legacy bios

I'm having a hard time wrapping my head around this becuse the X470 is definitely a UEFI bios. Here is a picture from my bios screen:

  • UEFI: Built-in EFI Shell does not boot if this is selected
  • Windows Boot Manager (Samsung SSD 970 EVO 500GB) does not boot if this is selected
  • NVME: Samsung SSD 970 EVO 500GB confusingly, this boots (the hard drive that has to be installed to boot is not this drive)
  • USB Flash MemoryPMAP boots the usb w10
  • UEFI: USB flas..., I haven't tried this one, showed up with the usb stick, so i assume it doesnt matter.

So then checked the properties of the two drives in disk management, and the boot drive is GPT, but the SSD with the system recovery partition is MBR:

I have a vague idea of how this happened. I built this computer in mid 2018, and that small SSD was definitely from an earlier build. I didn't know you shouldnt have more than your main drive installed when first setting up windows.

So after doing some more reading, it sounded like this should still be an easy fix, using a utility called mbr2gpt. I tried to follow directions and run it from the command prompt in Windows Recovery Environment (shift-restart), but whenever I select command prompt from the troubleshoot>advanced options>command prompt, my computer IMMEDIATELY resets itself.

So i'm at a bit of a loss here...

The computer runs fine if the old ssd is installed.

If I remove the SSD I can't boot, but I also can't repair, or even install a new copy of windows from scratch. This is especially confusing to me as at that point the only drive installed at that point is GPT, and as far as I understand the system is certainly UEFI compatible, but windows will not let me proceed using a GPT drive.

Other things I have tried:

  • I looked to see if I could just manually backup the system reserved D: drive, but I cannot see any files in it (I am the only user/admin, and have show hidden files enabled).
  • I have run system filechecker, (sfc /scannow), it said it found and fixed corrupted files, but nothing seems to have changed.
  • I have run bootrec /fixmbr, /fixboot, and /rebuldBcd in the command prompt by using a bootable w10 usb, again, didnt seem to have any effect. It is interesting i can get to command prompt this way, but i can't seem to run mbr2gpt from here.
  • It appears using DISKPART I can set the system reserved (D:) drive as inactive, and I can probably set the new partition on C as active, and can creat a boot configuration file on that partition using BCDboot, However I am afraid to restart after doing that as it seems like I am going to end up with a completely unbootable system as I still cannot set my C drive or the new partition to primary.
  • I also noticed CSM mode is enabled. I tried deactivating this, but then i seem to be stuck in a bootloop, but nothing shows up on screen. Holding Delete still does bring me back into the BIOS menu.

Any recommendations would be greatly appreciated. I also assume I am misunderstanding a few things- this is all above my head, so please feel free to correct any incorrect assumptions I may be making, or ask anything that I may have left out.

Windows for home | Windows 10 | Install and upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

9 answers

Sort by: Most helpful
  1. Anonymous
    2023-09-08T06:21:33+00:00

    (1)

    (a) Were the graphical glitches occurring during the lightning boot or afterward? I guess I wouldn't worry unless it carried on after the boot was done. Then I would suspect drivers. Anyway, it's good the glitches have gone. I hope the boot hasn't slowed a lot.

    (b) That is right, is not good to have two system partitions plugged in at once. You may plug the SSD in only to quickly wipe it before a reboot. At least the System Reserved partition that is on it must be deleted.

    (2) I wish you didn't have a dynamic disk (your Disk 1) mainly because I think it is an unnecessary complexity. I'm not sure it makes sense to have just one. I think it is a way to combine disks so that one partition can span the space on multiple disks. But your Disk 1 is 1 TB huge -- how can you need to grab more space than that for a partition? And/or one dynamic disk can be an automatic backup of the other & vice versa. I'd be afraid to do any of that, myself, thinking Windows can choke on it.

    (3) Ah -- nice! Your recovery environment (RE) has gone into the Recovery partition on the NVMe, so says your ReagentC...!...

    Windows RE location: \?\GLOBALROOT\device*harddisk6**partition3*\Recovery\WindowsRE

    (a) I've seen it be more trouble to accomplish that in other threads. Test it this way: Click any Power icon, then hold Shift as you click Restart. It should reboot to the Choose an Option screen. Does it have the full panoply of options? For instance, there should be at least six at "Troubleshoot > Advanced Options". Then, get back to the first screen & click Continue to return to Windows. All is well with that, then.

    (b) Referenced code in your BCD indeed loads the RE (WinRE.wim) from the NVMe Recovery partition. But there also is unreferenced code in your BCD to load it from C:\Recovery\WindowsRE. So, let's see whether there is a copy of it there too. Enter the following at an Admin Command Prompt...

    DIR C:\Recovery\WinRE.wim /a <<<Does WinRE.wim exist there?

    If that says, "file not found", (to be neat) let's delete the extraneous lines from the BCD...

    BCDEdit /Delete {d3d6bda6-888d-11e8-a6a9-b3e2d28b7c04}

    That's just to be neat. The lines do no harm since they are not referenced.

    (4)

    Image

    We want that 16 MB of unallocated space to be an MSR (Microsoft Reserved) partition. It belongs right there between EFI & the Windows partition. Although you boot & run fine without it, someday some feature of Windows (maybe BitLocker?) might want to use it. Or a 3rd-party software might want to use it. Here is what that looked like in DiskPart (when it was Disk 1)...

    Partition ### Type          Size       Offset

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

    Partition 1     System     101 MB   502 MB <<<EFI. 101+502=603

    Partition 2      Primary    464 GB    619 MB <<<Windows starts at 619.

    Partition 3      Recovery 531 MB   465 GB <<<Recovery

    Here is how to create the MSR...

    DiskPart <<<Enter DiskPart

    List Disk <<<Show disk numbers

    Select Disk 6 <<<Select the NVMe -- IF it is still 6

    List Part <<<Show its partitions -- should look exactly as above

    Create Partition MSR Size=16 Offset=603 <<<Create MSR at offset 603

                                                                             &lt;&lt;&lt;It will occupy 603-618, inclusive.
    

    List Part <<<Show the new MSR

    Exit <<<Leave DiskPart

    The 2nd List Part should show the MSR. Reboot to be sure the whole system knows it. It will look like mine...

    Image

    It will be placed between System (EFI) & Primary (Windows) & will be type Reserved. I expect its partition number will be 4 before the reboot. After the reboot, I think it may remain as 4. That will be OK, if it does. The MSR doesn't show up in Disk Management. The 16 MB of unallocated space that is there now will have disappeared.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-09-08T01:04:58+00:00

    At first it was just booting so much faster it almost seemed like it was having graphical glitches, that seems to have gone away (and slowed down) once I added back my other hard drives.

    I was able to turn on secure boot, and have confirmed it is on using MSInfo32.

    At first I was unable to enable ReagentC, but after restarting it allowed me to:

    Microsoft Windows [Version 10.0.19045.3324]

    (c) Microsoft Corporation. All rights reserved.

    C:\Windows\system32>ReagentC /Info

    Windows Recovery Environment (Windows RE) and system reset configuration

    Information:

    Windows RE status:         Disabled 
    
    Windows RE location: 
    
    Boot Configuration Data (BCD) identifier: bbe128df-258d-11eb-8caa-85d5509b8e42 
    
    Recovery image location: 
    
    Recovery image index:      0 
    
    Custom image location: 
    
    Custom image index:        0 
    

    REAGENTC.EXE: Operation Successful.

    C:\Windows\system32>ReagentC /Disable

    REAGENTC.EXE: Windows RE is already disabled.

    C:\Windows\system32>ReagentC /Enable

    REAGENTC.EXE: Operation Successful.

    C:\Windows\system32>ReagentC /Info

    Windows Recovery Environment (Windows RE) and system reset configuration

    Information:

    Windows RE status:         Enabled 
    
    Windows RE location:       \\?\GLOBALROOT\device\harddisk6\partition3\Recovery\WindowsRE 
    
    Boot Configuration Data (BCD) identifier: dbb53d35-4d31-11ee-bfc5-fe2d33682867 
    
    Recovery image location: 
    
    Recovery image index:      0 
    
    Custom image location: 
    
    Custom image index:        0 
    

    REAGENTC.EXE: Operation Successful.

    Here is the BCDEdit /Enum All

    C:\Windows\system32>BCDEdit /Enum All

    Firmware Boot Manager


    identifier {fwbootmgr}

    displayorder {bootmgr}

    timeout 1

    Windows Boot Manager


    identifier {bootmgr}

    device partition=\Device\HarddiskVolume1

    path \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI

    description Windows Boot Manager

    locale en-us

    inherit {globalsettings}

    default {current}

    resumeobject {dbb53d33-4d31-11ee-bfc5-fe2d33682867}

    displayorder {current}

    toolsdisplayorder {memdiag}

    timeout 0

    Windows Boot Loader


    identifier {d3d6bda6-888d-11e8-a6a9-b3e2d28b7c04}

    device ramdisk=[C:]\Recovery\WindowsRE\Winre.wim,{d3d6bda7-888d-11e8-a6a9-b3e2d28b7c04}

    path \windows\system32\winload.efi

    description Windows Recovery Environment

    locale en-us

    inherit {bootloadersettings}

    displaymessage Recovery

    osdevice ramdisk=[C:]\Recovery\WindowsRE\Winre.wim,{d3d6bda7-888d-11e8-a6a9-b3e2d28b7c04}

    systemroot \windows

    nx OptIn

    bootmenupolicy Standard

    winpe Yes

    Windows Boot Loader


    identifier {current}

    device partition=C:

    path \Windows\system32\winload.efi

    description Windows 10

    locale en-us

    inherit {bootloadersettings}

    recoverysequence {dbb53d35-4d31-11ee-bfc5-fe2d33682867}

    recoveryenabled Yes

    isolatedcontext Yes

    allowedinmemorysettings 0x15000075

    osdevice partition=C:

    systemroot \Windows

    resumeobject {dbb53d33-4d31-11ee-bfc5-fe2d33682867}

    nx OptIn

    bootmenupolicy Standard

    Windows Boot Loader


    identifier {dbb53d35-4d31-11ee-bfc5-fe2d33682867}

    device ramdisk=[\Device\HarddiskVolume3]\Recovery\WindowsRE\Winre.wim,{dbb53d36-4d31-11ee-bfc5-fe2d33682867}

    path \windows\system32\winload.efi

    description Windows Recovery Environment

    locale en-us

    inherit {bootloadersettings}

    displaymessage Recovery

    osdevice ramdisk=[\Device\HarddiskVolume3]\Recovery\WindowsRE\Winre.wim,{dbb53d36-4d31-11ee-bfc5-fe2d33682867}

    systemroot \windows

    nx OptIn

    bootmenupolicy Standard

    winpe Yes

    Resume from Hibernate


    identifier {43be30bf-92eb-11ea-9aab-b3d50ff81224}

    device partition=C:

    path \WINDOWS\system32\winresume.efi

    description Windows Resume Application

    locale en-US

    inherit {resumeloadersettings}

    isolatedcontext Yes

    allowedinmemorysettings 0x15000075

    filedevice partition=C:

    filepath \hiberfil.sys

    bootmenupolicy Standard

    debugoptionenabled No

    Resume from Hibernate


    identifier {d3d6bda4-888d-11e8-a6a9-b3e2d28b7c04}

    device partition=C:

    path \Windows\system32\winresume.efi

    description Windows Resume Application

    locale en-US

    inherit {resumeloadersettings}

    recoverysequence {d3d6bda6-888d-11e8-a6a9-b3e2d28b7c04}

    recoveryenabled Yes

    isolatedcontext Yes

    allowedinmemorysettings 0x15000075

    filedevice partition=C:

    filepath \hiberfil.sys

    bootmenupolicy Standard

    debugoptionenabled No

    Resume from Hibernate


    identifier {dbb53d33-4d31-11ee-bfc5-fe2d33682867}

    device partition=C:

    path \Windows\system32\winresume.efi

    description Windows Resume Application

    locale en-us

    inherit {resumeloadersettings}

    recoverysequence {dbb53d35-4d31-11ee-bfc5-fe2d33682867}

    recoveryenabled Yes

    isolatedcontext Yes

    allowedinmemorysettings 0x15000075

    filedevice partition=C:

    filepath \hiberfil.sys

    bootmenupolicy Standard

    debugoptionenabled No

    Windows Memory Tester


    identifier {memdiag}

    device partition=\Device\HarddiskVolume1

    path \EFI\Microsoft\Boot\memtest.efi

    description Windows Memory Diagnostic

    locale en-us

    inherit {globalsettings}

    badmemoryaccess Yes

    EMS Settings


    identifier {emssettings}

    bootems No

    Debugger Settings


    identifier {dbgsettings}

    debugtype Local

    RAM Defects


    identifier {badmemory}

    Global Settings


    identifier {globalsettings}

    inherit {dbgsettings}

                        {emssettings} 
    
                        {badmemory} 
    

    Boot Loader Settings


    identifier {bootloadersettings}

    inherit {globalsettings}

                        {hypervisorsettings} 
    

    Hypervisor Settings


    identifier {hypervisorsettings}

    hypervisordebugtype Serial

    hypervisordebugport 1

    hypervisorbaudrate 115200

    Resume Loader Settings


    identifier {resumeloadersettings}

    inherit {globalsettings}

    Device options


    identifier {d3d6bda7-888d-11e8-a6a9-b3e2d28b7c04}

    description Windows Recovery

    ramdisksdidevice partition=C:

    ramdisksdipath \Recovery\WindowsRE\boot.sdi

    Device options


    identifier {d3d6bda8-888d-11e8-a6a9-b3e2d28b7c04}

    description Windows Setup

    ramdisksdidevice partition=C:

    ramdisksdipath $WINDOWS.~BT\Sources\SafeOS\boot.sdi

    Device options


    identifier {dbb53d36-4d31-11ee-bfc5-fe2d33682867}

    description Windows Recovery

    ramdisksdidevice partition=\Device\HarddiskVolume3

    ramdisksdipath \Recovery\WindowsRE\boot.sdi

    Here is the diskmanagement screen shot:

    I put X's through the irrelevant drives (all storage). The SSD is completely out of the computer and I do not plan on putting it back in, but will reformat and use for something else down the line.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-09-07T07:54:06+00:00

    You are welcome. Good going. I think you mentioned this might be the solution in your original post. Good idea to watch it a while.

    (1) What feels odd about the boot?

    (2) Can you turn on Secure Boot in BIOS? Check in MSInfo32 whether you've succeeded.

    (3) We'll want to activate the Recovery partition that is on the NVMe. Try this...

    ReagentC /Info <<<Show whether the Recovery Environment (RE) is enabled

    ReagentC /Disable <<<Disable it (moves the RE to a staging area)

    ReagentC /Enable <<<Enable it (hopefully moves it to the Recovery partition)

    ReagentC /Info <<<Is it enabled now?

    If not, try a reboot. If still not, we'll add a step or two.

    (4) Let's see the BCD now...

    BCDEdit /Enum All

    (5) Show another Disk Management.

    (6) We'll want to put back an MSR (Microsoft Reserved) partition on the MVMe.

    (7) We'll want to delete that System Reserved partition on the SSD & repurpose it.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2023-09-07T02:12:32+00:00

    Can't thank you enough for slogging through all that! I followed your advice and it seems to have worked (I am now booted to desktop with only the nvme installed). FWIW (for anyone else who may come along in a similar situation) when I ran LIST Vol from the command prompt via the bootable windows installer the EFI partition below did not have "ESP" as the label, it was just blank. I selected that vol (which for me happened to be Vol 1) and followed the other steps above.

    Volume ###  Ltr  Label              Fs        Type               Size        Status        Info

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

    Volume 0     C    Boot Drive    NTFS     Partition        464  GB   Healthy

    Volume 1           Boot Drive    FAT32  Partition       101 MB    Healthy  Hidden

    Volume 2                                     NTFS     Partition    531 MB   Healthy   Hidden

    Volume 3      D       ESD-USB        FAT32   Removable     14 GB      Healthy 

    The boot sequence felt a little odd, so I'll be using it cautiously for the next week or so before deciding if maybe a fresh install is best afterall, but thrilled at the moment at the prospect of not having to reinstall all my applications (and freeing up that sata slot from that stupid 220gb ssd)! Thank you again for all the help!

    Was this answer helpful?

    0 comments No comments