Need help related to BCD and Recovery Environment

Jean-Sébastien Guay 40 Reputation points
2025-10-29T13:12:17.4866667+00:00

Hello,

After installing a few Linux distros to test out on my PC in dual boot configuration, I think my boot configuration is completely borked. I tried to resolve the issues but I think I only made things worse. At least I can still boot into Windows, so I'll ask for help now before I completely break it.

The issues:

  1. In the BIOS, I only have 3 boot options: The Windows 11 installation (twice) and "UEFI OS" (I don't know what this is)
  2. There is no option to boot from USB or CD.
  3. I also see this if I run bcdedit /enum firmware, there seem to be a lot of duplicated items, but none are "removable drive" or "optical drive" or "network" as I would expect. Also I seem to have a few different EFI partitions, probably because each Linux distro did its own thing when installing and I need to clean up after them.
  4. If I boot into Windows Recovery Environment, and click the troubleshoot - advanced - command prompt item, the system restarts instead of opening a command prompt. The same happens if I press Shift-F10 which is also supposed to open a command prompt. (it used to be worse, before I was missing the advanced options in WinRE, but running reagentc /enable brought them back but non-functioning).

What I would like:

  1. Bring back the options to boot from USB and CD.
  2. Fix the WinRE command prompt.
  3. I do not need the Linux distros I had installed before, so if we could clean up the multiple EFI partitions and duplicated boot entries that would be great. I think we only need to keep the 99MB EFI partition on Disk 1 (my SSD) (maybe it would be better to grow it a bit to be safe?). The 1.0GB one on Disk 1 and the 400MB one on Disk 0 could be deleted.

Please keep in mind: until we fix some issues, I cannot boot a USB drive, so booting from a Windows installation media is out of the question. Also the command prompt in WinRE doesn't work either.

To anticipate some needed info:

  • On Disk 0, the 4GB partition is a Linux Swap partition, and the 686.75GB partition is an ext4 Linux partition.
  • On Disk 1, I do not know why I have two recovery partitions. But this is not an immediate problem.

User's image

Note I assigned drive letter S to the 99MB EFI partition earlier while troubleshooting. It is not normally assigned.

> diskpart

Microsoft DiskPart version 10.0.26100.1150
Copyright (C) Microsoft Corporation.
On computer: EXCALIBUR

DISKPART> list disk
  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online         1863 GB      0 B
  Disk 1    Online         1863 GB  1024 KB        *
  Disk 2    No Media           0 B      0 B
  Disk 3    No Media           0 B      0 B
  Disk 4    No Media           0 B      0 B
  Disk 5    No Media           0 B      0 B
  Disk 6    Online           14 GB      0 B

DISKPART> select disk 0
Disk 0 is now the selected disk.

DISKPART> list partition
  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Primary           1171 GB  1024 KB
  Partition 3    Primary           4096 MB  1171 GB
  Partition 4    Primary            400 MB  1175 GB
  Partition 2    Primary            686 GB  1176 GB

DISKPART> select disk 1
Disk 1 is now the selected disk.

DISKPART> list partition
  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Recovery           529 MB  1024 KB
  Partition 2    System              99 MB   530 MB
  Partition 3    Reserved            16 MB   629 MB
  Partition 4    Primary           1860 GB   645 MB
  Partition 5    Recovery           755 MB  1861 GB
  Partition 6    System            1023 MB  1862 GB
DISKPART> list volume
  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     D                       DVD-ROM         0 B  No Media
  Volume 1     F   Media        NTFS   Partition   1171 GB  Healthy
  Volume 2                      FAT32  Partition    400 MB  Healthy
  Volume 3     C                NTFS   Partition   1860 GB  Healthy    Boot
  Volume 4         Recovery     NTFS   Partition    529 MB  Healthy    Hidden
  Volume 5     S                FAT32  Partition     99 MB  Healthy    System
  Volume 6                      NTFS   Partition    755 MB  Healthy    Hidden
  Volume 7                      FAT32  Partition   1023 MB  Healthy    Hidden
  Volume 8     E                       Removable       0 B  No Media
  Volume 9     G                       Removable       0 B  No Media
  Volume 10    J                       Removable       0 B  No Media
  Volume 11    K                       Removable       0 B  No Media
  Volume 12    I                RAW    Removable     14 GB  Healthy
> bcdedit /enum firmware
Firmware Boot Manager
---------------------
identifier              {fwbootmgr}
displayorder            {bootmgr}
                        {729d5669-3e2f-11ef-b41d-806e6f6e6963}
                        {d663bc2f-b4bf-11f0-b47e-806e6f6e6963}
                        {d663bc30-b4bf-11f0-b47e-806e6f6e6963}
timeout                 1

Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=S:
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager
locale                  en-us
inherit                 {globalsettings}
default                 {current}
resumeobject            {7159b492-b46f-11f0-b47b-bc071ddd657a}
displayorder            {current}
                        {1aa3b5bc-81a8-46de-95cf-c9df72ead17c}
toolsdisplayorder       {memdiag}
timeout                 30

Firmware Application (101fffff)
-------------------------------
identifier              {7159b47e-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume10
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager

Firmware Application (101fffff)
-------------------------------
identifier              {7159b47f-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume3
path                    \EFI\BOOT\BOOTX64.EFI
description             UEFI OS

Firmware Application (101fffff)
-------------------------------
identifier              {7159b480-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume3
path                    \EFI\BOOT\BOOTX64.EFI
description             UEFI OS

Firmware Application (101fffff)
-------------------------------
identifier              {7159b481-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume10
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager

Firmware Application (101fffff)
-------------------------------
identifier              {7159b482-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume10
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager

Firmware Application (101fffff)
-------------------------------
identifier              {7159b483-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume3
path                    \EFI\BOOT\BOOTX64.EFI
description             UEFI OS

Firmware Application (101fffff)
-------------------------------
identifier              {7159b484-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume3
path                    \EFI\BOOT\BOOTX64.EFI
description             UEFI OS

Firmware Application (101fffff)
-------------------------------
identifier              {7159b485-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume10
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager

Firmware Application (101fffff)
-------------------------------
identifier              {7159b486-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume10
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager

Firmware Application (101fffff)
-------------------------------
identifier              {7159b487-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume3
path                    \EFI\BOOT\BOOTX64.EFI
description             UEFI OS

Firmware Application (101fffff)
-------------------------------
identifier              {7159b488-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume3
path                    \EFI\BOOT\BOOTX64.EFI
description             UEFI OS

Firmware Application (101fffff)
-------------------------------
identifier              {7159b489-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume10
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager

Firmware Application (101fffff)
-------------------------------
identifier              {7159b48a-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume10
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager

Firmware Application (101fffff)
-------------------------------
identifier              {7159b48b-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume3
path                    \EFI\BOOT\BOOTX64.EFI
description             UEFI OS

Firmware Application (101fffff)
-------------------------------
identifier              {7159b48c-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume3
path                    \EFI\BOOT\BOOTX64.EFI
description             UEFI OS

Firmware Application (101fffff)
-------------------------------
identifier              {7159b48d-b46f-11f0-b47b-bc071ddd657a}
device                  partition=\Device\HarddiskVolume10
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager

Firmware Application (101fffff)
-------------------------------
identifier              {729d5669-3e2f-11ef-b41d-806e6f6e6963}
device                  partition=\Device\HarddiskVolume10
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager

Firmware Application (101fffff)
-------------------------------
identifier              {d663bc2f-b4bf-11f0-b47e-806e6f6e6963}
device                  partition=C:
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager

Firmware Application (101fffff)
-------------------------------
identifier              {d663bc30-b4bf-11f0-b47e-806e6f6e6963}
device                  partition=\Device\HarddiskVolume3
path                    \EFI\BOOT\BOOTX64.EFI
description             UEFI OS
Output of a List Volumes script from StackOverflow:

DriveLetter DevicePath               VolumeName
----------- ----------               ----------
            \Device\HarddiskVolume3  \\?\Volume{77e3ed41-0000-0000-0000-10f825010000}\
            \Device\HarddiskVolume5  \\?\Volume{c30fb889-9b0d-42e4-a5af-d9407e0a0d4f}\
C:\         \Device\HarddiskVolume8  \\?\Volume{bdc7025b-4d04-4601-8941-37157f9757ad}\
            \Device\HarddiskVolume9  \\?\Volume{f909c82a-633f-4f9b-bfd3-b38547865038}\
I:\         \Device\HarddiskVolume15 \\?\Volume{8295bc98-b394-11f0-b46c-bc071ddd657a}\
F:\         \Device\HarddiskVolume1  \\?\Volume{77e3ed41-0000-0000-0000-100000000000}\
            \Device\HarddiskVolume6  \\?\Volume{8acabf64-0a9f-42d8-8de9-93a7696aa0d6}\
            \Device\HarddiskVolume10 \\?\Volume{9fdca34a-1284-413d-b2dd-08241e97d46d}\
E:\         \Device\HarddiskVolume11 \\?\Volume{1df60500-aa16-11eb-b3b5-d45d64b87e01}\
G:\         \Device\HarddiskVolume12 \\?\Volume{e4c335f3-9929-11f0-b467-d45d64b87e01}\
J:\         \Device\HarddiskVolume13 \\?\Volume{1df60503-aa16-11eb-b3b5-d45d64b87e01}\
K:\         \Device\HarddiskVolume14 \\?\Volume{1df60504-aa16-11eb-b3b5-d45d64b87e01}\
D:\         \Device\CdRom0           \\?\Volume{c1d3e81e-2816-11eb-b39b-806e6f6e6963}\

Thanks in advance for any assistance you can provide.

Windows for home | Windows 11 | Sleep and Power on, off

Answer accepted by question author
Restee Miranda 14,150 Reputation points Independent Advisor
2025-10-30T17:50:53.25+00:00

Hello,

Thanks for attaching the photos, that helped a lot. Try to do a BIOS reset to defaults, due to the fact that it does not detect the USB bootable media. As it should be appearing when selecting boot options.

And those boot entries look normal.

Regards,

Was this answer helpful?


Answer accepted by question author
Restee Miranda 14,150 Reputation points Independent Advisor
2025-10-29T14:22:08.8133333+00:00

Hi Jean,

Thanks for the very detailed report on your issue. It looks like installing several Linux versions has messed with your boot settings, so you can't get to the BIOS or Windows Recovery Environment. I'll help you fix this issue and get things booting properly again, step by step.

Step 1: Accessing BIOS Settings

First, make sure your BIOS lets you boot from USB and CD.

  1. Restart your PC and enter BIOS setup (usually by pressing F2, DEL, or ESC right after turning it on).
  2. Find the boot options and enable USB and CD/DVD booting. Look for boot priority or mode settings (Legacy vs. UEFI).
  3. Temporarily turn off Secure Boot, as it can prevent booting from USB/CD on some systems.
  4. Save changes and exit.

If you still don’t see USB or CD options, update your BIOS firmware from the manufacturer's site.

Step 2: Cleanup of EFI Partitions and Boot Entries

If the Command Prompt in recovery mode isn't working, try this in Windows:

Cleanup Boot Options in Windows:

  1. Boot into Windows.
  2. Open Command Prompt as an administrator.
  3. Type bcdedit /enum to see current boot entries.
  4. Identify any unwanted entries.
  5. Delete them using bcdedit /delete {identifier} (replace {identifier} with the actual ID). Be sure to only remove Linux-related entries.

Clean Up EFI Partitions:

  1. Back up any important data from the EFI partitions.
  2. Open Disk Management.
  3. Find the EFI partitions.
  4. Right-click unwanted EFI partitions (over 100MB and not for Windows) and select Delete Volume. Don’t delete the main Windows one.
  5. Or, use diskpart:

diskpart

list disk

select disk X (replace X with Disk number)

list partition

select partition Y (replace Y with the partition number you want to delete)

delete partition override

Step 3: Recreate Windows Boot Loader

After cleaning up EFI entries, recreate the Windows Boot Loader:

  1. Open Command Prompt as an administrator.
  2. Run:

bcdboot C:\Windows /l en-us /s S: /f UEFI

(C: is your Windows drive, S: is your EFI partition).

Step 4: Fix Windows Recovery Environment (Optional)

If the Command Prompt in WinRE still fails, reinstalling WinRE might be needed, often from installation media. Try disabling Hyper-V or Virtualization features in BIOS to see if WinRE then works.

Step 5: Attempt to Boot from USB Again

Try booting from USB again by plugging it in before starting the PC and going to the boot menu.

Are these linux distros installed in separate partitions but on a single disk?

The last resort would be reinstalling your Windows.

Regards,

Rez

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.