Your Search Bar For Shrewd Tips

How To Add Uefi Boot Option


How To Add UEFI Boot Option

If you're looking to add a new UEFI boot option to your computer, whether for installing a new operating system, troubleshooting, or customizing your boot process, understanding the steps involved is essential. UEFI (Unified Extensible Firmware Interface) replaces traditional BIOS and offers more flexibility and features for managing boot options. This guide provides a comprehensive overview of how to add a UEFI boot option, ensuring your system boots exactly as you need.

Understanding UEFI and Boot Options

UEFI is a modern firmware interface that initializes hardware and launches the operating system. Unlike traditional BIOS, UEFI supports a graphical interface, secure boot, and other advanced features. Managing boot options in UEFI involves configuring entries that tell the firmware where to find and how to launch your operating systems or bootable devices.

Adding a new UEFI boot option can be necessary when installing a new OS, creating a recovery environment, or customizing your boot sequence. The process typically involves accessing the firmware settings, using command-line tools, or third-party utilities, depending on your system manufacturer and preferences.

Prerequisites for Adding a UEFI Boot Option

  • A computer with UEFI firmware enabled (not legacy BIOS mode).
  • Administrative access to your system.
  • The path to the EFI executable file (.efi) you want to add as a boot option.
  • Optional: A bootable device or partition with the necessary files.
  • A backup of your current BIOS/UEFI settings, in case you need to revert changes.

Step 1: Access UEFI Firmware Settings

To begin, you need to enter the UEFI firmware interface. This can typically be done during system startup:

  • Restart your computer.
  • Press the designated key during boot (commonly F2, F10, F12, Del, or Esc). The exact key varies by manufacturer.
  • Navigate to the "Boot" or "Advanced" menu once inside the UEFI setup utility.

Some systems also allow access through Windows:

  • Open Settings > Update & Security > Recovery.
  • Under "Advanced startup," click "Restart now."
  • Choose "Troubleshoot" > "Advanced options" > "UEFI Firmware Settings," then restart.

Step 2: Identify the EFI File Path

Before adding a boot option, locate the EFI executable file on your storage device. Typically, EFI files are stored in the EFI system partition under directories like \EFI\Boot or \EFI\YourOS. Common files include bootx64.efi for 64-bit systems.

To identify the EFI file path:

  • Use a tool like Disk Management or a file explorer in Windows to access the EFI partition. You may need to assign a drive letter to the EFI partition first.
  • Navigate through the directories to find the desired EFI file.
  • Note the full path, as you'll need it for adding the boot entry.

Step 3: Use bcdedit or efibootmgr to Add Boot Entry

Method 1: Using Windows bcdedit

If your system runs Windows, you can use the built-in bcdedit command to add a new boot entry:

  • Open Command Prompt with administrator privileges.
  • Run the following command to create a new boot loader entry:
bcdedit /copy {current} /d "My Custom UEFI Boot"
  • Note the identifier returned, which will look like {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.
  • Configure the new entry with the path to your EFI file:
  • bcdedit /set {new-identifier} path \EFI\YourFolder\yourfile.efi
  • Verify the entry with:
  • bcdedit /enum firmware

    Method 2: Using efibootmgr (Linux)

    On Linux systems, efibootmgr is a tool to manage UEFI boot entries:

    • Open a terminal with root privileges.
    • List current entries:
    efibootmgr -v
  • Create a new boot entry with the following command, replacing the variables with your data:
  • efibootmgr -c -d /dev/sdX -p Y -L "My Custom Boot" -l '\EFI\YourFolder\yourfile.efi'

    Where /dev/sdX is your disk and Y is the partition number of the EFI partition.

  • Verify the new entry appears with:
  • efibootmgr -v

    Step 4: Set Boot Order (Optional)

    If you want your new boot option to be the default, you may need to reorder the boot sequence:

    • In Windows, use the BIOS or UEFI setup utility to change the boot priority.
    • Alternatively, use efibootmgr on Linux:
    efibootmgr -o XXXX,YYYY,ZZZZ

    Replace XXXX, YYYY, etc., with the boot numbers of your preferred entries.

    Step 5: Save Changes and Reboot

    After adding your new boot option and adjusting the boot order, save your changes in the UEFI setup utility. Usually, this involves selecting "Save and Exit." Your system will reboot, and you should see your new boot option available in the boot menu.

    Tips for Troubleshooting

    • If your new boot option doesn't appear, verify the EFI file path and ensure the EFI file is valid and accessible.
    • Make sure Secure Boot is disabled if your EFI file isn't signed or if you're installing custom OSes.
    • In some cases, resetting the UEFI firmware to default settings can resolve issues with boot options.
    • If you encounter errors, consult your motherboard or system manufacturer’s documentation for specific instructions or tools.

    Conclusion

    Adding a UEFI boot option can seem complex at first, but following the proper steps ensures a smooth process. Whether you're using Windows or Linux, understanding how to manipulate UEFI entries empowers you to customize your system's boot behavior effectively. Always remember to back up your current settings and EFI files before making changes, and proceed carefully to avoid boot issues. With these instructions, you can confidently add, modify, or troubleshoot UEFI boot options to suit your needs.


    Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.

    Shrewdnia

    Shrewdnia

    Shrewdnia is a destination for curious minds seeking clarity, knowledge, and informed perspectives. Through insightful articles and practical guides our passionate team explores a wide range of topics designed to help readers understand the world around them, make smarter decisions, and stay informed in an ever-changing landscape.


    πŸ’‘ Every question sparks discovery, and every perspective enriches the conversation. Share your thoughts and insights in the comments πŸ‘‡

    Back to blog

    Leave a comment

    JOIN THE SHREWDNIA COMMUNITY FORUM

    What do you think?

    Have an opinion, experience, or question about this topic? Join the Shrewdnia Forum and share your thoughts with other readers.

    Join the Forum β†’