Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
uefi / grub problems (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
armstrong360
n00b
n00b


Joined: 19 Oct 2007
Posts: 39

PostPosted: Mon Apr 08, 2024 7:41 pm    Post subject: uefi / grub problems (SOLVED) Reply with quote

Grub version 2.12-r3

when I boot the computer, grub comes up and is waiting for a command.
If I supply a path to the config file, then the boot continues and is successful. configfile (hd0,gpt3)/boot/grub/grub.conf )

the esp partition (hd0,gpt1) is a FAT 32
its contents are: EFI/BOOT/BOOT/BOOTX64.EFI
and EFI/gentoo/grubx64.efi

( I did both a grub install and a grub install --removable)
sda1 is the esp partition
sda3 is the linux root partition

I think that grubx64.efi is being executed. When I do an lsmod from the grub prompt I see the ext2 module is loaded.

I don't understand why grub install doesn't provide the path to the config file in the grubx64.efi file

fstab:
/dev/sda1 /boot/efi vfat umask=0077 0 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext4 auto noauto,user 0 0


Last edited by armstrong360 on Tue Apr 09, 2024 6:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1441
Location: Earth

PostPosted: Mon Apr 08, 2024 9:07 pm    Post subject: Reply with quote

Code:
/efi/EFI/BOOT/BOOTX64.EFI

the above is mine - you've one BOOT to much.

8)
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
armstrong360
n00b
n00b


Joined: 19 Oct 2007
Posts: 39

PostPosted: Mon Apr 08, 2024 11:34 pm    Post subject: Reply with quote

I have deleted BOOT/BOOT64.EFI (That line was as a result of adding the --removable option the grub-install)

AND
It still boots in exactly the same way as before I must specify the location of the config file
grub configfile (hd0,gpt3)/boot/grub/grub.conf

then it boots properly
Back to top
View user's profile Send private message
rab0171610
Apprentice
Apprentice


Joined: 24 Dec 2022
Posts: 299

PostPosted: Tue Apr 09, 2024 3:02 pm    Post subject: Reply with quote

Technically the grub2 configuration file is now named /boot/grub/grub.cfg .
That being said, did you update the grub configuration after running grub install?
Code:
grub-mkconfig -o /boot/grub/grub.cfg

(or if you insist on using your naming scheme, change grub.cfg to grub.conf.)
It should provide output in the terminal. Pay attention to the part that states it found the grub config file.
Reboot and see if the config file is now found automatically.
Back to top
View user's profile Send private message
armstrong360
n00b
n00b


Joined: 19 Oct 2007
Posts: 39

PostPosted: Tue Apr 09, 2024 6:47 pm    Post subject: Reply with quote

I am embarrassed, simply renaming grub.conf to grub.cfg fixed the problem!

This can be marked as solved!
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