I’m on debian 11, this error doesn’t show up every time, but once it appear I need more that one reboot and it will fix automatically without doing nothing, don’t know the reason why (just read that can be kernel dependent). What I want to avoid is that maybe it’s just a warning of somethink that will cause a pc break in future (maybe hardware is starting working bad?) Do you have any sugggestion? Thanks

  • dafunkkk@lemmy.worldOP
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    11 months ago

    ok, I’ll backup all data first. How can I remove old kernel without enter in grub menu (since usually boot works well) and select the oldone as default? Thanks

    • KISSmyOS@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      11 months ago

      By default, your grub menu should show up every time you boot.
      If it doesn’t, boot your PC and do:
      sudo nano /etc/default/grub
      You need these lines:
      GRUB_TIMEOUT=10
      GRUB_TIMEOUT_STYLE=menu

      Every line starting with:
      GRUB_HIDDEN_TIMEOUT
      should be commented out like so:
      #GRUB_HIDDEN_TIMEOUT

      Then run sudo update-grub and reboot.

      What this does:

      • sets a countdown of 10 seconds before grub boots the kernel
      • tells grub to show the boot menu during that countdown
      • doesn’t use a hidden countdown that waits for a button press to show the menu

      In the grub menu, select advanced options and there you should be able to select an older kernel to boot.

      • dafunkkk@lemmy.worldOP
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        11 months ago

        ok, thank you very much for detailed explanation, yes I remember that I had removed timeout from grub in the past, I will follow your procedure and select previous kernel. Another question, once I’v selected the older kernel did you think that removing (it’s fine using apt?) and resinstall newest kernel will fix the issue or I’v to keep the older kernel? In case I’v to keep the older kernel how can I avoid that it will be overwritten once I update the os?

        • KISSmyOS@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          edit-2
          11 months ago

          I think the newer kernel should work after reinstallation.
          If it doesn’t and you want to stay with the older one:

          apt list --installed linux-image*

          There should be a package with a specific version number in its name. For example, the standard kernel for Debian 11 is:
          linux-image-5.10.0-26-amd64

          Uninstall the linux-image-... package you don’t want to keep.
          Also uninstall linux-image-amd64 which is the meta-package that pulls in the newest kernel version. Without it, you won’t get new kernel versions in upgrades.