Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UEFI not recognized? [Solved]
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
StoneC0ld
n00b
n00b


Joined: 27 Jul 2006
Posts: 48

PostPosted: Wed Dec 04, 2019 6:13 am    Post subject: UEFI not recognized? [Solved] Reply with quote

I'm trying to reinstall my system with the current version, and trying to get it to actually use UEFI. I gave up on it last time, under the impression that the installation guide was incomplete or misleading because I couldn't get it working.

Now that the installation guide seems to be more detailed in setting it up with UEFI, I'm trying it again. However, after following the installation guide, the system does not recognize the boot drive. In the UEFI boot order screen, all I see is the ipv4 and ipv6 ethernet boot options. And, I followed the installation guide to the letter, as I understood it.

The board is an Intel Desktop Board DH87RL, with an Intel Core i5-4670 CPU.
Is anyone familiar with running linux with UEFI on this board? Is this board simply incompatible with the UEFI implementation in linux/grub2?


Last edited by StoneC0ld on Fri Dec 06, 2019 12:39 am; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3238

PostPosted: Wed Dec 04, 2019 6:56 am    Post subject: Re: UEFI not recognized? Reply with quote

StoneC0ld wrote:
However, after following the installation guide, the system does not recognize the boot drive. In the UEFI boot order screen,

How did you add the UEFI boot item?
Are you trying with a boot manager like GRUB or rEFInd or directly with EFI stub kernel?
Back to top
View user's profile Send private message
StoneC0ld
n00b
n00b


Joined: 27 Jul 2006
Posts: 48

PostPosted: Wed Dec 04, 2019 7:15 pm    Post subject: Reply with quote

I'm using GRUB2, and I followed the instructions exactly on the "Configuring the bootloader" page of the installation handbook.

The only thing I didn't do from that page is the one line that talks about some motherboard manufacturers only supporting the /efi/boot location for the .efi file, and adding the --removable option to the grub-install line. Because, I don't know if that applies to my motherboard, and don't know how to check if it does...

One thing that's confusing me, though... The installation guide says grub and everything should be installed in /boot, and the 128MB fat32 partition be mounted as /boot
I'm finding other pages that suggest that the fat32 partition should be mounted as /boot/efi/, and /boot should be a separate partition or even part of the rootfs partition.
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 502
Location: Hawaii

PostPosted: Thu Dec 05, 2019 4:28 am    Post subject: Reply with quote

StoneC0ld wrote:
I'm using GRUB2, and I followed the instructions exactly on the "Configuring the bootloader" page of the installation handbook.

The only thing I didn't do from that page is the one line that talks about some motherboard manufacturers only supporting the /efi/boot location for the .efi file, and adding the --removable option to the grub-install line. Because, I don't know if that applies to my motherboard, and don't know how to check if it does...

One thing that's confusing me, though... The installation guide says grub and everything should be installed in /boot, and the 128MB fat32 partition be mounted as /boot
I'm finding other pages that suggest that the fat32 partition should be mounted as /boot/efi/, and /boot should be a separate partition or even part of the rootfs partition.


Depending on your firmware, the exact location many or may not matter. I have /boot and mount my efi system partition as /boot/efi. I've only done a UEFI install on three motherboards, a LGA 1150 with a Haswell, an x370 and my current x470 setup. I realized that Grub2 was way more than I needed and chose rEFInd instead. What exactly you need to do will depend on your UEFI firmware. Some things that might help: Disable compatability/hybrid bios/uefi mode if possible in your uefi firmware. Try disabling gurb, compiling an efistub kernel in chroot and using efibootmgr to add the kernel to your uefi boot list. You many or many not have to rename the kernel depending you your firmware. If nothing else use efibootmgr to have a look at your bootlist and possibly fix what's broken.,
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
Back to top
View user's profile Send private message
StoneC0ld
n00b
n00b


Joined: 27 Jul 2006
Posts: 48

PostPosted: Fri Dec 06, 2019 12:38 am    Post subject: Reply with quote

Ok, so I nuked the whole thing, and repartitioned with /dev/sda1 as a 512MB esp/efi vfat partition mounted as /boot/efi, and /dev/sda2 as a 512MB ext2 partition mounted as /boot, and reinstalled the whole thing from scratch.

I also tried adding the --removable option to the grub-install command.

The result is that I now have a bootable gentoo installation with UEFI enabled. :) I don't know what specific change from what I did last time fixed it, but apparently I got it right this time...

For some odd reason, it does not want to support referencing the partitions by LABEL=blah, my first boot resulted in unmountable partitions.... After booting back into the liveUSB and changing my /etc/fstab to call on /dev/sd* instead of using LABEL=____, everything is now installed and bootable. :D

Thanks! :)
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