Newer kernel is installed but not available to load via grub

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I've installed fedora 24 and updated kernel.



$rpm -qa kernel

kernel-4.6.4-301.fc24.x86_64
kernel-4.5.5-300.fc24.x86_64


So kernel-4.6.4-301.fc24.x86_64 is installed.



$uname -r
4.5.5-300.fc24.x86_64


Current loaded kernel.



$ cd /boot
$ ll
total 90117
...
-rwxr-xr-x. 1 root root 6277656 Jul 29 07:09 vmlinuz-0-rescue-60cb3109c1ea41d6806444bff16cc074
-rwxr-xr-x. 1 root root 6277656 May 19 16:21 vmlinuz-4.5.5-300.fc24.x86_64


But there is no file for 4.6.4 kernel.



How is it possible to add newer kernel by hand into grub?










share|improve this question
























  • By the way is it a BIOS or UEFI system?

    – sjsam
    Aug 3 '16 at 14:15






  • 1





    @sjsam BIOS but there is option UEFI load (disabled now)

    – xiº
    Aug 3 '16 at 14:19

















1















I've installed fedora 24 and updated kernel.



$rpm -qa kernel

kernel-4.6.4-301.fc24.x86_64
kernel-4.5.5-300.fc24.x86_64


So kernel-4.6.4-301.fc24.x86_64 is installed.



$uname -r
4.5.5-300.fc24.x86_64


Current loaded kernel.



$ cd /boot
$ ll
total 90117
...
-rwxr-xr-x. 1 root root 6277656 Jul 29 07:09 vmlinuz-0-rescue-60cb3109c1ea41d6806444bff16cc074
-rwxr-xr-x. 1 root root 6277656 May 19 16:21 vmlinuz-4.5.5-300.fc24.x86_64


But there is no file for 4.6.4 kernel.



How is it possible to add newer kernel by hand into grub?










share|improve this question
























  • By the way is it a BIOS or UEFI system?

    – sjsam
    Aug 3 '16 at 14:15






  • 1





    @sjsam BIOS but there is option UEFI load (disabled now)

    – xiº
    Aug 3 '16 at 14:19













1












1








1








I've installed fedora 24 and updated kernel.



$rpm -qa kernel

kernel-4.6.4-301.fc24.x86_64
kernel-4.5.5-300.fc24.x86_64


So kernel-4.6.4-301.fc24.x86_64 is installed.



$uname -r
4.5.5-300.fc24.x86_64


Current loaded kernel.



$ cd /boot
$ ll
total 90117
...
-rwxr-xr-x. 1 root root 6277656 Jul 29 07:09 vmlinuz-0-rescue-60cb3109c1ea41d6806444bff16cc074
-rwxr-xr-x. 1 root root 6277656 May 19 16:21 vmlinuz-4.5.5-300.fc24.x86_64


But there is no file for 4.6.4 kernel.



How is it possible to add newer kernel by hand into grub?










share|improve this question
















I've installed fedora 24 and updated kernel.



$rpm -qa kernel

kernel-4.6.4-301.fc24.x86_64
kernel-4.5.5-300.fc24.x86_64


So kernel-4.6.4-301.fc24.x86_64 is installed.



$uname -r
4.5.5-300.fc24.x86_64


Current loaded kernel.



$ cd /boot
$ ll
total 90117
...
-rwxr-xr-x. 1 root root 6277656 Jul 29 07:09 vmlinuz-0-rescue-60cb3109c1ea41d6806444bff16cc074
-rwxr-xr-x. 1 root root 6277656 May 19 16:21 vmlinuz-4.5.5-300.fc24.x86_64


But there is no file for 4.6.4 kernel.



How is it possible to add newer kernel by hand into grub?







fedora kernel






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 1 '17 at 22:50









Jeff Schaller

44.7k1162145




44.7k1162145










asked Aug 3 '16 at 14:10









xiºxiº

1063




1063












  • By the way is it a BIOS or UEFI system?

    – sjsam
    Aug 3 '16 at 14:15






  • 1





    @sjsam BIOS but there is option UEFI load (disabled now)

    – xiº
    Aug 3 '16 at 14:19

















  • By the way is it a BIOS or UEFI system?

    – sjsam
    Aug 3 '16 at 14:15






  • 1





    @sjsam BIOS but there is option UEFI load (disabled now)

    – xiº
    Aug 3 '16 at 14:19
















By the way is it a BIOS or UEFI system?

– sjsam
Aug 3 '16 at 14:15





By the way is it a BIOS or UEFI system?

– sjsam
Aug 3 '16 at 14:15




1




1





@sjsam BIOS but there is option UEFI load (disabled now)

– xiº
Aug 3 '16 at 14:19





@sjsam BIOS but there is option UEFI load (disabled now)

– xiº
Aug 3 '16 at 14:19










3 Answers
3






active

oldest

votes


















0














edit grub.conf file if you are using Redhat/ Centos



Copy and edit the old kernel parameter and replace
old parameters and locations with newer one






share|improve this answer






























    0














    It's high time that you do



    For BIOS



    cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak # Creating a backup of current
    grub2-mkconfig -o /boot/grub2/grub.cfg



    For UEFI



    Under EFI, GRUB 2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg



    cp /boot/efi/EFI/fedora/grub.cfg /boot/efi/EFI/fedora/grub.cfg.bak
    grub2-mkconfig /boot/efi/EFI/fedora/grub.cfg



    Note



    if you get



    grub2-mkconfig : command not found


    that means, you haven't installed the packages that provide these tools (very rare though!), then you need to install them first



    dnf install grub2-efi grub2-efi-modules shim





    share|improve this answer

























    • That doesn't help since there is no image for 4.6.4.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done

      – xiº
      Aug 3 '16 at 15:02



















    0














    I had the same problem with a clean install of F24, using the default partition layout. On my system /dev/sda1 was created solely for grub that is not normally mounted. To find it I did:



    sudo fdisk /dev/sda


    and within fdisk p to show the partitions. Next mounted that partition:



    sudo mount /dev/sda1 /mnt


    looked for the file with:



    find /mnt -name grub.cfg


    and finally updated the grub.cfg file with:



    sudo grub2-mkconfig -o /mnt/EFI/fedora/grub.cfg


    This process must be repeated every time the kernel is updated.



    Does anyone have a better fix than this? It works, but I don't understand why it is not done automatically. Did I miss a setting somewhere?






    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f300054%2fnewer-kernel-is-installed-but-not-available-to-load-via-grub%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      edit grub.conf file if you are using Redhat/ Centos



      Copy and edit the old kernel parameter and replace
      old parameters and locations with newer one






      share|improve this answer



























        0














        edit grub.conf file if you are using Redhat/ Centos



        Copy and edit the old kernel parameter and replace
        old parameters and locations with newer one






        share|improve this answer

























          0












          0








          0







          edit grub.conf file if you are using Redhat/ Centos



          Copy and edit the old kernel parameter and replace
          old parameters and locations with newer one






          share|improve this answer













          edit grub.conf file if you are using Redhat/ Centos



          Copy and edit the old kernel parameter and replace
          old parameters and locations with newer one







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 3 '16 at 14:15









          Kunal SahaKunal Saha

          576




          576























              0














              It's high time that you do



              For BIOS



              cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak # Creating a backup of current
              grub2-mkconfig -o /boot/grub2/grub.cfg



              For UEFI



              Under EFI, GRUB 2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg



              cp /boot/efi/EFI/fedora/grub.cfg /boot/efi/EFI/fedora/grub.cfg.bak
              grub2-mkconfig /boot/efi/EFI/fedora/grub.cfg



              Note



              if you get



              grub2-mkconfig : command not found


              that means, you haven't installed the packages that provide these tools (very rare though!), then you need to install them first



              dnf install grub2-efi grub2-efi-modules shim





              share|improve this answer

























              • That doesn't help since there is no image for 4.6.4.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done

                – xiº
                Aug 3 '16 at 15:02
















              0














              It's high time that you do



              For BIOS



              cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak # Creating a backup of current
              grub2-mkconfig -o /boot/grub2/grub.cfg



              For UEFI



              Under EFI, GRUB 2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg



              cp /boot/efi/EFI/fedora/grub.cfg /boot/efi/EFI/fedora/grub.cfg.bak
              grub2-mkconfig /boot/efi/EFI/fedora/grub.cfg



              Note



              if you get



              grub2-mkconfig : command not found


              that means, you haven't installed the packages that provide these tools (very rare though!), then you need to install them first



              dnf install grub2-efi grub2-efi-modules shim





              share|improve this answer

























              • That doesn't help since there is no image for 4.6.4.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done

                – xiº
                Aug 3 '16 at 15:02














              0












              0








              0







              It's high time that you do



              For BIOS



              cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak # Creating a backup of current
              grub2-mkconfig -o /boot/grub2/grub.cfg



              For UEFI



              Under EFI, GRUB 2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg



              cp /boot/efi/EFI/fedora/grub.cfg /boot/efi/EFI/fedora/grub.cfg.bak
              grub2-mkconfig /boot/efi/EFI/fedora/grub.cfg



              Note



              if you get



              grub2-mkconfig : command not found


              that means, you haven't installed the packages that provide these tools (very rare though!), then you need to install them first



              dnf install grub2-efi grub2-efi-modules shim





              share|improve this answer















              It's high time that you do



              For BIOS



              cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak # Creating a backup of current
              grub2-mkconfig -o /boot/grub2/grub.cfg



              For UEFI



              Under EFI, GRUB 2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg



              cp /boot/efi/EFI/fedora/grub.cfg /boot/efi/EFI/fedora/grub.cfg.bak
              grub2-mkconfig /boot/efi/EFI/fedora/grub.cfg



              Note



              if you get



              grub2-mkconfig : command not found


              that means, you haven't installed the packages that provide these tools (very rare though!), then you need to install them first



              dnf install grub2-efi grub2-efi-modules shim






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Aug 3 '16 at 14:22

























              answered Aug 3 '16 at 14:14









              sjsamsjsam

              1,18511021




              1,18511021












              • That doesn't help since there is no image for 4.6.4.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done

                – xiº
                Aug 3 '16 at 15:02


















              • That doesn't help since there is no image for 4.6.4.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done

                – xiº
                Aug 3 '16 at 15:02

















              That doesn't help since there is no image for 4.6.4.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done

              – xiº
              Aug 3 '16 at 15:02






              That doesn't help since there is no image for 4.6.4.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done

              – xiº
              Aug 3 '16 at 15:02












              0














              I had the same problem with a clean install of F24, using the default partition layout. On my system /dev/sda1 was created solely for grub that is not normally mounted. To find it I did:



              sudo fdisk /dev/sda


              and within fdisk p to show the partitions. Next mounted that partition:



              sudo mount /dev/sda1 /mnt


              looked for the file with:



              find /mnt -name grub.cfg


              and finally updated the grub.cfg file with:



              sudo grub2-mkconfig -o /mnt/EFI/fedora/grub.cfg


              This process must be repeated every time the kernel is updated.



              Does anyone have a better fix than this? It works, but I don't understand why it is not done automatically. Did I miss a setting somewhere?






              share|improve this answer



























                0














                I had the same problem with a clean install of F24, using the default partition layout. On my system /dev/sda1 was created solely for grub that is not normally mounted. To find it I did:



                sudo fdisk /dev/sda


                and within fdisk p to show the partitions. Next mounted that partition:



                sudo mount /dev/sda1 /mnt


                looked for the file with:



                find /mnt -name grub.cfg


                and finally updated the grub.cfg file with:



                sudo grub2-mkconfig -o /mnt/EFI/fedora/grub.cfg


                This process must be repeated every time the kernel is updated.



                Does anyone have a better fix than this? It works, but I don't understand why it is not done automatically. Did I miss a setting somewhere?






                share|improve this answer

























                  0












                  0








                  0







                  I had the same problem with a clean install of F24, using the default partition layout. On my system /dev/sda1 was created solely for grub that is not normally mounted. To find it I did:



                  sudo fdisk /dev/sda


                  and within fdisk p to show the partitions. Next mounted that partition:



                  sudo mount /dev/sda1 /mnt


                  looked for the file with:



                  find /mnt -name grub.cfg


                  and finally updated the grub.cfg file with:



                  sudo grub2-mkconfig -o /mnt/EFI/fedora/grub.cfg


                  This process must be repeated every time the kernel is updated.



                  Does anyone have a better fix than this? It works, but I don't understand why it is not done automatically. Did I miss a setting somewhere?






                  share|improve this answer













                  I had the same problem with a clean install of F24, using the default partition layout. On my system /dev/sda1 was created solely for grub that is not normally mounted. To find it I did:



                  sudo fdisk /dev/sda


                  and within fdisk p to show the partitions. Next mounted that partition:



                  sudo mount /dev/sda1 /mnt


                  looked for the file with:



                  find /mnt -name grub.cfg


                  and finally updated the grub.cfg file with:



                  sudo grub2-mkconfig -o /mnt/EFI/fedora/grub.cfg


                  This process must be repeated every time the kernel is updated.



                  Does anyone have a better fix than this? It works, but I don't understand why it is not done automatically. Did I miss a setting somewhere?







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 17 '16 at 14:08









                  Ted MTed M

                  1




                  1



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f300054%2fnewer-kernel-is-installed-but-not-available-to-load-via-grub%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown






                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Displaying single band from multi-band raster using QGIS

                      How many registers does an x86_64 CPU actually have?