View previous topic :: View next topic |
Author |
Message |
gamelon n00b
Joined: 19 Sep 2020 Posts: 3
|
Posted: Sat Sep 19, 2020 3:28 am Post subject: Fresh install booting to grub |
|
|
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 |
|
|
Axarva n00b
Joined: 19 Sep 2020 Posts: 1 Location: Nepal
|
Posted: Sat Sep 19, 2020 5:45 am Post subject: |
|
|
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 |
|
|
gamelon n00b
Joined: 19 Sep 2020 Posts: 3
|
Posted: Sat Sep 19, 2020 11:26 am Post subject: |
|
|
Hmm, how would I go about entirely purging grub so I may start from square 1 |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22867
|
Posted: Sat Sep 19, 2020 4:29 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54639 Location: 56N 3W
|
Posted: Sat Sep 19, 2020 8:42 pm Post subject: |
|
|
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 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 |
|
|
gamelon n00b
Joined: 19 Sep 2020 Posts: 3
|
Posted: Sun Sep 20, 2020 11:41 am Post subject: |
|
|
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 |
|
|
389292 Guru
Joined: 26 Mar 2019 Posts: 504
|
Posted: Sun Sep 20, 2020 1:11 pm Post subject: |
|
|
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 |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2186
|
Posted: Mon Sep 21, 2020 5:46 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54639 Location: 56N 3W
|
Posted: Mon Sep 21, 2020 6:23 pm Post subject: |
|
|
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 |
|
|
TTAfLA n00b
Joined: 09 Sep 2020 Posts: 21
|
Posted: Tue Sep 22, 2020 12:32 am Post subject: |
|
|
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 |
|
|
Gentobobbyuk Apprentice
Joined: 23 May 2020 Posts: 196
|
Posted: Mon Dec 28, 2020 3:36 pm Post subject: |
|
|
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 |
|
|
|