LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 12-26-2023, 09:29 AM   #1
Snugbug
Member
 
Registered: May 2020
Posts: 97

Rep: Reputation: Disabled
EndeavourOS - How to install grub on UEFI multiboot, please?


Sorry, I've chosen the Arch board, since there seems to be no EndeavourOS board available here.

My question:
Since I'm pretty much fed up with reinstalling some Debian or Ubuntu based distros, each two or three years, I'm curious about installing EndeavourOS on my computer (UEFI type), but since it is a multiboot system, I want to make absolutely sure, I don't destroy any of the other, already existing installations (which are a win10, a Debian based distro and an Ubuntu based one).
Maybe I should add, EndeavourOS will be my first Arch based distro ever.

As far as I know (please, correct me if I'm wrong), the EndeavourOS installation is done pretty much the ordinary way. I just choose "Something else..." or an according option to have control over the partitions, choose one partition for root, one for home, one for swap, choose /dev/sda2 (my EFI partition) for grub and then go for it.

But what if, some day, I want to reinstall grub?

On a Debian or an Ubuntu based distro, I'm used to use this command:
Code:
sudo grub-install && sudo update-grub
What would this command look like for EndeavourOS, please?

2nd question:
What should I prefer, ext4 or btrfs? And can both of them see each other, if I try to access a particular partition from another distro?

Last edited by Snugbug; 12-26-2023 at 11:37 AM.
 
Old 12-26-2023, 10:02 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Quote:
What would this command look like for EndeavourOS, please?
Code:
sudo grub-install
sudo grub-mkconfig -o /boot/grub/grub.cfg
What should I prefer, ext4 or btrfs? In my opinion ext4 is the better choice on a mutiboot system.
 
Old 12-27-2023, 04:02 AM   #3
Snugbug
Member
 
Registered: May 2020
Posts: 97

Original Poster
Rep: Reputation: Disabled
Thank you very much. So,
Code:
sudo grub-mkconfig -o /boot/grub/grub.cfg
is doing for EndeavourOS, what
Code:
sudo update-grub
is doing for Ubuntu/Debian?

I already tried to find the answer for my question in the Arch wiki, but I'm confused there, because there was some target option mentioned.
According to your post, I don't need that, right?

And how can I be sure, grub is being installed on /dev/sda2 (my EFI partition)?
 
Old 12-27-2023, 05:21 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Yes
 
Old 12-27-2023, 05:30 AM   #5
Snugbug
Member
 
Registered: May 2020
Posts: 97

Original Poster
Rep: Reputation: Disabled
Oh, I just noticed, I forgot to mention that I'm on 64bit, but on the other hand this should be obvious, since UEFI is usually used for 64bit, isn't it?
 
Old 12-27-2023, 06:41 AM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
grub-install will install in the mode the system is booted in, unless changed by the --target= option.
 
Old 12-27-2023, 01:58 PM   #7
Snugbug
Member
 
Registered: May 2020
Posts: 97

Original Poster
Rep: Reputation: Disabled
Ok, thank you.
Now, I understand what --target is meant for.
 
Old 12-28-2023, 10:04 PM   #8
Snugbug
Member
 
Registered: May 2020
Posts: 97

Original Poster
Rep: Reputation: Disabled
I found this Youtube video, with a guide on how to install EndeavourOS on a dual boot system.
It says there, you should create a FAT32 partition with the mount point /boot/efi.

This confuses me.

If there's a Win10 (installed in UEFI mode) already existing on my SSD, then there's a /boot/efi (a FAT32) already there, as well.
This efi partition is usually on /dev/sda2.

I wonder, now, why would I create another /boot/efi for EndeavourOS, if I can just choose the already existing /dev/sda2 for grub.
Doesn't seem to make sense from my point of view, does it?

So, that's why I think, as far as grub is concerned, I shouldn't follow that guide and instead, I should simply put grub into /dev/sda2,
right where the Win10 bootloader is already (I'd like to know this exactly, because by no means, I want to risk any harm to my already existing systems).

Am I right about not creating that 2nd efi partition for grub?
 
Old 12-28-2023, 10:55 PM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
It depends. Windows usually makes the efi partition 100MB. If you are dual booting the existing efi partition is large enough to house the two os boot loaders. If you are multi-booting several distros then the existing efi partition is probably not large enough. If you are only dual booting windows and EndeavourOS you don't need to create a second efi partition.
 
Old 12-29-2023, 04:09 AM   #10
Snugbug
Member
 
Registered: May 2020
Posts: 97

Original Poster
Rep: Reputation: Disabled
In the end, I'd like to have one Win10 Pro, one EndeavourOS and a 2nd Linux, but I'm not sure, yet, which distro the 2nd one will be (maybe the latest MX Linux 23.1 xfce, or so).

I want grub to let me choose between Win10 and these two Linux distros in the same menu.

But if I have two efi partitions, I guess, I also have two grubs. How do I choose between these two? In the UEFI-GUI (that's how I call the BIOS successor)?

So far, I have Win10 Pro, a Bodhi Linux 6.0 and an MX Linux 19.4 xfce (I want to replace the two Linux distros, soon).

Together, they are using 35.38MB of my 100MB efi partition.

Since I will have three systems in the future, just as I used to have in the past, I guess, 100MB will still be ok.
Do you agree?
 
Old 12-29-2023, 04:19 AM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Quote:
Originally Posted by Snugbug View Post
But if I have two efi partitions, I guess, I also have two grubs. How do I choose between these two? In the UEFI-GUI (that's how I call the BIOS successor)?
Not necessarily. GRUB constructs its user menu in real time using a configuration file called grub.cfg. I don't see why two different GRUBs on two ESPs couldn't use the same grub.cfg file. Maybe someone here who uses GRUB could show you how to do that.
 
Old 12-29-2023, 02:56 PM   #12
Snugbug
Member
 
Registered: May 2020
Posts: 97

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Maybe someone here who uses GRUB could show you how to do that.
That would be absolutely great!
But that also makes me wonder, does EndeavourOS not use GRUB usually?
 
Old 12-29-2023, 06:22 PM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Quote:
But if I have two efi partitions, I guess, I also have two grubs
Did you create the second efi partition or did one of the distros you installed create the second efi partition?


Code:
sudo efibootmgr -v
will show Bootloaders registered in the firmware/bios nvram, the bootloader boot order and what efi partition a bootloader is located on. If you plan on keeping EndeaverOS while installing uninstalling other distros you can use



Code:
sudo efibootmgr -o xxxx xxxx xxxx
to set control back to the EndeaverOS



Code:
sudo efibootmgr -n xxxx
sets a bootloader to load on the next reboot only.

When uninstalling distros, bootloader folders will be left on the efi partition that may need to be deleted to keep the efi partition from filling up with unused bootloaders.
Code:
sudo efibootmgr -B -b xxxx
to removed unused bootloaders from firmware/bios nvram

Last edited by colorpurple21859; 12-30-2023 at 09:22 AM.
 
Old 01-02-2024, 06:57 AM   #14
Snugbug
Member
 
Registered: May 2020
Posts: 97

Original Poster
Rep: Reputation: Disabled
Sorry, for my delayed response, but I will have to postpone my EndeavourOs installation for a few days because, even that I want to install it on my desktop computer first, I need my laptop to be able to compare and verify my settings.

Sadly, my laptop died on 29th of december and I will have to wait for it to be fixed again (there's probably something wrong about the power supply).
Or, in the worst case, I will have to buy a new one.

Quote:
Did you create the second efi partition or did one of the distros you installed create the second efi partition?
So far, I have only one efi partition, which was installed when I installed win10 the first time, a few years ago.
That's where my existing grub is also installed.

I mentioned the 2nd efi only because the video from post #8 says it should be installed.
 
Old 02-18-2024, 03:27 AM   #15
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,976
Blog Entries: 33

Rep: Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467
Snugbug,

Why don't you install VirtualBox and then install EndeavourOS inside VB, just to see how EOS performs?

https://www.virtualbox.org/wiki/Linux_Downloads

https://discovery.endeavouros.com/ap...albox/2021/03/

There is no need to use UEFI boot for EOS in VB. Just use the default setting.

Last edited by beachboy2; 02-18-2024 at 03:31 AM.
 
  


Reply



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
LXer: EndeavourOS Artemis Nova Released with Linux Kernel 5.19, Vanilla GRUB Experience LXer Syndicated Linux News 0 09-17-2022 09:34 PM
LXer: EndeavourOS Nova Released Primarily Addresses GRUB Issue LXer Syndicated Linux News 0 09-15-2022 01:15 PM
LXer: You Can Now Install 64-Bit EndeavourOS ARM on the Raspberry Pi 4 LXer Syndicated Linux News 0 01-22-2022 12:45 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 09:19 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