Create EFI-stub boot entry from Windows

1.1k Views Asked by At

I use Linux kerne EFI stub to boot. Now I have run into an emergency, because I have lost my UEFI boot entry and I am stuck with Windows.

Is there any possibility to create UEFI NVRAM boot entry for Linux kernel?

I have managed to create it, but without kernel args (like: root=PARTUUID=....) and Linux is not booting without them.

Is there a way how to create boot menu entry from Windows 10 with CLI args?

3

There are 3 best solutions below

0
On BEST ANSWER

One solution could be:

  1. Mount the ESP partition under windows.
  2. Create a startup.nsh script to pass kernel parameters
  3. Create boot menu entry which points to the startup.nsh
1
On

One way you can resolve this:

You can run any live linux OS, chroot to your still existing installed Linux Distribution, and reinstall grub, which will re-add Linux to the boot menu alongside Windows.

0
On

You might try efibooteditor, a GUI/CLI tool to read/write EFI boot entries on Windows (or Linux). https://github.com/Neverous/efibooteditor/