Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boot Issues/ Possibly GRUB??
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
holdend
n00b
n00b


Joined: 24 Dec 2017
Posts: 4
Location: Ohio

PostPosted: Sat Dec 30, 2017 6:17 am    Post subject: Boot Issues/ Possibly GRUB?? Reply with quote

Here is the issue. I am building Gentoo for the first time and am fairly new to Linux in general. I have followed the AMD64 Handbook to the best of my ability and feel like I haven't skipped or missed anything. I have also tried to change my boot from Legacy to UEFI with and without CSM. Currently the only thing that works is UEFI with CSM and it doesn't actually boot straight to Gentoo. What I have to do is hit F9 to get the list of available bootable devices and the choose "Boot from EFI file". I can then go right in a choose the Gentoo build and boot to it fine. So I guess the issue is just that GRUB is not working for my system. I don't know if I have configured it wrong or what but other than this everything else seems fine. What should I do? How can I tell what is causing the issue and how do I go about fixing it.

Thanks in advance and sorry if this doesn't make a whole lot of sense I am still learning!
_________________
Holden D
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Sat Dec 30, 2017 7:42 am    Post subject: Re: Boot Issues/ Possibly GRUB?? Reply with quote

holdend wrote:
...I have also tried to change my boot from Legacy to UEFI with and without CSM. Currently the only thing that works is UEFI with CSM and it doesn't actually boot straight to Gentoo. ...

Please check if your computer at all can boot in plain UEFI mode. Put sysrescue cd on a USB stick and try to boot it ...
  • Are there other OSes installed on that computer?
  • Did you check / read / compare with the ESP wiki article?
Back to top
View user's profile Send private message
holdend
n00b
n00b


Joined: 24 Dec 2017
Posts: 4
Location: Ohio

PostPosted: Sat Dec 30, 2017 3:34 pm    Post subject: Re: Boot Issues/ Possibly GRUB?? Reply with quote

charles17 wrote:

Please check if your computer at all can boot in plain UEFI mode. Put sysrescue cd on a USB stick and try to boot it ...
  • Are there other OSes installed on that computer?
  • Did you check / read / compare with the ESP wiki article?


I'm not sure about the plain UEFI mode. My three available boot options are Legacy, UEFI (with CSM), and UEFI (without CSM). The only one that will work for me is UEFI (with CSM).

There are no other OSes on the disk. That was actually my first thought that maybe it was getting confused due to some leftover parts of the prior installation, but no that is not the case.

Also, I read up on ESP wiki and I feel like maybe the bootx64.efi file may be in the wrong location or not pointed to properly. Something is causing that file to not be seen at boot. Because if I use my boot options menu and go into "Boot from EFI file" that is the file that I boot from. So, I guess I'm asking how then do I know if it is in the wrong location and what should I do to straighten that out?
_________________
Holden D
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Sat Dec 30, 2017 3:47 pm    Post subject: Reply with quote

What is your goal, just get it booting in any mode? For non-UEFI boot you may need a protective MBR and boot flag set for boot partition. Assuming the disk is GPT.
For UEFI boot you may need to boot in UEFI mode and set efivars to enable your Grub.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
holdend
n00b
n00b


Joined: 24 Dec 2017
Posts: 4
Location: Ohio

PostPosted: Sat Dec 30, 2017 4:51 pm    Post subject: Reply with quote

Jaglover wrote:
What is your goal, just get it booting in any mode? For non-UEFI boot you may need a protective MBR and boot flag set for boot partition. Assuming the disk is GPT.
For UEFI boot you may need to boot in UEFI mode and set efivars to enable your Grub.


My goal at this point would be to boot UEFI. My disk is GPT so I feel like that should be the easiest options at this point. I haven't set efivars so that is likely what I need to do. Thanks I will look into this!
_________________
Holden D
Back to top
View user's profile Send private message
holdend
n00b
n00b


Joined: 24 Dec 2017
Posts: 4
Location: Ohio

PostPosted: Sat Dec 30, 2017 5:08 pm    Post subject: Reply with quote

I got it!!

Thanks again for the help I guess I just needed someone to talk me through it.

Basically it needed efivarfs remounted to the correct location (/sys/firmware/efi in my case), then a new efi boot entry created. After that I manually went into BIOS and setup a customized boot to boot to the \EFI\gentoo\grubx64.efi file and it works. I am booting up now!

Thanks again!
_________________
Holden D
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Sat Dec 30, 2017 6:17 pm    Post subject: Reply with quote

holdend wrote:
... boot to the \EFI\gentoo\grubx64.efi file and it works. I am booting up now!

Next ( optional ) step: Move it to /boot/EFI/grub/grubx64.efi
and try an EFI stub kernel in /boot/EFI/gentoo/bzImage.efi.
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