Announcement

Collapse
No announcement yet.

Can't find 5.4.0-26-generic in grub menu

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Can't find 5.4.0-26-generic in grub menu

    Hello,

    I'm unable to boot into kernel header version 5.4.0-26-generic as it's not appearing in my grub menu any more. I was able to last night however I can't today. I get the following when I do a apt search linux-image | grep installed (a command I got from a previous thread):

    Code:
    alsa-base/focal,focal,now 1.0.25+dfsg-0ubuntu5 all [installed,automatic]
    linux-image-5.11.0-27-generic/focal-updates,focal-security,now 5.11.0-27.29~20.04.1 amd64 [installed,automatic]
    linux-image-5.11.0-34-generic/focal-updates,focal-security,now 5.11.0-34.36~20.04.1 amd64 [installed]
    linux-image-5.11.0-36-generic/focal-updates,focal-security,now 5.11.0-36.40~20.04.1 amd64 [installed]
    linux-image-5.11.0-37-generic/focal-updates,focal-security,now 5.11.0-37.41~20.04.2 amd64 [installed]
    linux-image-5.11.0-38-generic/focal-updates,focal-security,now 5.11.0-38.42~20.04.1 amd64 [installed]
    linux-image-5.11.0-40-generic/focal-updates,focal-security,now 5.11.0-40.44~20.04.2 amd64 [installed]
    linux-image-5.11.0-41-generic/focal-updates,focal-security,now 5.11.0-41.45~20.04.1 amd64 [installed]
    linux-image-5.11.0-43-generic/focal-updates,focal-security,now 5.11.0-43.47~20.04.2 amd64 [installed]
    linux-image-5.11.0-44-generic/focal-updates,focal-security,now 5.11.0-44.48~20.04.2 amd64 [installed]
    linux-image-5.11.0-46-generic/focal-updates,focal-security,now 5.11.0-46.51~20.04.1 amd64 [installed]
    linux-image-5.13.0-25-generic/focal-updates,focal-security,now 5.13.0-25.26~20.04.1 amd64 [installed]
    linux-image-5.13.0-27-generic/focal-updates,focal-security,now 5.13.0-27.29~20.04.1 amd64 [installed]
    linux-image-5.13.0-28-generic/focal-updates,focal-security,now 5.13.0-28.31~20.04.1 amd64 [installed]
    linux-image-5.4.0-100-generic/focal-updates,focal-security,now 5.4.0-100.113 amd64 [installed]
    linux-image-5.4.0-104-generic/focal-updates,focal-security,now 5.4.0-104.118 amd64 [installed]
    linux-image-5.4.0-105-generic/focal-updates,focal-security,now 5.4.0-105.119 amd64 [installed]
    linux-image-5.4.0-109-generic/focal-updates,focal-security,now 5.4.0-109.123 amd64 [installed]
    linux-image-5.4.0-113-generic/focal-updates,focal-security,now 5.4.0-113.127 amd64 [installed,automatic]
    linux-image-5.4.0-84-generic/focal-updates,focal-security,now 5.4.0-84.94 amd64 [installed]
    linux-image-5.4.0-86-generic/focal-updates,focal-security,now 5.4.0-86.97 amd64 [installed]
    linux-image-5.4.0-88-generic/focal-updates,focal-security,now 5.4.0-88.99 amd64 [installed]
    linux-image-5.4.0-89-generic/focal-updates,focal-security,now 5.4.0-89.100 amd64 [installed]
    linux-image-5.4.0-90-generic/focal-updates,focal-security,now 5.4.0-90.101 amd64 [installed]
    linux-image-5.4.0-91-generic/focal-updates,focal-security,now 5.4.0-91.102 amd64 [installed]
    linux-image-generic/focal-updates,focal-security,now 5.4.0.113.117 amd64 [installed,automatic]
    I tried installing the headers with apt and it seems to have installed fine. It shows up in my apt history.log file, but still doesn't appear in the grub menu. Is there a a refresh command I need to do for grub?

    I have to boot into this specific version, if I try to boot into any other version my system hangs on boot up showing my motherboard manufacturer's logo. It's also the only headers where the audio and USB ports for my motherboard works.

    Thanks

    Edit: Tried typing sudo update-grub. I can see it generate config files for all the headers except for the version that I need
    Last edited by Skava; Jun 04, 2022, 11:43 AM.

    #2
    For whatever reason, doing sudo apt install linux-image-5.4.0-26-generic again seems to have fixed the issue. I did a grub-update after just in case and I have the kernel header showing in the grub menu.

    However, now the audio and usb ports don't work anymore despite it working on this specific kernel version. I'm marking this thread as solved, and off to see how to fix this audio and USB port issue :/
    Last edited by Skava; Jun 04, 2022, 03:46 PM. Reason: formatting

    Comment


      #3
      I'm posting this here because I know something like this will happen to me again at some point in the future. So it turns out that simply installing drivers with with the apt install command doesn't install everything. I needed to install the modules that come separately for the specific kernel version; this is new to me.

      So in my case, sudo apt install linux-modules-extra-5.4.0-26-generic. I then did a shutdown and powered my machine, loaded 5.4.0-26 kernel version and Voila! Audio is working and my USB ports are usable! Which begs the question, could the reason why my system hangs on newer kernel versions be because I lack the modules to those versions? I'll have to test later as I don't want to break my machine again. Anyway, you learned something new today (though it did feel like chewing glass)

      Reference: https://askubuntu.com/questions/3827...ng-alsa-broken

      Edit: Just also wanted to add for future reference; I tried doing a sudo alsa force-reload and pulseaudio -k before installing my kernel header modules. Neither of them worked for my problem but I think the commands may come in handy in the future. Also want to highlight log files can be found in /var/log/boot.log (for boot) and /var/log/apt/history.log (for apt)
      Last edited by Skava; Jun 04, 2022, 03:51 PM. Reason: formatting plus extra info under edit for future reference

      Comment


        #4
        Check that you have package dkms installed.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          It's already installed, not sure what it's suppose to do but I didn't uninstall it before

          Comment

          Working...
          X