Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub-install problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Mon Oct 01, 2018 9:56 am    Post subject: grub-install problem Reply with quote

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
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Mon Oct 01, 2018 9:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Alexander Mihalicyn
n00b
n00b


Joined: 01 Oct 2018
Posts: 1

PostPosted: Mon Oct 01, 2018 10:07 am    Post subject: Reply with quote

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
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Mon Oct 01, 2018 10:15 am    Post subject: Reply with quote

this is new VMware machine
Back to top
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Mon Oct 01, 2018 10:27 am    Post subject: Reply with quote

tried again to downgrade efivar to version 35 and now it boots
Back to top
View user's profile Send private message
klz
n00b
n00b


Joined: 07 Jun 2011
Posts: 42

PostPosted: Fri Nov 16, 2018 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum