LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having 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


Reply
  Search this Thread
Old 04-30-2023, 12:07 PM   #1
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 241

Rep: Reputation: 31
Question 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?
 
Old 04-30-2023, 02:09 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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:
 
Old 04-30-2023, 06:14 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Quote:
Originally Posted by halfpower View Post
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.
 
Old 05-01-2023, 04:53 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
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.
 
Old 05-01-2023, 10:51 AM   #5
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 241

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by yancek View Post
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.

Last edited by halfpower; 05-01-2023 at 10:53 AM.
 
Old 05-01-2023, 11:25 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
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).
 
  


Reply

Tags
dual boot, uefi booting



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI Class 3 :: To use UEFI, or not to use UEFI? jheengut Slackware 19 12-30-2020 09:24 AM
question: 'onclick' within 'onmouseover' within 'form' within 'table' - how is it possible? rblampain Programming 4 04-25-2017 08:49 PM
LXer: How to delete boot managers from a UEFI boot menu LXer Syndicated Linux News 0 06-04-2014 09:30 AM
LXer: Boot managers and boot devices on a PC with UEFI firmware LXer Syndicated Linux News 0 06-02-2014 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration