Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boots to BIOS after kernel upgrade
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Sun Mar 31, 2024 11:18 am    Post subject: Boots to BIOS after kernel upgrade Reply with quote

Hi

I updated my kernel, now box boots to BIOS settings.

I suspect that "make install" ran out of space on /boot, but did not see any error message. One would assume that it checks for sufficient space...

Not sure how to fix this, assume need to boot from USB then make space and copy new kernel again.

Just confused that it does not boot to GRUB and give me option to select different kernel...

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1407
Location: Germany

PostPosted: Sun Mar 31, 2024 11:46 am    Post subject: Reply with quote

Quote:
Not sure how to fix this, assume need to boot from USB then make space and copy new kernel again.

yes.

But why it boots into bios settings, I'm note sure. Its new to me that an boot error opens bios settings. Usually you would get an error.
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4574
Location: Germany

PostPosted: Sun Mar 31, 2024 4:01 pm    Post subject: Reply with quote

Hi,
it sounds like the grub bootloader is broken. Probably you missed the steps from last grub update news item -> https://www.gentoo.org/support/news-items/2024-02-01-grub-upgrades.html
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Sun Mar 31, 2024 5:11 pm    Post subject: Reply with quote

Josef.95 wrote:
Hi,
it sounds like the grub bootloader is broken. Probably you missed the steps from last grub update news item -> https://www.gentoo.org/support/news-items/2024-02-01-grub-upgrades.html


I did not understand that news item or that I was supposed to do anything.

It talks about a situation which MAY occur (but which never happened to me before today), while warning about clobbering dual-boot without saying how to avoid that.

I booted from a Manjaro live USB and put the previous grub.cfg back, which then allowed me to boot with previous kernel.

But now have mismatch with Nvidia driver (which is what I was trying to resolve with kernel upgrade) so trying to figure best way to get them in sync so that I can start KDE.

Is it safe to run grub-install and then grub-install --removable ?

Do not want to make situation worse :-)

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Mon Apr 01, 2024 9:27 am    Post subject: Reply with quote

I am still stuck.

I set kernel pointer back to previous working kernel and did an emerge -e system, which was probably unnecessary.

Have rebuilt kernel as far as make install.

I tried the suggested grub-install command, which failed. (cannot find EFI directory)

I see the page https://wiki.gentoo.org/wiki/GRUB#GRUB_Bootloader_Installation adds en entry in FSTAB which I do not have, so I guess the procedure has changed since I built this box.

The instruction on web page to add entry in FSTAB uses /efi, but if I do ls /boot I see /EFI.

I have entry in FSTAB putting /boot on /dev/sda1 . Is the line for /efi supposed to be identical to this, except 1 2 at end instead of 0 2 ?

My fear is that if I reboot now, it will not boot, and previous trick of reverting grub.cfg will also fail.

What steps should I follow?

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4249
Location: Bavaria

PostPosted: Mon Apr 01, 2024 10:55 am    Post subject: Reply with quote

iandoug,

please read (and all included links):

https://forums.gentoo.org/viewtopic-p-8821838.html#8821838

Maybe it will help you immediately. If not, please give us the same informations as mentioned in my post.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Mon Apr 01, 2024 1:01 pm    Post subject: Reply with quote

pietinger wrote:
iandoug,

please read (and all included links):

https://forums.gentoo.org/viewtopic-p-8821838.html#8821838

Maybe it will help you immediately. If not, please give us the same informations as mentioned in my post.


Hi

Thanks, I missed that when I tried to find someone with the same problem.

My situation seems identical to that. I am not dual-booting.

Only parts confusing me there are all the references to /efi/whatever where we have EFI

Screenshot here: https://yo.co.za/tmp/screenshot-grub.png , am doing this on old box in .sig, new box is the borked one.

I guess a previous update to grub also changed where it puts its files.

Why does grub-update not look up the file location? Or have a setting in make.conf.

So will it be okay if I make backup copies of both of those, and then run

grub-install --efi-directory=/boot

?

I was relieved to see I was not the only long-time Gentoo user caught out by this ... and again, should portage not take care of this? Else it is going to be a common problem untill everyone is using the "new" style ...

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4249
Location: Bavaria

PostPosted: Mon Apr 01, 2024 2:35 pm    Post subject: Reply with quote

iandoug wrote:
I was relieved to see I was not the only long-time Gentoo user caught out by this ... and again, should portage not take care of this? Else it is going to be a common problem untill everyone is using the "new" style

We had news for this: 2024-02-01-grub-upgrades

iandoug wrote:
grub-install --efi-directory=/boot

Yes, this is correct when you mount your ESP to /boot (and do a grub-mkconfig afterwards).

iandoug wrote:
I guess a previous update to grub also changed where it puts its files.

No, the reason why THIS time a re-install of grub was necessary is explained here:
https://forums.gentoo.org/viewtopic-p-8820404.html#8820404
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Mon Apr 01, 2024 3:57 pm    Post subject: Reply with quote

Thanks, system now booted ( I selected previous kernel because that is what Nvidia is expecting),

Will attempt kernel upgrade when my stress levels have recovered. :-)

Regarding the grub news, as mentioned above, I did not understand it.

I think the way it was written did not make clear under what circumstances grub would fail. It said "some users" but I appeared to be fine so forgot about it.

The suggested commands to run did not work "as supplied" on my box, when I ran them after hitting the problem.

Thanks for the help :-). Much appreciated. Just glad this was over long weekend and not when I needed to work... :-)

Cheers, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4249
Location: Bavaria

PostPosted: Mon Apr 01, 2024 5:33 pm    Post subject: Reply with quote

iandoug wrote:
Thanks for the help :-). Much appreciated. Just glad this was over long weekend and not when I needed to work... :-)

You are very Welcome ! :D
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Fri Apr 05, 2024 2:09 pm    Post subject: Reply with quote

Further to this exciting saga, grub updated again today.

In the interests of clarity, are we supposed to run this again?

Code:

 *
 * Re-run grub-install to update installed boot code!
 * Re-run grub-mkconfig to update grub.cfg!
 *


I ask because the explanation in previous post said we had to run it "this time".

I'm expecting the command as supplied to fail again, unless grub-install now looks up where it is actually installed ...

The emerge also printed this:

Code:

* Problems with installed bash completions were found:
 *
 *      grub: does not define any completions (failed to source?).
 *
 * For more details on installing bash-completions, please see:
 * https://wiki.gentoo.org/wiki/Bash/Installing_completion_files
 *


I read the wiki and have no idea why grub would need any of that.

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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