Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No efivars on gentoo install media
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
huttuded
n00b
n00b


Joined: 27 Jan 2019
Posts: 15

PostPosted: Mon Jan 28, 2019 11:57 am    Post subject: No efivars on gentoo install media Reply with quote

Greetings to you, Gentoo community.

Yesterday I decided to install Gentoo on my main rig after using it a bit over month on both of my laptops. Everything went well with the installation, except when I was configuring GRUB and it threw a bunch of errors. I noticed that the /sys/firmware/efi partition was missing. I read that the installation media has to be booted in UEFI -mode, but for some reason my motherboard's UEFI/BIOS won't allow that on the gentoo USB-stick. I tried various different options from my mobo's (ASUS Prime B350 Plus) BIOS settings. I tried disabling secure boot, disabling CSM and someone had got it working from a different menu called "boot override". But it just won't boot, the screen just flashes and goes back to the boot menu. The only way I seem to be able to boot it is in the non-UEFI legacy mode. I've also tried creating the minimal CD with different software, like Rufus and Universal USB Installer (or something like that).

This might not be the right place to ask this question, since I think it's more of my motherboards's UEFI/BIOS -kind of issue.

Every time I try to install something manually witth GPT/UEFI, I fail horribly. I'm considering to go and install it with ye olde BIOS/MBR, since I currently only have < 2 TB of storage. Are there any other drawbacks or limits if I use LILO+MBR than the 4 primary partitions & 2 TB maximum supported storage? After all this (fun) I'm feeling impatient.
Back to top
View user's profile Send private message
nick_gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2019
Posts: 140

PostPosted: Mon Jan 28, 2019 12:03 pm    Post subject: Reply with quote

huttuded, have a look at this section: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader#Install, it mentions mounting the efivars partition:
Code:
root #mount -o remount,rw /sys/firmware/efi/efivars
Back to top
View user's profile Send private message
huttuded
n00b
n00b


Joined: 27 Jan 2019
Posts: 15

PostPosted: Mon Jan 28, 2019 12:13 pm    Post subject: Reply with quote

Yes, I followed that part of the handbook too and the output is:

Code:
mount: /sys/firmware/efi/efivars: mount point does not exist.
Back to top
View user's profile Send private message
nick_gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2019
Posts: 140

PostPosted: Mon Jan 28, 2019 12:40 pm    Post subject: Reply with quote

OK, maybe I hurried a bit in answering. I went through an install recently and I needed that line for mounting the efivars, for me it worked.

You mention using an USB stick for the install - what installer image did you write on the stick?
Back to top
View user's profile Send private message
huttuded
n00b
n00b


Joined: 27 Jan 2019
Posts: 15

PostPosted: Mon Jan 28, 2019 12:50 pm    Post subject: Reply with quote

I used the Minimal Installation CD image from the official site.
Back to top
View user's profile Send private message
nick_gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2019
Posts: 140

PostPosted: Mon Jan 28, 2019 12:54 pm    Post subject: Reply with quote

Just to check: at https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Media#Minimal_installation_CD, it says that
Quote:
As of August 23, 2018 the official Minimal CDs are capable of booting in UEFI mode.

Is your image newer than that?
Back to top
View user's profile Send private message
huttuded
n00b
n00b


Joined: 27 Jan 2019
Posts: 15

PostPosted: Mon Jan 28, 2019 1:05 pm    Post subject: Reply with quote

Yep, I even tried the newest one, which is dated 27/1/19. Meanwhile I've been trying more various options and combinations of my UEFI/BIOS settings to boot the media in UEFI mode, but still with no success. I think could the firmware itself be bugged, because I updated my BIOS a while ago. I think I'll try to burn the installation media to DVD and see if that works.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31483
Location: here

PostPosted: Mon Jan 28, 2019 1:25 pm    Post subject: Reply with quote

You can also use SystemRescueCd (gentoo based)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
nick_gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2019
Posts: 140

PostPosted: Mon Jan 28, 2019 1:33 pm    Post subject: Reply with quote

I also used SystemRescueCD and could create an UEFI bootable USB stick with it.
That motherboard is pretty recent, so I would assume it uses UEFI anyway. As far as I understand it, then it's a matter of choosing between booting from an GPT- or MBR-formatted disk; the MBR way needs the CSM setting activated.

You clearly could initially boot the stick for the install - what did you later change that did not boot anymore?
Back to top
View user's profile Send private message
huttuded
n00b
n00b


Joined: 27 Jan 2019
Posts: 15

PostPosted: Mon Jan 28, 2019 1:48 pm    Post subject: Reply with quote

I can still boot it but it doesn't boot in UEFI mode. In my understanding that is the reason I can't mount the /sys/firmware/efi -partition. When I boot the minimal CD, grepping dmesg for 'EFI' or "efi" returns nothing related, and the sys/firmware is missing the "efi" part, which I presume is to be mounted in /sys before chrooting. In my BIOS boot menu I see two entries for the USB stick, one labeled "UEFI data traveler 3.0" or something and other is just plain "data traveler 3.0", which I can boot and used to install the base system in the first place. I think the UEFI -labeled version of that stick is the one I'm supposed to boot to get the /sys/firmware/efi partition included, but selecting that just flashes the screen rapidly and returns to the boot menu. I'd love it if there would be some debug-option in the BIOS to see what happens or isn't happening...

EDIT: typo
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Jan 28, 2019 2:00 pm    Post subject: Reply with quote

You may need to run 'isohybrid -u' on that ISO image before putting it on USB stick. Just guessing, never used Gentoo ISO myself.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
nick_gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2019
Posts: 140

PostPosted: Mon Jan 28, 2019 5:50 pm    Post subject: Reply with quote

So there could be two possible reasons for this:
  • the motherboard might have an issue with booting from that stick - make sure that the latest "BIOS" (firmware) is installed or try to burn the install image on a CD/DVD, like you suggested
  • the install image itself - maybe somebody else who tried it could confirm that it works, or you could try the SystemRescueCD that fedeliallalinea mentioned (btw, I wrote the image on the USB stick with unetbootin in my case)
Back to top
View user's profile Send private message
huttuded
n00b
n00b


Joined: 27 Jan 2019
Posts: 15

PostPosted: Mon Jan 28, 2019 7:41 pm    Post subject: Reply with quote

I'm extremely confused. I got my new install to boot with EFI stub kernel, without efibootmgr, which I thought was a necessity. I just placed the kernel image in /boot/EFI/BOOT/ and gave a desperate reboot and it booted!

Thank you everyone for your help. I'm surprised from so quick responses. The rumors I've heard about the Gentoo's community aren't lies.
Back to top
View user's profile Send private message
nick_gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2019
Posts: 140

PostPosted: Mon Jan 28, 2019 8:37 pm    Post subject: Reply with quote

Nice! And now you can certainly install grub, if you still want it :D
(to enable the efivars, a certain option has to be enabled in the kernel config: https://wiki.gentoo.org/wiki/Efibootmgr)

Never tried it, but I have to keep in mind this method. I think it works without a boot manager as long as the kernel image is placed at that specific location and an eventual initramfs is embedded in the kernel. What is the filename of your kernel image?
Back to top
View user's profile Send private message
huttuded
n00b
n00b


Joined: 27 Jan 2019
Posts: 15

PostPosted: Tue Jan 29, 2019 12:07 am    Post subject: Reply with quote

It's located exactly as:
/boot/EFI/BOOT/BOOTX64.efi

I once had trouble with my other computer for UEFI to find the image, so I've find this to work.

Edit: and I'm more than happy with the stub-kernel boot, since I'm not going to dual-boot or anything. Plus it feels so fast.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Tue Jan 29, 2019 12:17 am    Post subject: Reply with quote

efivars are only used to add or remove entries. Now that you have a working system you should be able to edit to your heart's content. I would at least add a backup kernel so when (not if) you botch a kernel update you have a known working kernel to fall back on.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3472
Location: Canada

PostPosted: Tue Jan 29, 2019 4:02 am    Post subject: Reply with quote

huttuded wrote:
It's located exactly as:
/boot/EFI/BOOT/BOOTX64.efi

I once had trouble with my other computer for UEFI to find the image, so I've find this to work.

Edit: and I'm more than happy with the stub-kernel boot, since I'm not going to dual-boot or anything. Plus it feels so fast.


I have stub-kernel boot and dual boot into Windows ( my laptop came with windows, and I kept them on a shrinked partition). There were some funny things with efi booting (i.e sometimes windows
could be booted only by directly calling some hdd option in efi menu, not window boot manager), but it somehow stabilized now.
Back to top
View user's profile Send private message
nick_gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2019
Posts: 140

PostPosted: Tue Jan 29, 2019 8:04 pm    Post subject: Reply with quote

huttuded wrote:
It's located exactly as:
/boot/EFI/BOOT/BOOTX64.efi

I also understand some things a bit better now.
That is also the name of my Grub executable. And it is the default name given by the UEFI Spec (e.g. here), to be tried in case nothing else was set up.
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