Interview Prep/Linux/Boot, time, cron and kernel

After a kernel update, an out-of-tree driver (e.g. NVIDIA or a storage driver) doesn't load: `modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.x...`.

IntermediateTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → The module was built for the previous kernel and hasn't been rebuilt (DKMS not installed, build failed, or missing kernel headers).

Diagnose →

uname -r
dkms status
rpm -q kernel-devel-$(uname -r) || dpkg -l linux-headers-$(uname -r)

Fix → Install matching headers and rebuild: dkms autoinstall -k $(uname -r), or boot the previous kernel until the vendor package supports the new one.

Prevent → Use DKMS or kmod packages, and lock kernel versions on hosts with critical out-of-tree drivers.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel