[Debian] Grub Not Loading Newest Kernel

Discussion in 'Tutorials' started by Mun, May 18, 2015.

  1. Mun

    Mun Administrator

    The problem:
    I was having an issue where one of my colocated servers was having an issue where it wouldn't restart into the newest kernel, even though I could see a newer kernel on the machine.

    To resolve this I looked at /boot/grub/grub.cfg.
    nano /boot/grub/grub.cfg
    I then read through the file, specifically under:
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=cyan/blue
    set menu_color_highlight=white/blue
    ### END /etc/grub.d/05_debian_theme ###
    ### BEGIN /etc/grub.d/10_linux ###
    function gfxmode {
      set gfxpayload="${1}"
    set linux_gfx_mode=
    export linux_gfx_mode
    menuentry 'Debian GNU/Linux'
    At this point I realized my grub had none of the newer kernels stated in the config.

    The fix:
    So first I backed up the config in case something terrible happened.
    mv /boot/grub/grub.cfg /boot/grub/grub.cfg.old
    Next I told grub to build a new config and export it to the grub.cfg file.
    grub-mkconfig >> /boot/grub/grub.cfg
    Finally I checked the config and made sure there was nothing noticably wrong.
    nano /boot/grub/grub.cfg
    Reboot your server, and boom you should have the newer kernel installed. You can of course check this by running.
    uname -a
    Hope that helps.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice