Help needed to get Windows Boot Menu working


wimorrison

Well-known member
Member
VIP
Local time
7:25 AM
Posts
272
OS
Win11
I restored my C Drive image about an hour using AOMEI OneKey Recovery and an image created 10 days ago however I am now unable to access my Windows Drive. When attempting to boot I am immediately presented with the Windows Automatic Repair screen, followed by Diagnosing Problems and finally Attempting Repairs before it then says that Windows could not repair anything :(

Using the WinPE command line I ran BCDEDIT and this is the output from it.

tCm4Zpp.jpg



The first entry in Boot loader should be Windows 11, the second is correct, and I can access the AOMEI recovery and restore the image ad nauseam, the thord option should be Windows Safe Mode.

Can anyone suggest how I can repair this please to be able to boot into Windows 11 again?

I am running Win 21H2 22000.466

Hopefully some clever person can help me fix this :)

Iain Morrison
 
Windows Build/Version
Win 21H2 22000.466

My Computer

System One

  • OS
    Win11
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude 7530
    CPU
    Intel(R) Core(TM) i7-1265u
    Memory
    16Gb
Hello,

device and osdevice need to be set in the bcd store, as they are currently unknown to the boot loader.

It could be that your C drive partition does not actually have a drive letter. You can check that with DISKPART from cmd prompt:
DISKPART followed by LIST VOLUME

If there is no drive letter set for the system drive, then you can assign it manually, after you have grabbed the volume number from DISKPART:
1) Make note of the volume number of the system drive.
2) Select volume x , where x is the volume number of the system drive.
3) assign letter=C assuming you want the system drive to show as drive C:\ (default).
4) exit exit from DISKPART


Then you have to set the device and osdevice. The following command should help you:
bcdedit /set {2f28215d-4955-11ec-bb74-c2eae00c5450} device partition=C: osdevice partition=C:
Assuming c: is a valid partition drive letter.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 5600
    Motherboard
    MSI B550-A Pro
    Memory
    16 GB
    Graphics Card(s)
    Sapphire Radeon RX 6500XT (8 GB version)
    Monitor(s) Displays
    BenQ Mobuiz EX2710Q QHD, Iiyama ProLite X23377HDS
    Hard Drives
    MSI Spatium M461 4TB
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer A114
    CPU
    Intel Celeron N4020
Hi there

@iko22
The problem is the boot record itself needs to be re-written. Normally on a Windows restore everything should work perfectly but in this case something is hosed up. Merely editing the boot record won't fix it if it needs re-writing. This method is easier and less likely to lead to mistakes.

@wimorrison

Just re-write the boot record as follows :

Boot up either windows install iso, winpe or anything that gives you windows command possibility -- stand alone macrium has command level as well.

then use diskpart
list disk
select disk xxx where xxx is the disk containing the efi partition
list vol
you should now see a partition of 100 MB labelled system and hidden (or however big it was when you defined the partition)
select vol xxx where xx is the 100 MB partition
assign letter = s

now assign the windows system volume assume its W

exit from diskpart
now still in command mode

cd w:\windows\system32
cd w:\ ensure you are still in the W directory

bcdboot w:\windows /s S: /f UEFI

exit and reboot Windows.

"Seemples" !!!!

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
Thanks for the suggestions, chaps. In the end it was quicker, easier and cleaner just to do a fresh installation of 22000.466 with the programs that I use - always helps to do a fresh install every so often, especially with the crap I end up having on my drives :)
 

My Computer

System One

  • OS
    Win11
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude 7530
    CPU
    Intel(R) Core(TM) i7-1265u
    Memory
    16Gb
Back
Top Bottom