What do you do if most your drive inc windows does not have alias? Only my Linux FS has a alias to use.
Yes my windows boots off its own efi partition on its own drive.
Figured it out, had a microSD or some USB interferrence that was changing or wiping my alias’s somehow. Had to disconnect everything and reconnect, maybe bad connection or bad port who knows.
HOWEVER, while choosing windows11 option exists and selects, when I boot it, it SITS at a Windows Boot Manager screen with Windows 11 selected but no input works, only alt-ctrl-del (soft reboot) works.
thats usually a sign that your config has some typo or wrong path in it.
I also had it when a BIOS update re-enabled Fast Boot, after I disabled it, made sure the right alias is set, everything worked again.
you are missing an i at the end, the file ending is .efi
are you sure that you have your Windows prepared, e.g. having fast shutdown off in windows, and when using the UEFI boot manager to select the Windows partition, does it boot straight through to the desktop? Or does it sit a the boot manager, too?
sorry, i copied it wrong. It’s correct in the file
I noticed that I don’t have that directory on my windows. The bootmgfw.efi file is located in the Windows/Boot/EFI folder. I changed the path to Windows\Boot\EFI\bootmgfw.efi, but it still doesn’t work. I also tried to upgrade to windows 11, but my flash drive with windows is not recognized either
Thanks @BS86 for the Tutorial, thought it couldn’t be done for a Windows installation using a separate ESP partition. On a side note, even works with Secure Boot enabled.
sbctl status
[sudo] password for sam:
Installed: ✓ sbctl is installed
Owner GUID: 0593f679-6a22-4c4d-a1b3-5e2fb70d0c9a
Setup Mode: ✓ Disabled
Secure Boot: ✓ Enabled
Vendor Keys:
Thanks for this tutorial, it worked well for me. I have a couple of general questions though.
Why can’t windows.nsh be in a directory inside the ESP like shellx64.efi, since when I tried that windows wouldn’t boot.
How does this method work? Maybe this is a bit of a stupid question but I’m just curious to what each step of the process actually does and how it boots windows.
Why use this over XBOOTLDR that systemd-boot natively supports? Where you can store all your kernel images in another partition so you can just use your windows ESP partition.
It would be great if you could answer these questions. Thanks for your help
I am not sure and currently don’t have the time to investigate, but I guess it is due to some restrictions on where which type of files can be.
Personally, I don’t like to mix ESP partitions. Windows used to wipe other OS’s informations from their ESP partition more then once, causing issues where one has to chroot into the install(s) and reinstall the boot loaders of the other OS’s. With separated ESP partitions, those Windows updates only changed the default boot order in UEFI back to the Windows ESP partition which can easily be changed again without the need to actually fix things.
My bad, I forgot to sign the shellx64.efi image with my keys. Now it works, apart from Bitlocker asking the key every time I boot from the windows.nsh entry
When i restart and select the efi shell from the menu nothing happens. Is there a solution for that? I copied the file correctly and it appears in the menu but after selecting it i just have a blank screen and need to restart.
Or maybe an alternative solution for this particular step?
I just checked again with all packages from stable and edk2-shell works here without issues.
Unfortunately, I know of no other way to get the FS Alias.
Furthermore, later on you also need a working edk2-shell to load the windows.nsh file, so even if you can retrieve that on another way, it won’t work.
Because it doesn’t happen here and a quick google search also does not prove useful, I can only give some general hints, like making sure that secure boot is not the issue, that fast boot in BIOS and also fast shutdown/boot in Windows is disabled etc.
You can also try if Shell_Full.efi works better, it is in the same source like the regular Shell.efi.
same here. I only have my Windows partition in case some game has issue on Linux that can’t be fixed, but so far every issue I had with games also happened on Windows