Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fresh install booting to 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
gamelon
n00b
n00b


Joined: 19 Sep 2020
Posts: 3

PostPosted: Sat Sep 19, 2020 3:28 am    Post subject: Fresh install booting to grub Reply with quote

Tonight I installed gentoo (I think) I finalized it with a reboot but unfortunately, when I try booting I am sent to the grub command line thing, anyone mind helping me or pointing me?
Back to top
View user's profile Send private message
Axarva
n00b
n00b


Joined: 19 Sep 2020
Posts: 1
Location: Nepal

PostPosted: Sat Sep 19, 2020 5:45 am    Post subject: Reply with quote

Hello
Are you sure you installed GRUB properly? And are you sure that your kernel compiled successfully? There are many ways how your install may have failed, but these are the most common reasons. Try checking if you missed something by booting up the live CD, and chrooting into the system. Hope you figure it out without taking the sad path of reinstalling!
_________________
Love your system. Then, and only then, it will do your bidding like a faithful servant.
Back to top
View user's profile Send private message
gamelon
n00b
n00b


Joined: 19 Sep 2020
Posts: 3

PostPosted: Sat Sep 19, 2020 11:26 am    Post subject: Reply with quote

Hmm, how would I go about entirely purging grub so I may start from square 1
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22867

PostPosted: Sat Sep 19, 2020 4:29 pm    Post subject: Reply with quote

Rather than starting over, why not try to fix the current problem? What exactly does Grub print? How did you configure Grub before you rebooted? If you boot again from the live environment, what do you see in your grub configuration files?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54639
Location: 56N 3W

PostPosted: Sat Sep 19, 2020 8:42 pm    Post subject: Reply with quote

gamelon,

When grub starts it tries to read its grub.cfg file.
If that's missing it expects you to provide in at the command line.

Creating the grub.cfg is described in the Gentoo Handbook.

Did you miss the
Code:
grub-mkconfig
step?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gamelon
n00b
n00b


Joined: 19 Sep 2020
Posts: 3

PostPosted: Sun Sep 20, 2020 11:41 am    Post subject: Reply with quote

I've come to the conclusion of why this is happening, grub can not find the kernel, how would I go about changing this?
Additionally I did make the config in accordance with the handbook.
Back to top
View user's profile Send private message
389292
Guru
Guru


Joined: 26 Mar 2019
Posts: 504

PostPosted: Sun Sep 20, 2020 1:11 pm    Post subject: Reply with quote

If you can boot into GRUB but it sees no kernel image then you have to proceed with installing the kernel and then "grub-mkconfig -o /boot/grub/grub.cfg", make sure /boot is mounted.
Also in theory it should not happen because the kernel installation step goes before grub in the Gentoo Install guide, you could have made a mistake in kernel installation step: make && make modules_install && make install, or if you use genkernel these steps will be different.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2186

PostPosted: Mon Sep 21, 2020 5:46 pm    Post subject: Reply with quote

gamelon wrote:
I've come to the conclusion of why this is happening, grub can not find the kernel, how would I go about changing this?
Additionally I did make the config in accordance with the handbook.

If you'd like to try a different approach, you could try tailoring my "static" grub.cfg (you can cut-and-paste it into your own grub.cfg). I'm assuming you're using an x86 or IA64 machine.
_________________
Greybeard
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54639
Location: 56N 3W

PostPosted: Mon Sep 21, 2020 6:23 pm    Post subject: Reply with quote

gamelon,

If grub cannot find the kernel now it could not write the grub.cfg file correctly either.
It tells you all about that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
TTAfLA
n00b
n00b


Joined: 09 Sep 2020
Posts: 21

PostPosted: Tue Sep 22, 2020 12:32 am    Post subject: Reply with quote

NeddySeagoon wrote:
gamelon,

If grub cannot find the kernel now it could not write the grub.cfg file correctly either.
It tells you all about that.


Actually, I had exactly the same experience with root formatted with xfs. Grub installed without errors but
Gentoo was booting to grub only. I could list existing kernel but when I tried to load it I was welcomed with a black screen.
When I formatted root with ext4 everything worked just fine.

So efi/xfs/grub most likely will fail to boot.

I don't know if this is the case here, but it is possible to install grub and not being able to load kernel (I was using the same kernel config file for each unsuccesful/succesful installation)
Back to top
View user's profile Send private message
Gentobobbyuk
Apprentice
Apprentice


Joined: 23 May 2020
Posts: 196

PostPosted: Mon Dec 28, 2020 3:36 pm    Post subject: Reply with quote

When using xfs please make sure you have xfs tools installed.
Grub can says its installed with no errors and still not boot .

Make sure fstab is setup correctly.
Make sure the right filesystem tools are emerged for ur boot and root
Sometimes its nesercary to have to llinux-firmware emerged

There are few commands you can use when installing grub

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


Quote:
grub-install --target=x86_64-efi --efi-directory=/boot --removable


As mentioned above grub can install report no errors and not work

If you formated with ext4 and it worked im sure you missed the tools or some part of kernel config.
I have XFS working fine
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