Search code examples
linuxlinux-kernelarchlinuxuname

Kernel version doesn't update in uname -r (Arch Linux)


After kernel update, the version of kernel in uname is not updated itself. It is a problem because all the modules are loaded through it, so I had to rename the folder with new modules to the old version (as a temporary solution) but I would like to solve this problem properly.

~: pacman -Q linux
linux 4.9.11-1
~: uname -r
4.9.8-1-ARCH 

Solution

  • Have you replace the kernel image (bzImage or vmlinuz)?. If yes then there is some issue with your grub conf parameter. Otherwise you need to replace the kernel image as well as.

    Below are the steps which you need to update the kernel:

    1) Replace your kernel image (vmlinuz or bzImage you can check the name from your grub conf parameters) with the existing kernel image..

    2) Copy the new module folder (containing all new modules) into the /lib/modules folder..

    3) Sometimes there may be issue during module loading. So you can run the depmod -a command inside your new module folder.

    4) Reboot the board and check the kernel version and your kernel image details (like kernel version and date of compiled kernel image) though uname -a command.*