Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to install for UEFI from USB key? [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
bluenuht
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2005
Posts: 138

PostPosted: Wed Nov 13, 2019 11:55 pm    Post subject: How to install for UEFI from USB key? [SOLVED] Reply with quote

Thought I had followed all the handbook install steps for UEFI, but system will not boot ("no system disk" message).

Read a lot of posts here about UEFI and it seems the consensus is to boot from a UEFI disk first, but the handbook refers to the minimum ISO supporting UEFI since Aug 2018.

So I am stuck.

Can I check the USB key that was created with Rufus in Windows 10 is truly working as UEFI?

If it is not, how can I recreate it (from another Gentoo system) as UEFI? (and check it is UEFI once booted, before I chroot)

This machine has no CDROM drive.

There is also a lot of confusing information on what the target systems BIOS should be set to,
Currently I can see in the BIOS

CSM is Enabled
Secure Boot state is Enabled (and greyed out)
Platform Key is Loaded
OS Type is "Windows UEFI mode"

As part of the handbook install, when running
Code:
grub-install --target=x86_64-efi --efi-directory=/boot

got
Code:
EFI variables are not supported on this system.

which is what lead me to this conclusion.
_________________
Linux 4.12.12-gentoo #1 SMP Mon Nov 13 22:11:31 GMT 2017 x86_64 AMD Phenom(tm) II X4 850 Processor AuthenticAMD GNU/Linux - Sapphire ATI Radeon HD 6450 - 8G DDR3
Pay for Free Open source Software


Last edited by bluenuht on Thu Nov 14, 2019 8:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Thu Nov 14, 2019 1:19 am    Post subject: Reply with quote

Hit the EFI Boot Manager key during boot (F11 for my motherboard), it should display available boot options and devices. It may show your Grub2 if it was installed in a standard location. Boot in UEFI mode, once booted up use efibootmgr to configure your boot entries.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3304
Location: Illinois, USA

PostPosted: Thu Nov 14, 2019 1:28 am    Post subject: Reply with quote

Live recovery system: https://www.dropbox.com/sh/74brxtwj974ucgv/AACOQjJ6rbuKiEfYoSsSMzTka?dl=0
Or the last Gentoo based version of sysrescuecd: https://osdn.net/projects/systemrescuecd/storage/releases/5.3.2/

Instruction for putting iso on a USB stick here: http://www.system-rescue-cd.org/Installing-SystemRescueCd-on-a-USB-stick/
Be sure to select UEFI boot in the BIOS

In a pinch the Arch version of sysrescuecd probably works too. For years I used a Knoppix disk before discovering (here!) sysrescuecd
Back to top
View user's profile Send private message
bluenuht
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2005
Posts: 138

PostPosted: Thu Nov 14, 2019 8:02 pm    Post subject: Reply with quote

Could not manually disable the Secure Boot in the BIOS, had to set the OS from Windows Secure to Other.

After I recreated the USB with dd in Linux was able to boot in UEFI mode. Previously I had got a error message about
Code:
uefi security verification failed (0x1A) security violation


and after chroot-ing

Code:
grub-install --target=x86_64-efi --efi-directory=/boot


ran with no errors and rebooting loaded up my new Gentoo system.

I wonder if it is worth updating the Handbook with a few steps to check the user is in UEFI mode?

But I squarely put the blame on Grub, the message about EFI variables was not descriptive enough.

thanks for your help
_________________
Linux 4.12.12-gentoo #1 SMP Mon Nov 13 22:11:31 GMT 2017 x86_64 AMD Phenom(tm) II X4 850 Processor AuthenticAMD GNU/Linux - Sapphire ATI Radeon HD 6450 - 8G DDR3
Pay for Free Open source Software
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2799

PostPosted: Thu Nov 14, 2019 8:50 pm    Post subject: Reply with quote

bluenuht wrote:
I wonder if it is worth updating the Handbook with a few steps to check the user is in UEFI mode?

See this wiki article and the related links mentioned there.
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