Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
struggling to install; followed handbook, now at UEFI shell
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
nebulous
n00b
n00b


Joined: 16 Nov 2018
Posts: 1

PostPosted: Fri Nov 16, 2018 1:28 am    Post subject: struggling to install; followed handbook, now at UEFI shell Reply with quote

Hello all,

I have been trying to install Gentoo on an EFI-enabled virtualbox for a few days, having failed a few times, and getting further with each next attempt. However, now I am truly stumped and I need some help.

I followed the bootloader section of the handbook and installed grub, then ran
Code:
grub-install --target=x86_64-efi --efi-directory=/boot


which failed at first, but worked after following the handbook's advice.

Then, I ran
Code:
grub-mkconfig -o /boot/grub/grub.cfg


which seemed happily accomplish it's task without any issue.

Next, the handbook instructs the reader to reboot and remove the installation media, which I did. Now my virtual machine boots into the UEFI shell and I am not sure how to proceed with troubleshooting.

I am determined to understand what I have done wrong, and to succeed at installing Gentoo. Any help is greatly appreciated.

My disk is set up like this:

/dev/sda1 is boot, vfat, 512 MB
/dev/sda2 is swap, 512 MB,
/dev/sda3 is root, ext4, 9 GB
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 722
Location: Winnipeg, Canada

PostPosted: Fri Nov 16, 2018 1:46 am    Post subject: Re: struggling to install; followed handbook, now at UEFI sh Reply with quote

nebulous wrote:
Hello all,

I have been trying to install Gentoo on an EFI-enabled virtualbox for a few days, having failed a few times, and getting further with each next attempt. However, now I am truly stumped and I need some help.

I followed the bootloader section of the handbook and installed grub, then ran
Code:
grub-install --target=x86_64-efi --efi-directory=/boot


which failed at first, but worked after following the handbook's advice.

Then, I ran
Code:
grub-mkconfig -o /boot/grub/grub.cfg


which seemed happily accomplish it's task without any issue.

Next, the handbook instructs the reader to reboot and remove the installation media, which I did. Now my virtual machine boots into the UEFI shell and I am not sure how to proceed with troubleshooting.

I am determined to understand what I have done wrong, and to succeed at installing Gentoo. Any help is greatly appreciated.

My disk is set up like this:

/dev/sda1 is boot, vfat, 512 MB
/dev/sda2 is swap, 512 MB,
/dev/sda3 is root, ext4, 9 GB


The disk partitioning layout is not incorrect but may need the proper boot flags sorted. that may explain why the efi shell is being launched instead of gentoo?

I was also going to say the partition layout looks familiar :)

https://forums.gentoo.org/viewtopic-t-1088630.html

check your bios boot order as well.

I dont see any obvious reasons why this should fail to boot based on the information offered however based on the information offered a couple general assumptions could be tested.

One assumption could be that your /boot/EFI mount for sda1 is incorrect. the path to this mount matters as some efi firmwares are dumb and don't obey best practice standards.
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!


Last edited by ali3nx on Fri Nov 16, 2018 1:48 am; edited 1 time in total
Back to top
View user's profile Send private message
Cuong Nguyen
Apprentice
Apprentice


Joined: 18 Jan 2018
Posts: 152

PostPosted: Fri Nov 16, 2018 1:47 am    Post subject: Re: struggling to install; followed handbook, now at UEFI sh Reply with quote

nebulous wrote:
Hello all,

I have been trying to install Gentoo on an EFI-enabled virtualbox for a few days, having failed a few times, and getting further with each next attempt. However, now I am truly stumped and I need some help.

I followed the bootloader section of the handbook and installed grub, then ran
Code:
grub-install --target=x86_64-efi --efi-directory=/boot


which failed at first, but worked after following the handbook's advice.

Then, I ran
Code:
grub-mkconfig -o /boot/grub/grub.cfg


which seemed happily accomplish it's task without any issue.

Next, the handbook instructs the reader to reboot and remove the installation media, which I did. Now my virtual machine boots into the UEFI shell and I am not sure how to proceed with troubleshooting.

I am determined to understand what I have done wrong, and to succeed at installing Gentoo. Any help is greatly appreciated.

My disk is set up like this:

/dev/sda1 is boot, vfat, 512 MB
/dev/sda2 is swap, 512 MB,
/dev/sda3 is root, ext4, 9 GB


VirtualBox VM keeps nvram hard coded so you can't modify EFI boot with efibootmgr. You have to rename or copy /boot/grubx64.efi --> /boot/bootx64.efi

You have to boot from CD like live CD or SystemRescueCD, do above step and reboot.
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