Discussion:
[gentoo-user] Problem with "GRUB upgrades" news item
(too old to reply)
Walter Dnes
2024-03-06 05:30:01 UTC
Permalink
I've got a UEFI system. According to the news item...
Re-runing grub-install both with and without the --removable option
should ensure a working GRUB installation.
I tried that...

[i3][root][~] grub-install
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
[i3][root][~] grub-install --removable
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.

Oops! My EFI directory...

[i3][root][~] ll /boot/EFI/
total 2
drwxr-xr-x 3 root root 512 Jun 11 2021 .
drwxr-xr-x 4 root root 1024 Dec 31 1969 ..
drwxr-xr-x 2 root root 512 Jun 11 2021 gentoo

Any ideas?
--
Roses are red
Roses are blue
Depending on their velocity
Relative to you
Dale
2024-03-06 06:10:01 UTC
Permalink
Post by Walter Dnes
I've got a UEFI system. According to the news item...
Re-runing grub-install both with and without the --removable option
should ensure a working GRUB installation.
I tried that...
[i3][root][~] grub-install
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
[i3][root][~] grub-install --removable
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
Oops! My EFI directory...
[i3][root][~] ll /boot/EFI/
total 2
drwxr-xr-x 3 root root 512 Jun 11 2021 .
drwxr-xr-x 4 root root 1024 Dec 31 1969 ..
drwxr-xr-x 2 root root 512 Jun 11 2021 gentoo
Any ideas?
I don't use EFI but I read on this the other day when I was working my
way through this news item.  Here is a link.

https://wiki.gentoo.org/wiki/GRUB#Installing_GRUB_for_EFI

If you followed the docs for installing grub with EFI, you need to point
it to the location of the efi directory.  The command might look like
this.  |

grub-install --efi-directory=/efi 

Hope that helps. 

Dale

:-)  :-) 
|
William Kenworthy
2024-03-06 06:10:02 UTC
Permalink
Is your efi fat32 formatted? (required)

This usually means its another partition mounted to /boot/EFI

BillK
Post by Dale
Post by Walter Dnes
I've got a UEFI system. According to the news item...
Re-runing grub-install both with and without the --removable option
should ensure a working GRUB installation.
I tried that...
[i3][root][~] grub-install
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
[i3][root][~] grub-install --removable
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
Oops! My EFI directory...
[i3][root][~] ll /boot/EFI/
total 2
drwxr-xr-x 3 root root 512 Jun 11 2021 .
drwxr-xr-x 4 root root 1024 Dec 31 1969 ..
drwxr-xr-x 2 root root 512 Jun 11 2021 gentoo
Any ideas?
I don't use EFI but I read on this the other day when I was working my
way through this news item.  Here is a link.
https://wiki.gentoo.org/wiki/GRUB#Installing_GRUB_for_EFI
If you followed the docs for installing grub with EFI, you need to
point it to the location of the efi directory.  The command might look
like this. |
grub-install --efi-directory=/efi
Hope that helps.
Dale
:-)  :-)
|
Arve Barsnes
2024-03-06 06:50:02 UTC
Permalink
If you followed the docs for installing grub with EFI, you need to point it to the location of the efi directory. The command might look like this.
grub-install --efi-directory=/efi
Hope that helps.
Dale
Specifically in your case, Walter, that would be --efi-directory=/boot

Regards,
Arve
Walter Dnes
2024-03-06 09:20:02 UTC
Permalink
Post by Arve Barsnes
Specifically in your case, Walter, that would be --efi-directory=/boot
Thank you very much. A screen capture...

[i3][root][~] grub-install --efi-directory=/boot
Installing for x86_64-efi platform.
Installation finished. No error reported.
[i3][root][~] grub-install --efi-directory=/boot --removable
Installing for x86_64-efi platform.
Installation finished. No error reported.
--
Roses are red
Roses are blue
Depending on their velocity
Relative to you
Grant Edwards
2024-03-06 14:40:02 UTC
Permalink
Post by Walter Dnes
I've got a UEFI system. According to the news item...
Re-runing grub-install both with and without the --removable option
should ensure a working GRUB installation.
I tried that...
[i3][root][~] grub-install
I believe you have to run grub-install using all the same options you
did originally. AFAICT, grub doesn't remember what you did the last
time.

Loading...