Choose Windows/Linux boot managers from within the UEFI?
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Choose Windows/Linux boot managers from within the UEFI?
I'm buying a new laptop, and I'm not totally sure how dual booting works in 2023. A long time ago, Windows would overwrite GNU boot loaders.
With UEFI, am I able to install multiple boot managers, and then choose which one is run when booting? I'm assuming that the multiple boot managers are all located on the same drive. Should I plan to reinstall GRUB if it is periodically overwritten?
efibootmgr and grub are two completely different entities. they do not interrupt each other per se. still its install windows first then linux. but newer MB should have a hot key to display the efi boots available to the user to get back into linux but if you do not want to have to keep hitting that hot key each time you boot then grub or refind is another boot UEFI systems software that is easy to use too. it as the other OS is managed by efibootmgr
example
Code:
userx4@ubuntu-haha:~$ efibootmgr
BootCurrent: 0006
Timeout: 0 seconds
BootOrder: 0006,0000,0005,0004,0003,0002,0001,0012,0013,0014,0015,0016,0017,0018,0019
Boot0000* ubuntu
Boot0001* rEFInd Boot Manager <<---- rEFInd UEFI boot manager
Boot0002* Windows Boot Manager
Boot0003* slackware-15.0
Boot0004* mx
Boot0005* void
Boot0006* slackware-15.0+
Boot0010 Setup
Boot0011 Boot Menu
Boot0012* NVMe: SPCC M.2 PCIe SSD
Boot0013* ATA HDD: Samsung SSD 870 EVO 2TB
Boot0014* ATAPI CD:
Boot0015* USB HDD: SanDisk Cruzer Blade
Boot0016* USB CD:
Boot0017* PCI LAN:
Boot0018* USB LAN:
Boot0019* USB FDD:
With UEFI, am I able to install multiple boot managers, and then choose which one is run when booting? I'm assuming that the multiple boot managers are all located on the same drive. Should I plan to reinstall GRUB if it is periodically overwritten?
Yes
Yes - if you resist the temptation to allocate a separate EFI partition for linux.
No.
If grub is installed after the Windows loader, it will present a multi-boot menu including both. Occasionally I see Windows resetting the default boot loader back to itself - this can be simply fixed from the firmware menus (aka BIOS screens), or from efibootmgr if you can get into a linux terminal. The former is simplest.
Which Linux distribution are you installing? Are you installing it on the same drive as windows? If not, you need to make certain to boot the Linux system in UEFI mode selected in the BIOS and install and create an EFI partition on the 2nd (Linux) drive as mentioned above. Some Linux systems (Ubuntu) will install EFI files to the first EFI partition which is usually the windows partition regardless of the selection you make during the install so that could be a problem but is easily fixed. Using separate drives for each OS simplifies things as you can then select either from the BIOS firmware to boot.
Which Linux distribution are you installing? Are you installing it on the same drive as windows?
I'll probably install Ubuntu. I might have multiple Linux installations, and potentially multiple Windows installations too. At the moment, I'm thinking about installing it on the same drive as Windows.
One boot (EFI) partition is enough, but probably you need to configure it manually. My windows has its own boot partition, but not used, because I have a common one for everything (and in case of a BIG trouble I can use that boot partition too).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.