Can't boot Fedora at all after running updates *HELP!*

I just ran updates on dnf, snap, and flatpak and then rebooted and now my system won’t boot at all. None of the old kernels work and booting the rescue kernel does not work either. I am asked for my decryption password and then after that, the screen goes black and nothing happens. Like I said, this happens regardless of the option I choose from GRUB. The only thing that works from grub now is my Windows drive.

I cannot boot into 6.11.10, 6.11.8, or the 6.11.10 rescue kernel.

I can boot into 6.11.7 only. I put in the decryption password, the Dell BIOS logo comes up, I get a message about the “NVIDIA kernel module missing. Falling back to Nouveau.” then the system boots.

I’m pretty sure the updates that were installed, prior to everything breaking, were updates to the NVIDIA packages. I saw the package names and they were definitely nvidia related.

Can I fix this issue for all of the kernels by simply uninstalling the nvidia driver packages from within 6.11.7?

Do you have the nVidia drivers installed from RPM Fusion (the recommended way)? If so, is it possible that you have rebooted right after upgrade, maybe not given enough time for the kernel modules to get rebuilt?

Can you reach a text console, while booting with the latest kernel, after the blank screen appears, using the Ctrl+Alt+F2 or Ctrl+Alt+F3? If so, please check the output of dnf list --installed '*nvidia*'?

While at the console, you can try rebuilding the drivers with sudo akmods --force --rebuild. Wait for about 5 minutes and then reboot.

1 Like

I think you’re right. For updates I run a script that pulls updates for dnf, snap, and flatpak. When the script finishes the system reboots immediately (shutdown -r 0).

Yes, I was able to reach the text console when booting the 6.11.10 kernel from GRUB. Oddly, after about 90 seconds, KDE Plasma finally started up while I was in the text console. Maybe it’s falling back to Nouveau.

wiking@walhalla:~$ dnf list --installed '*nvidia*'
Installed packages
akmod-nvidia.x86_64                        3:565.57.01-2.fc41 rpmfusion-nonfree-updates
kmod-nvidia-6.11.10-300.fc41.x86_64.x86_64 3:565.57.01-1.fc41 @commandline
kmod-nvidia-6.11.10-300.fc41.x86_64.x86_64 3:565.57.01-2.fc41 <unknown>
kmod-nvidia-6.11.8-300.fc41.x86_64.x86_64  3:565.57.01-1.fc41 @commandline
kmod-nvidia-6.11.8-300.fc41.x86_64.x86_64  3:565.57.01-2.fc41 <unknown>
nvidia-gpu-firmware.noarch                 20241110-1.fc41    updates
nvidia-modprobe.x86_64                     3:565.57.01-1.fc41 rpmfusion-nonfree-updates
nvidia-persistenced.x86_64                 3:565.57.01-1.fc41 rpmfusion-nonfree-updates
nvidia-settings.x86_64                     3:565.57.01-1.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64                 3:565.57.01-3.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda.x86_64            3:565.57.01-3.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64       3:565.57.01-3.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64         3:565.57.01-3.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64            3:565.57.01-3.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64           3:565.57.01-3.fc41 rpmfusion-nonfree-updates

Not really odd at all.
Building the driver module takes some time.
An instant reboot interrupts that process, but the akmods service is intended to complete the build during the startup in that situation.
According to the info posted the driver was built twice. Once with a dnf4 upgrade and again with a dnf5 upgrade. Notice the difference in version numbers for the kmod-nvidia packages listed (and the listed repo – unknown vs @commandline).

You can check if the nvidia driver is in use with lsmod | grep nvidia
If that returns nothing then reboot and it should load the driver properly.

So it was rebuilding during the boot process. That makes sense.

I did this, prior to reading Jeff’s post, and the problem appears to be resolved.

Here is what it says now:

wiking@walhalla:~$ lsmod | grep nvidia
nvidia_drm            147456  1
nvidia_modeset       1671168  1 nvidia_drm
nvidia_uvm           3989504  0
nvidia              77541376  7 nvidia_uvm,nvidia_modeset
drm_ttm_helper         16384  2 nvidia_drm,xe
video                  81920  5 dell_wmi,dell_laptop,xe,i915,nvidia_modeset
2 Likes

The nvidia drivers appear to be loaded so things should work as expected. :+1:

Thanks. How can I build the NVIDIA kernel modules for 6.11.7? This is what happens when I boot that kernel:

wiking@walhalla:~$ sudo akmods --force --rebuild
Place your right index finger on the fingerprint reader
Checking kmods exist for 6.11.7-300.fc41.x86_64 [  OK  ]
Files needed for building modules against kernel
6.11.7-300.fc41.x86_64 could not be found as the following
directories are missing:
/usr/src/kernels/6.11.7-300.fc41.x86_64/
/lib/modules/6.11.7-300.fc41.x86_64/build/Is the correct kernel-devel package installed? [FAILED]

If you have the 6.11.7 kernel installed, and IF you have the kernel-devel package installed for that kernel, then it should build the nvidia modules.

However, if the kernel-devel package is missing for that kernel then building the kernel modules will not work.

Try running dnf list --installed kernel* and dnf list installed \*nvidia\*

Look to see that you have the kernel-devel package installed and to see what kmod-nvidia packages are already installed.

Note that if you failed to have the kernel-devel package for that kernel installed while it was the current kernel for fedora then it cannot be easily installed after the fact. When kernel 6.11.8 was released then all the 6.11.7 packages were removed from the repo.

You should be building the kernel modules for the most recent kernel, not for one that was 4 releases back.

I don’t think kernel-devel was installed when 6.11.7 was the current kernel. I guess this kernel will disappear from grub as an option soon anyways.

wiking@walhalla:~$ dnf list --installed kernel*
Installed packages
kernel.x86_64               6.11.7-300.fc41  updates
kernel.x86_64               6.11.8-300.fc41  updates
kernel.x86_64               6.11.10-300.fc41 updates
kernel-core.x86_64          6.11.7-300.fc41  updates
kernel-core.x86_64          6.11.8-300.fc41  updates
kernel-core.x86_64          6.11.10-300.fc41 updates
kernel-devel.x86_64         6.11.8-300.fc41  updates
kernel-devel.x86_64         6.11.10-300.fc41 updates
kernel-devel-matched.x86_64 6.11.10-300.fc41 updates
kernel-headers.x86_64       6.11.3-300.fc41  fedora
kernel-modules.x86_64       6.11.7-300.fc41  updates
kernel-modules.x86_64       6.11.8-300.fc41  updates
kernel-modules.x86_64       6.11.10-300.fc41 updates
kernel-modules-core.x86_64  6.11.7-300.fc41  updates
kernel-modules-core.x86_64  6.11.8-300.fc41  updates
kernel-modules-core.x86_64  6.11.10-300.fc41 updates
kernel-modules-extra.x86_64 6.11.7-300.fc41  updates
kernel-modules-extra.x86_64 6.11.8-300.fc41  updates
kernel-modules-extra.x86_64 6.11.10-300.fc41 updates
kernel-srpm-macros.noarch   1.0-24.fc41      fedora
kernel-tools.x86_64         6.11.10-300.fc41 updates
kernel-tools-libs.x86_64    6.11.10-300.fc41 updates

wiking@walhalla:~$ dnf list installed \*nvidia\*
Updating and loading repositories:
Repositories loaded.
Installed packages
akmod-nvidia.x86_64                                 3:565.57.01-2.fc41               rpmfusion-nonfree-updates
kmod-nvidia-6.11.10-300.fc41.x86_64.x86_64          3:565.57.01-2.fc41               @commandline
kmod-nvidia-6.11.8-300.fc41.x86_64.x86_64           3:565.57.01-2.fc41               @commandline
nvidia-gpu-firmware.noarch                          20241110-1.fc41                  updates
nvidia-modprobe.x86_64                              3:565.57.01-1.fc41               rpmfusion-nonfree-updates
nvidia-persistenced.x86_64                          3:565.57.01-1.fc41               rpmfusion-nonfree-updates
nvidia-settings.x86_64                              3:565.57.01-1.fc41               rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64                          3:565.57.01-3.fc41               rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda.x86_64                     3:565.57.01-3.fc41               rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64                3:565.57.01-3.fc41               rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64                  3:565.57.01-3.fc41               rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64                     3:565.57.01-3.fc41               rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64                    3:565.57.01-3.fc41               rpmfusion-nonfree-updates

Available packages
akmod-nvidia-390xx.x86_64                           3:390.157-12.fc41                rpmfusion-nonfree
akmod-nvidia-470xx.x86_64                           3:470.256.02-3.fc41              rpmfusion-nonfree
golang-github-nvidia-container-toolkit.x86_64       1.16.2-1.fc41                    updates
golang-github-nvidia-container-toolkit-devel.noarch 1.16.2-1.fc41                    updates
golang-github-nvidia-nvlib-devel.noarch             0.6.1-1.fc41                     fedora
golang-github-nvidia-nvml-devel.noarch              0.12.4.0-3.fc41                  fedora
kmod-nvidia.x86_64                                  3:565.57.01-2.fc41               rpmfusion-nonfree-updates
kmod-nvidia.x86_64                                  3:565.57.01-2.fc41               rpmfusion-nonfree-nvidia-driver
kmod-nvidia-390xx.x86_64                            3:390.157-12.fc41                rpmfusion-nonfree
kmod-nvidia-470xx.x86_64                            3:470.256.02-3.fc41              rpmfusion-nonfree
libva-nvidia-driver.i686                            0.0.13^20241108git259b7b7-2.fc41 updates
libva-nvidia-driver.x86_64                          0.0.13^20241108git259b7b7-2.fc41 updates
nvidia-query-resource-opengl.x86_64                 1.0.0-18.fc41                    fedora
nvidia-query-resource-opengl-lib.i686               1.0.0-18.fc41                    fedora
nvidia-query-resource-opengl-lib.x86_64             1.0.0-18.fc41                    fedora
nvidia-settings-390xx.x86_64                        390.157-4.fc41                   rpmfusion-nonfree
nvidia-settings-470xx.x86_64                        3:470.256.02-2.fc41              rpmfusion-nonfree
nvidia-texture-tools.i686                           2.1.2-10.fc41                    fedora
nvidia-texture-tools.x86_64                         2.1.2-10.fc41                    fedora
nvidia-texture-tools-devel.i686                     2.1.2-10.fc41                    fedora
nvidia-texture-tools-devel.x86_64                   2.1.2-10.fc41                    fedora
nvidia-xconfig.x86_64                               3:565.57.01-1.fc41               rpmfusion-nonfree-updates
nvidia-xconfig.x86_64                               3:565.57.01-1.fc41               rpmfusion-nonfree-nvidia-driver
pcp-pmda-nvidia-gpu.x86_64                          6.3.2-2.fc41                     updates
xorg-x11-drv-nvidia-390xx.x86_64                    3:390.157-4.fc40                 rpmfusion-nonfree
xorg-x11-drv-nvidia-390xx-cuda.x86_64               3:390.157-4.fc40                 rpmfusion-nonfree
xorg-x11-drv-nvidia-390xx-cuda-libs.i686            3:390.157-4.fc40                 rpmfusion-nonfree
xorg-x11-drv-nvidia-390xx-cuda-libs.x86_64          3:390.157-4.fc40                 rpmfusion-nonfree
xorg-x11-drv-nvidia-390xx-devel.i686                3:390.157-4.fc40                 rpmfusion-nonfree
xorg-x11-drv-nvidia-390xx-devel.x86_64              3:390.157-4.fc40                 rpmfusion-nonfree
xorg-x11-drv-nvidia-390xx-kmodsrc.x86_64            3:390.157-4.fc40                 rpmfusion-nonfree
xorg-x11-drv-nvidia-390xx-libs.i686                 3:390.157-4.fc40                 rpmfusion-nonfree
xorg-x11-drv-nvidia-390xx-libs.x86_64               3:390.157-4.fc40                 rpmfusion-nonfree
xorg-x11-drv-nvidia-470xx.x86_64                    3:470.256.02-1.fc41              rpmfusion-nonfree
xorg-x11-drv-nvidia-470xx-cuda.x86_64               3:470.256.02-1.fc41              rpmfusion-nonfree
xorg-x11-drv-nvidia-470xx-cuda-libs.i686            3:470.256.02-1.fc41              rpmfusion-nonfree
xorg-x11-drv-nvidia-470xx-cuda-libs.x86_64          3:470.256.02-1.fc41              rpmfusion-nonfree
xorg-x11-drv-nvidia-470xx-devel.i686                3:470.256.02-1.fc41              rpmfusion-nonfree
xorg-x11-drv-nvidia-470xx-devel.x86_64              3:470.256.02-1.fc41              rpmfusion-nonfree
xorg-x11-drv-nvidia-470xx-kmodsrc.x86_64            3:470.256.02-1.fc41              rpmfusion-nonfree
xorg-x11-drv-nvidia-470xx-libs.i686                 3:470.256.02-1.fc41              rpmfusion-nonfree
xorg-x11-drv-nvidia-470xx-libs.x86_64               3:470.256.02-1.fc41              rpmfusion-nonfree
xorg-x11-drv-nvidia-470xx-power.x86_64              3:470.256.02-1.fc41              rpmfusion-nonfree
xorg-x11-drv-nvidia-cuda-libs.i686                  3:565.57.01-3.fc41               rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686                  3:565.57.01-3.fc41               rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-devel.i686                      3:565.57.01-3.fc41               rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-devel.i686                      3:565.57.01-3.fc41               rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-devel.x86_64                    3:565.57.01-3.fc41               rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-devel.x86_64                    3:565.57.01-3.fc41               rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.i686                       3:565.57.01-3.fc41               rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686                       3:565.57.01-3.fc41               rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-xorg-libs.x86_64                3:565.57.01-3.fc41               rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-xorg-libs.x86_64                3:565.57.01-3.fc41               rpmfusion-nonfree-updates

That does not show kernel-devel for the 6.11.7 kernel, only for 6.11.8 & 6.11.10

Same for the kmod-nvidia packages.