Help needed to get Windows Boot Menu working


wimorrison

Member
Local time
11:18 AM
Posts
48
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 7490
    CPU
    Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz, 189
    Memory
    8GB

iko22

Well-known member
Member
VIP
Local time
11:18 AM
Posts
557
Location
South West England
OS
Windows 10
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 Computer

System One

  • OS
    Windows 10
    CPU
    TBA
    Motherboard
    TBA

jimbo45

Well-known member
Power User
VIP
Local time
10:18 AM
Posts
1,488
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
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

wimorrison

Member
Thread Starter
Local time
11:18 AM
Posts
48
OS
Win11
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 7490
    CPU
    Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz, 189
    Memory
    8GB
Top Bottom