Mailing List Archive

Problem with "GRUB upgrades" news item
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
Re: Problem with "GRUB upgrades" news item [ In reply to ]
Walter Dnes wrote:
> 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

:-)  :-) 
|
Re: Problem with "GRUB upgrades" news item [ In reply to ]
Is your efi fat32 formatted? (required)

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

BillK


On 6/3/24 14:02, Dale wrote:
> Walter Dnes wrote:
>> 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
>
> :-)  :-)
> |
Re: Problem with "GRUB upgrades" news item [ In reply to ]
On Wed, 6 Mar 2024 at 07:02, Dale <rdalek1967@gmail.com> wrote:
> 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
Re: Problem with "GRUB upgrades" news item [ In reply to ]
On 2024-03-06, Walter Dnes <waltdnes@waltdnes.org> wrote:
> 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.