Skip to content

Instantly share code, notes, and snippets.

@TBog
Created July 10, 2023 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TBog/285c1e03f5b2a2533588b8ebe3acac1e to your computer and use it in GitHub Desktop.
Save TBog/285c1e03f5b2a2533588b8ebe3acac1e to your computer and use it in GitHub Desktop.

Add the linux boot option from Windows

see https://www.linuxquestions.org/questions/linux-general-1/using-bcdedit-to-configure-a-multiboot-system-and-add-linux-4175644308/

Enter Command Prompt (admin) and use bcdedit

  • List entries
    bcdedit /enum firmware

  • Copy UEFI entry of "Windows Boot Manager" to create a new entry for Ubuntu:
    bcdedit /copy {bootmgr} /d "Ubuntu Secure Boot"

  • Set file path for the new Ubuntu entry. Replace {guid} with the returned GUID of the previous command.
    bcdedit /set {guid} path \EFI\ubuntu\shimx64.efi

  • Set optionally Ubuntu as first entry in the boot sequence. Replace {guid} with the returned GUID of the copy command.
    bcdedit /set {fwbootmgr} displayorder {guid} /addfirst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment