View previous topic :: View next topic |
Author |
Message |
huttuded n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Jan 2019 Posts: 15
|
Posted: Mon Jan 28, 2019 11:57 am Post subject: No efivars on gentoo install media |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nick_gentoo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 07 Jan 2019 Posts: 140
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
huttuded n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Jan 2019 Posts: 15
|
Posted: Mon Jan 28, 2019 12:13 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nick_gentoo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 07 Jan 2019 Posts: 140
|
Posted: Mon Jan 28, 2019 12:40 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
huttuded n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Jan 2019 Posts: 15
|
Posted: Mon Jan 28, 2019 12:50 pm Post subject: |
|
|
I used the Minimal Installation CD image from the official site. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nick_gentoo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 07 Jan 2019 Posts: 140
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
huttuded n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Jan 2019 Posts: 15
|
Posted: Mon Jan 28, 2019 1:05 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31483 Location: here
|
Posted: Mon Jan 28, 2019 1:25 pm Post subject: |
|
|
You can also use SystemRescueCd (gentoo based) _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nick_gentoo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 07 Jan 2019 Posts: 140
|
Posted: Mon Jan 28, 2019 1:33 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
huttuded n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Jan 2019 Posts: 15
|
Posted: Mon Jan 28, 2019 1:48 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nick_gentoo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 07 Jan 2019 Posts: 140
|
Posted: Mon Jan 28, 2019 5:50 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
huttuded n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Jan 2019 Posts: 15
|
Posted: Mon Jan 28, 2019 7:41 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nick_gentoo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 07 Jan 2019 Posts: 140
|
Posted: Mon Jan 28, 2019 8:37 pm Post subject: |
|
|
Nice! And now you can certainly install grub, if you still want it
(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 |
|
![](templates/gentoo/images/spacer.gif) |
huttuded n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Jan 2019 Posts: 15
|
Posted: Tue Jan 29, 2019 12:07 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
The Doctor Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/1476831409504021698f994.jpg)
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Tue Jan 29, 2019 12:17 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
dmpogo Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 02 Sep 2004 Posts: 3472 Location: Canada
|
Posted: Tue Jan 29, 2019 4:02 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nick_gentoo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 07 Jan 2019 Posts: 140
|
Posted: Tue Jan 29, 2019 8:04 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|