A few days back I needed to get the nVidia drivers and their kernel modules installed. After some time with help from here we managed to get me up and running on the nVidia drivers, but there was an accidental trade off. As you can see from the image below each kernel is listed when I reboot instead of having a Grub menu of EndeavourOS, Endeavour Advanced Options, BTRFS options, and UEFI option. I’d like to get this corrected. In the nVidia thread a couple of suggestions were made that did not seem to work, so I thought a stand alone thread would be better. My Grub is below. Thanks
# GRUB boot loader configuration
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 nowatchdog"
# Preload both GPT and MBR modules so that they are not missed
# Uncomment to enable booting from LUKS encrypted devices
# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
# Uncomment to use basic console
# Uncomment to disable graphical terminal
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
# Uncomment to allow the kernel use the same resolution used by grub
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
# Uncomment to disable generation of recovery mode menu entries
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
If you comment out the following line in
i.e. change it to
sudo grub-mkconfig -o /boot/grub/grub.cfg
How does the menu look like, after rebooting?
That did the trick. I’m thinking I forgot to do the one command in Konsole last time before doing the reboot. Thanks
On Manjaro and Buntu you would run
But that’s just a script that does:
grub-mkconfig -o /boot/grub/grub.cfg
yea I noticed the difference. Thanks for the info.
Why need a script when an alias is enough
Because it’s Ubuntu? or not…
I guess so it can be easily installed as a package. The alias has to go into your
.bashrc and that’s a bit more complicated to implement automatically. What if you’re using
zsh? Or some obscure shell, like
fish? I guess that’s why they made it a script.
Idk, the whole thing seems a bit silly to me, just do
grub-mkconfig -o /boot/grub/grub.cfg. It’s not like you’re running this command several times a day and you’re actually saving some time by not typing it out in full…
I am too lazy and set an alias
upg (UPdate Grub)
I change my grub settings maybe once in a year. Maybe… So I didn’t feel the need to do that, but if that makes you happy, that’s great
Truly it is - I have that alias in my .bashrc system - and I don’t even use grub!
OK waited a while before revisiting this. Mow that the one issue is resolved I’d like to know how difficult it would be to get the advanced menu to actually show the kernel versions. I’m use to being able to click advanced options during boot and seeing listed a couple of the current kernel I’m running, a couple of the previous kernel, and a couple of older kernels. The way it is now the 4 listed are all 5.8.10 as far as I know. To me that’s a problem if there happens be a bug that affects all the 5.8.10 kernels, there no rolling back to say 5.8.9, 5.7?, or 4,?.? if needed. The only option at that point is to use Timeshift. Would like help fixing this if possible. Thanks
The current kernels available from the official repos:
If you want kernels from older series, you need to look into building them from AUR, for example:
and their corresponding headers.
What I currently have.
➜ ~ pacman -Q | grep linux
You still have the 5.4 LTS.
My thing is the below. Yes I can assume the LTS listed the is the 5.4.46, but I would still prefer to have the actual kernel versions on that screen.
I suppose then you need to dig into the code for Grub or grub-mkconfig which generates those boot entries in /boot/grub/grub.cfg.
I just don’t get why they’re not there by default. Manjaro, Garuda, Neon, Kubuntu, Mint all have them list by kernel version.
Don’t know. Different distros tend to use different implementations of Grub.