View previous topic :: View next topic |
Author |
Message |
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Mon Oct 01, 2018 9:56 am Post subject: grub-install problem |
|
|
Trying to install a new machine, and when i run:
Code: | grub-install --target=x86_64-efi --efi-directory=/boot/efi |
i get error:
"Could not prepare Boot variable: No such file or directory"
what can i do or check to resolve this?
/boot/efi seems to be mounted correctly and formatted as vfat:
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,relatime)
any help would be appreciated |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Mon Oct 01, 2018 9:59 am Post subject: |
|
|
efibar version that installed, is: sys-libs/efivar-36
when tried to downgrade it to sys-libs/efivar-35 - grub-install seems to work correctly, without errors, but system couldn't boot.
upgrading back to sys-libs/efivar-36 - the same problem |
|
Back to top |
|
|
Alexander Mihalicyn n00b
Joined: 01 Oct 2018 Posts: 1
|
Posted: Mon Oct 01, 2018 10:07 am Post subject: |
|
|
Hi,
can you check and show
Code: |
efibootmgr --verbose
|
Quote: |
grub-install seems to work correctly, without errors, but system couldn't boot.
|
At what stage of boot system fails? Not bootloader found/grub fail/kernel fail?
Have you any OS except gentoo on you disk? |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Mon Oct 01, 2018 10:15 am Post subject: |
|
|
this is new VMware machine |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Mon Oct 01, 2018 10:27 am Post subject: |
|
|
tried again to downgrade efivar to version 35 and now it boots |
|
Back to top |
|
|
klz n00b
Joined: 07 Jun 2011 Posts: 42
|
Posted: Fri Nov 16, 2018 12:06 pm Post subject: |
|
|
Thanks!!
This (downgrading sys-libs/efivar from v36 to v35) was the solution for my recent "Could not prepare Boot variable: No such file or directory" -problem as well.
Lately I was not able to add new efibootmgr entries, apparently since upgrading to v36 (on Oct 22 of 2018).
After masking v36 and downgrading to v35 all is good again. |
|
Back to top |
|
|
|