View previous topic :: View next topic |
Author |
Message |
iandoug l33t
Joined: 11 Feb 2005 Posts: 839 Location: Cape Town, South Africa
|
Posted: Sun Mar 31, 2024 11:18 am Post subject: Boots to BIOS after kernel upgrade |
|
|
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 |
|
|
Banana Veteran
Joined: 21 May 2004 Posts: 1407 Location: Germany
|
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4574 Location: Germany
|
|
Back to top |
|
|
iandoug l33t
Joined: 11 Feb 2005 Posts: 839 Location: Cape Town, South Africa
|
Posted: Sun Mar 31, 2024 5:11 pm Post subject: |
|
|
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 |
|
|
iandoug l33t
Joined: 11 Feb 2005 Posts: 839 Location: Cape Town, South Africa
|
Posted: Mon Apr 01, 2024 9:27 am Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4249 Location: Bavaria
|
|
Back to top |
|
|
iandoug l33t
Joined: 11 Feb 2005 Posts: 839 Location: Cape Town, South Africa
|
Posted: Mon Apr 01, 2024 1:01 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4249 Location: Bavaria
|
Posted: Mon Apr 01, 2024 2:35 pm Post subject: |
|
|
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 |
|
|
iandoug l33t
Joined: 11 Feb 2005 Posts: 839 Location: Cape Town, South Africa
|
Posted: Mon Apr 01, 2024 3:57 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4249 Location: Bavaria
|
Posted: Mon Apr 01, 2024 5:33 pm Post subject: |
|
|
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 ! _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
iandoug l33t
Joined: 11 Feb 2005 Posts: 839 Location: Cape Town, South Africa
|
Posted: Fri Apr 05, 2024 2:09 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|