You are not logged in.

#1 2024-12-15 12:23:24

Pena
Member
Registered: 2019-10-04
Posts: 107

[SOLVED] grub-mkconfig seems to not update grub

So a month ago i tried to solve some driver issues i've been having with nvidia, and suddenly i've noticed that grub isn't updating anything, i edit /etc/default/grub, change various configs(vim), save it and then run grub-mkconfig -o /boot/grub/grub.cfg and... nothing

I've even uninstalled linux-lts and its headers as NVIDIA for some reason broke the launch on the LTS version(and i dont wanna deal fixing it) ran the mkconfig... and grub still has the lts on its search menu and worse defaults to it causing me to constantly have to reboot and edit the scrip to add fbdev=0 manually so im able to even boot...

Im shure i did something stupid as the /proc/cmdline when i dont update shows up with nvidia.NVreg_EnableGpuFirmware=0 which was an attempt i did to fix the drivers in this post: https://bbs.archlinux.org/viewtopic.php?id=300013

Last edited by Pena (2024-12-15 15:59:24)

Offline

#2 2024-12-15 12:32:58

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] grub-mkconfig seems to not update grub

Do you have a separate /boot/ partition? Is it correctly mounted? If you un-mount it is there another /boot/grub/grub.cfg hidden underneath?

EDIT: use the plain `set` command from the GRUB command line to see where it is looking for $configfile.

Last edited by Head_on_a_Stick (2024-12-15 12:33:48)


Jin, Jîyan, Azadî

Offline

#3 2024-12-15 12:46:55

Pena
Member
Registered: 2019-10-04
Posts: 107

Re: [SOLVED] grub-mkconfig seems to not update grub

Head_on_a_Stick wrote:

Do you have a separate /boot/ partition? Is it correctly mounted? If you un-mount it is there another /boot/grub/grub.cfg hidden underneath?

EDIT: use the plain `set` command from the GRUB command line to see where it is looking for $configfile.

I see where you are coming from, and I may have once done the mistake of not mounting it when fixing the mkinitcpio and then running some commands which would've written it below the mounted region

I have unmounted boot, and the folder and its contents are still there, I will still check how the mounting situation starts when the system is fresh

Offline

#4 2024-12-15 13:33:12

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] grub-mkconfig seems to not update grub

Pena wrote:

I have unmounted boot, and the folder and its contents are still there

You should probably check /etc/fstab as well. How exactly did you install this system?


Jin, Jîyan, Azadî

Offline

#5 2024-12-15 15:59:07

Pena
Member
Registered: 2019-10-04
Posts: 107

Re: [SOLVED] grub-mkconfig seems to not update grub

Head_on_a_Stick wrote:
Pena wrote:

I have unmounted boot, and the folder and its contents are still there

You should probably check /etc/fstab as well. How exactly did you install this system?

Its a 5 year system, i have no idea how I did it in fact most of the time i wonder how im able to solve all the blunders earlier down the road. Regardless after blowing the system in half (by erasing the local disk /boot, i then proceeded to "reinstall" grub on a live usb pendrive and everything works like a charm.

But most likely what caused the system to boot on the directory /boot along with the OS, instead of the directory in the separate partition was me trying to fix a broken kernel and "reinstalling" grub without mounting the boot directory inside chroot

Offline

Board footer

Powered by FluxBB