Grub2 of previous OS controls the boot process











up vote
0
down vote

favorite












I have 3 OS's on my computer.



First, I installed windows 10.



Secondly, Ubuntu 16.04 LTS (with GUI).



Thirdly, CentOS 7 (without GUI).



During Ubuntu installation, I installed Grub2 into MBR and it was taking care of booting.



Then, during CentOS installation I again installed Grub2 into MBR, so that CentOS controls booting. And it was controlling for a year or so.



However, recently, I've used such commands as apt-update and apt-upgrade while on Ubuntu system, and now the boot process is controlled by Ubuntu. How do I know ? Well, when the booting process starts and I get to choose which OS I want to load, the background of the menu is in Ubuntu colors. Previously, when CentOS installation based Grub2 was in control of booting everything was in black and white.



How do I make CentOS Grub2 be responsible for the booting process again ?



I've tried to login to CentOS and do something like :



grub2-mkconfig -o /boot/grub2/grub.cfg


But this didn't do anything.










share|improve this question


























    up vote
    0
    down vote

    favorite












    I have 3 OS's on my computer.



    First, I installed windows 10.



    Secondly, Ubuntu 16.04 LTS (with GUI).



    Thirdly, CentOS 7 (without GUI).



    During Ubuntu installation, I installed Grub2 into MBR and it was taking care of booting.



    Then, during CentOS installation I again installed Grub2 into MBR, so that CentOS controls booting. And it was controlling for a year or so.



    However, recently, I've used such commands as apt-update and apt-upgrade while on Ubuntu system, and now the boot process is controlled by Ubuntu. How do I know ? Well, when the booting process starts and I get to choose which OS I want to load, the background of the menu is in Ubuntu colors. Previously, when CentOS installation based Grub2 was in control of booting everything was in black and white.



    How do I make CentOS Grub2 be responsible for the booting process again ?



    I've tried to login to CentOS and do something like :



    grub2-mkconfig -o /boot/grub2/grub.cfg


    But this didn't do anything.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have 3 OS's on my computer.



      First, I installed windows 10.



      Secondly, Ubuntu 16.04 LTS (with GUI).



      Thirdly, CentOS 7 (without GUI).



      During Ubuntu installation, I installed Grub2 into MBR and it was taking care of booting.



      Then, during CentOS installation I again installed Grub2 into MBR, so that CentOS controls booting. And it was controlling for a year or so.



      However, recently, I've used such commands as apt-update and apt-upgrade while on Ubuntu system, and now the boot process is controlled by Ubuntu. How do I know ? Well, when the booting process starts and I get to choose which OS I want to load, the background of the menu is in Ubuntu colors. Previously, when CentOS installation based Grub2 was in control of booting everything was in black and white.



      How do I make CentOS Grub2 be responsible for the booting process again ?



      I've tried to login to CentOS and do something like :



      grub2-mkconfig -o /boot/grub2/grub.cfg


      But this didn't do anything.










      share|improve this question













      I have 3 OS's on my computer.



      First, I installed windows 10.



      Secondly, Ubuntu 16.04 LTS (with GUI).



      Thirdly, CentOS 7 (without GUI).



      During Ubuntu installation, I installed Grub2 into MBR and it was taking care of booting.



      Then, during CentOS installation I again installed Grub2 into MBR, so that CentOS controls booting. And it was controlling for a year or so.



      However, recently, I've used such commands as apt-update and apt-upgrade while on Ubuntu system, and now the boot process is controlled by Ubuntu. How do I know ? Well, when the booting process starts and I get to choose which OS I want to load, the background of the menu is in Ubuntu colors. Previously, when CentOS installation based Grub2 was in control of booting everything was in black and white.



      How do I make CentOS Grub2 be responsible for the booting process again ?



      I've tried to login to CentOS and do something like :



      grub2-mkconfig -o /boot/grub2/grub.cfg


      But this didn't do anything.







      multi-boot centos-7 grub2 ubuntu-16.04






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 2 at 18:15









      Tomas.R

      92




      92






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Since you chose to install grub for both Linux distros you end up in a "winner takes it all" situation: Whichever GRUB is reinstalled last (e.g. because of an update in the distro) controlls the boot process.



          By running install-grub /dev/sdX in the distro of your choice you can force it to be the current winner - until the next update. If you want to make sure Ubuntu takes over never again, just uninstall GRUB or add grub to the update blacklist






          share|improve this answer





















          • Thanks Eugen, it worked ! :]
            – Tomas.R
            Dec 2 at 18:34











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2fsuperuser.com%2fquestions%2f1380232%2fgrub2-of-previous-os-controls-the-boot-process%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          Since you chose to install grub for both Linux distros you end up in a "winner takes it all" situation: Whichever GRUB is reinstalled last (e.g. because of an update in the distro) controlls the boot process.



          By running install-grub /dev/sdX in the distro of your choice you can force it to be the current winner - until the next update. If you want to make sure Ubuntu takes over never again, just uninstall GRUB or add grub to the update blacklist






          share|improve this answer





















          • Thanks Eugen, it worked ! :]
            – Tomas.R
            Dec 2 at 18:34















          up vote
          1
          down vote



          accepted










          Since you chose to install grub for both Linux distros you end up in a "winner takes it all" situation: Whichever GRUB is reinstalled last (e.g. because of an update in the distro) controlls the boot process.



          By running install-grub /dev/sdX in the distro of your choice you can force it to be the current winner - until the next update. If you want to make sure Ubuntu takes over never again, just uninstall GRUB or add grub to the update blacklist






          share|improve this answer





















          • Thanks Eugen, it worked ! :]
            – Tomas.R
            Dec 2 at 18:34













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          Since you chose to install grub for both Linux distros you end up in a "winner takes it all" situation: Whichever GRUB is reinstalled last (e.g. because of an update in the distro) controlls the boot process.



          By running install-grub /dev/sdX in the distro of your choice you can force it to be the current winner - until the next update. If you want to make sure Ubuntu takes over never again, just uninstall GRUB or add grub to the update blacklist






          share|improve this answer












          Since you chose to install grub for both Linux distros you end up in a "winner takes it all" situation: Whichever GRUB is reinstalled last (e.g. because of an update in the distro) controlls the boot process.



          By running install-grub /dev/sdX in the distro of your choice you can force it to be the current winner - until the next update. If you want to make sure Ubuntu takes over never again, just uninstall GRUB or add grub to the update blacklist







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 2 at 18:22









          Eugen Rieck

          9,57022127




          9,57022127












          • Thanks Eugen, it worked ! :]
            – Tomas.R
            Dec 2 at 18:34


















          • Thanks Eugen, it worked ! :]
            – Tomas.R
            Dec 2 at 18:34
















          Thanks Eugen, it worked ! :]
          – Tomas.R
          Dec 2 at 18:34




          Thanks Eugen, it worked ! :]
          – Tomas.R
          Dec 2 at 18:34


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2fsuperuser.com%2fquestions%2f1380232%2fgrub2-of-previous-os-controls-the-boot-process%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

          If I really need a card on my start hand, how many mulligans make sense? [duplicate]

          Alcedinidae

          Can an atomic nucleus contain both particles and antiparticles? [duplicate]