You are not logged in.

#1 2023-05-05 23:40:12

HailZero
Member
Registered: 2023-05-05
Posts: 12

How do I install grub?

I have a 100M EFI partition, and a 1G /boot partition.  I’m trying to install Arch on my fourth partition.

When I run the command “grub-install —target=x86_64-efi —bootloader-id=grub_uefi —recheck” it says “grub-install:  error:  cannot find EFI directory.”

This didn’t happen last time I installed Arch.

Offline

#2 2023-05-05 23:44:34

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: How do I install grub?

https://wiki.archlinux.org/title/GRUB#UEFI_systems

Or, y'know, use a boot loader/manager that isn't overly convoluted.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2023-05-06 00:18:14

HailZero
Member
Registered: 2023-05-05
Posts: 12

Re: How do I install grub?

I installed efibootmgr.  I don’t know what to do now.

Offline

#4 2023-05-06 01:27:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: How do I install grub?

You read the command given in the wiki. You missed an important option.

Online

#5 2023-05-06 03:12:07

HailZero
Member
Registered: 2023-05-05
Posts: 12

Re: How do I install grub?

Which command is that?

Offline

#6 2023-05-06 05:37:34

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: How do I install grub?

Which command is that?

https://wiki.archlinux.org/title/EFISTUB

Last edited by d_fajardo (2023-05-06 05:38:36)

Offline

#7 2023-05-06 07:47:23

HailZero
Member
Registered: 2023-05-05
Posts: 12

Re: How do I install grub?

That didn’t fix the problem.

Offline

#8 2023-05-06 09:12:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: How do I install grub?

The important option you are missing for grib is the --efi-directory path you should pass

Offline

#9 2023-05-07 15:30:28

HailZero
Member
Registered: 2023-05-05
Posts: 12

Re: How do I install grub?

I already have grub installed for my other operating systems.  I need the command to add my arch installation to the grub menu, without it breaking grub.

Last edited by HailZero (2023-05-07 15:39:26)

Offline

#10 2023-05-07 16:00:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: How do I install grub?

Well you never mentioned that. That would be grub-mkconfig from your original system that you have GRUB from, with the root/boot partition of Arch mounted somewhere™ and os-prober active.

Note that current Arch kernels disable an old compatibility function for EFI handover that might mandate you need a newer GRUB than whatever your host OS installed originally. Which "other OS" are you talking exactly?

In the case you actually need/want the GRUB from Arch, note that you can install different/distinct variants of GRUB to the same ESP by picking unique --bootloader-id arguments

Last edited by V1del (2023-05-07 16:03:07)

Offline

#11 2023-05-07 17:30:24

HailZero
Member
Registered: 2023-05-05
Posts: 12

Re: How do I install grub?

I have debian and windows installed.  I know how to enable os-prober.

Offline

#12 2023-05-07 20:06:31

HailZero
Member
Registered: 2023-05-05
Posts: 12

Re: How do I install grub?

So I’m supposed to install arch without configuring grub, and then configure it from the first OS I installed?

Offline

#13 2023-05-08 11:55:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: How do I install grub?

That's how you'd do it assuming you wanted to use the GRUB from debian to boot Arch

Offline

Board footer

Powered by FluxBB