Grub boots from kernels that I removed

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











up vote
0
down vote

favorite












I'm running Fedora 26, rpm -qa kernel outputs kernel-4.13.5-200.fc26.x86_64. And that's the one I want.



enter image description here



I had 3 kernels showing in grub, that one, and 2 newer ones, Wifi wasn't working when booting from the other two so I excluded kernel updates from dnf, and I removed the newer kernels sudo dnf remove kernel-4.x.



All went smoothly, however when I restart, I still can see them in grub and I can boot from them and the wifi won't work if I pick them.



Here I am booting from the newest kernel that I removed.



enter image description here



Here's my grub



enter image description here



What went wrong?







share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm running Fedora 26, rpm -qa kernel outputs kernel-4.13.5-200.fc26.x86_64. And that's the one I want.



    enter image description here



    I had 3 kernels showing in grub, that one, and 2 newer ones, Wifi wasn't working when booting from the other two so I excluded kernel updates from dnf, and I removed the newer kernels sudo dnf remove kernel-4.x.



    All went smoothly, however when I restart, I still can see them in grub and I can boot from them and the wifi won't work if I pick them.



    Here I am booting from the newest kernel that I removed.



    enter image description here



    Here's my grub



    enter image description here



    What went wrong?







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm running Fedora 26, rpm -qa kernel outputs kernel-4.13.5-200.fc26.x86_64. And that's the one I want.



      enter image description here



      I had 3 kernels showing in grub, that one, and 2 newer ones, Wifi wasn't working when booting from the other two so I excluded kernel updates from dnf, and I removed the newer kernels sudo dnf remove kernel-4.x.



      All went smoothly, however when I restart, I still can see them in grub and I can boot from them and the wifi won't work if I pick them.



      Here I am booting from the newest kernel that I removed.



      enter image description here



      Here's my grub



      enter image description here



      What went wrong?







      share|improve this question














      I'm running Fedora 26, rpm -qa kernel outputs kernel-4.13.5-200.fc26.x86_64. And that's the one I want.



      enter image description here



      I had 3 kernels showing in grub, that one, and 2 newer ones, Wifi wasn't working when booting from the other two so I excluded kernel updates from dnf, and I removed the newer kernels sudo dnf remove kernel-4.x.



      All went smoothly, however when I restart, I still can see them in grub and I can boot from them and the wifi won't work if I pick them.



      Here I am booting from the newest kernel that I removed.



      enter image description here



      Here's my grub



      enter image description here



      What went wrong?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 29 '17 at 13:37

























      asked Oct 29 '17 at 12:20









      Lynob

      1,273102557




      1,273102557




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          You can set your default entry without removing the newest kernel through grub2-set-default command. In your case without updating grub2 use:



          grub2-set-default 2


          After grub update you should have tow kernel on your grub 2 configuration file the command should be (the first kernel is 0 the second one is 1):



          grub2-mkconfig -o /boot/grub2/grub.cfg
          grub2-set-default 1


          The command :



          # awk -F' '$1=="menuentry " print i++ " : " $2' /etc/grub2.cfg


          will print the exact order of the existing kernel on the grub.cfg file.



          Fedora project : Setting default entry






          share|improve this answer






















          • didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/… so as long as i don't update it, it will still be on top
            – Lynob
            Nov 5 '17 at 10:53

















          up vote
          2
          down vote













          Look in /var/lib/initramfs-tools/ if the newer kernel-versions are present.



          Erase them, also in /boot relevant entries, like vmlinuz initrid and System.map. But be carefull, that you don't delete the false one!!



          As root or with sudo update-grub






          share|improve this answer




















          • Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
            – reichhart
            Apr 7 at 22:31










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f401211%2fgrub-boots-from-kernels-that-i-removed%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted










          You can set your default entry without removing the newest kernel through grub2-set-default command. In your case without updating grub2 use:



          grub2-set-default 2


          After grub update you should have tow kernel on your grub 2 configuration file the command should be (the first kernel is 0 the second one is 1):



          grub2-mkconfig -o /boot/grub2/grub.cfg
          grub2-set-default 1


          The command :



          # awk -F' '$1=="menuentry " print i++ " : " $2' /etc/grub2.cfg


          will print the exact order of the existing kernel on the grub.cfg file.



          Fedora project : Setting default entry






          share|improve this answer






















          • didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/… so as long as i don't update it, it will still be on top
            – Lynob
            Nov 5 '17 at 10:53














          up vote
          3
          down vote



          accepted










          You can set your default entry without removing the newest kernel through grub2-set-default command. In your case without updating grub2 use:



          grub2-set-default 2


          After grub update you should have tow kernel on your grub 2 configuration file the command should be (the first kernel is 0 the second one is 1):



          grub2-mkconfig -o /boot/grub2/grub.cfg
          grub2-set-default 1


          The command :



          # awk -F' '$1=="menuentry " print i++ " : " $2' /etc/grub2.cfg


          will print the exact order of the existing kernel on the grub.cfg file.



          Fedora project : Setting default entry






          share|improve this answer






















          • didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/… so as long as i don't update it, it will still be on top
            – Lynob
            Nov 5 '17 at 10:53












          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          You can set your default entry without removing the newest kernel through grub2-set-default command. In your case without updating grub2 use:



          grub2-set-default 2


          After grub update you should have tow kernel on your grub 2 configuration file the command should be (the first kernel is 0 the second one is 1):



          grub2-mkconfig -o /boot/grub2/grub.cfg
          grub2-set-default 1


          The command :



          # awk -F' '$1=="menuentry " print i++ " : " $2' /etc/grub2.cfg


          will print the exact order of the existing kernel on the grub.cfg file.



          Fedora project : Setting default entry






          share|improve this answer














          You can set your default entry without removing the newest kernel through grub2-set-default command. In your case without updating grub2 use:



          grub2-set-default 2


          After grub update you should have tow kernel on your grub 2 configuration file the command should be (the first kernel is 0 the second one is 1):



          grub2-mkconfig -o /boot/grub2/grub.cfg
          grub2-set-default 1


          The command :



          # awk -F' '$1=="menuentry " print i++ " : " $2' /etc/grub2.cfg


          will print the exact order of the existing kernel on the grub.cfg file.



          Fedora project : Setting default entry







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Oct 30 '17 at 11:21

























          answered Oct 29 '17 at 15:43









          GAD3R

          22.7k154895




          22.7k154895











          • didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/… so as long as i don't update it, it will still be on top
            – Lynob
            Nov 5 '17 at 10:53
















          • didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/… so as long as i don't update it, it will still be on top
            – Lynob
            Nov 5 '17 at 10:53















          didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/… so as long as i don't update it, it will still be on top
          – Lynob
          Nov 5 '17 at 10:53




          didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/… so as long as i don't update it, it will still be on top
          – Lynob
          Nov 5 '17 at 10:53












          up vote
          2
          down vote













          Look in /var/lib/initramfs-tools/ if the newer kernel-versions are present.



          Erase them, also in /boot relevant entries, like vmlinuz initrid and System.map. But be carefull, that you don't delete the false one!!



          As root or with sudo update-grub






          share|improve this answer




















          • Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
            – reichhart
            Apr 7 at 22:31














          up vote
          2
          down vote













          Look in /var/lib/initramfs-tools/ if the newer kernel-versions are present.



          Erase them, also in /boot relevant entries, like vmlinuz initrid and System.map. But be carefull, that you don't delete the false one!!



          As root or with sudo update-grub






          share|improve this answer




















          • Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
            – reichhart
            Apr 7 at 22:31












          up vote
          2
          down vote










          up vote
          2
          down vote









          Look in /var/lib/initramfs-tools/ if the newer kernel-versions are present.



          Erase them, also in /boot relevant entries, like vmlinuz initrid and System.map. But be carefull, that you don't delete the false one!!



          As root or with sudo update-grub






          share|improve this answer












          Look in /var/lib/initramfs-tools/ if the newer kernel-versions are present.



          Erase them, also in /boot relevant entries, like vmlinuz initrid and System.map. But be carefull, that you don't delete the false one!!



          As root or with sudo update-grub







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 29 '17 at 15:21







          user192526


















          • Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
            – reichhart
            Apr 7 at 22:31
















          • Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
            – reichhart
            Apr 7 at 22:31















          Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
          – reichhart
          Apr 7 at 22:31




          Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
          – reichhart
          Apr 7 at 22:31

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f401211%2fgrub-boots-from-kernels-that-i-removed%23new-answer', 'question_page');

          );

          Post as a guest













































































          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?