How to prevent Ubuntu from overwriting grub bootloader after update?












9















Is there any way I can stop Ubuntu from overwriting bootloader?



It happens after updating (I suppose) system's kernel. I want to stay with my other linux distro bootloader without having to change it manually every time a certain update og ubuntu is changing it.



Thanks.










share|improve this question


















  • 1





    Try to disable or un-install it

    – Dishank Jindal
    Jul 27 '14 at 20:48











  • I just stumbled on this answer. tl;dr: uninstall grub* and then apt-mark hold grub* to prevent it from re-installing.

    – Hendy
    May 8 '17 at 20:42
















9















Is there any way I can stop Ubuntu from overwriting bootloader?



It happens after updating (I suppose) system's kernel. I want to stay with my other linux distro bootloader without having to change it manually every time a certain update og ubuntu is changing it.



Thanks.










share|improve this question


















  • 1





    Try to disable or un-install it

    – Dishank Jindal
    Jul 27 '14 at 20:48











  • I just stumbled on this answer. tl;dr: uninstall grub* and then apt-mark hold grub* to prevent it from re-installing.

    – Hendy
    May 8 '17 at 20:42














9












9








9


3






Is there any way I can stop Ubuntu from overwriting bootloader?



It happens after updating (I suppose) system's kernel. I want to stay with my other linux distro bootloader without having to change it manually every time a certain update og ubuntu is changing it.



Thanks.










share|improve this question














Is there any way I can stop Ubuntu from overwriting bootloader?



It happens after updating (I suppose) system's kernel. I want to stay with my other linux distro bootloader without having to change it manually every time a certain update og ubuntu is changing it.



Thanks.







dual-boot grub2 bootloader






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 27 '14 at 19:45









banuybanuy

4612




4612








  • 1





    Try to disable or un-install it

    – Dishank Jindal
    Jul 27 '14 at 20:48











  • I just stumbled on this answer. tl;dr: uninstall grub* and then apt-mark hold grub* to prevent it from re-installing.

    – Hendy
    May 8 '17 at 20:42














  • 1





    Try to disable or un-install it

    – Dishank Jindal
    Jul 27 '14 at 20:48











  • I just stumbled on this answer. tl;dr: uninstall grub* and then apt-mark hold grub* to prevent it from re-installing.

    – Hendy
    May 8 '17 at 20:42








1




1





Try to disable or un-install it

– Dishank Jindal
Jul 27 '14 at 20:48





Try to disable or un-install it

– Dishank Jindal
Jul 27 '14 at 20:48













I just stumbled on this answer. tl;dr: uninstall grub* and then apt-mark hold grub* to prevent it from re-installing.

– Hendy
May 8 '17 at 20:42





I just stumbled on this answer. tl;dr: uninstall grub* and then apt-mark hold grub* to prevent it from re-installing.

– Hendy
May 8 '17 at 20:42










2 Answers
2






active

oldest

votes


















5














Grub remembers where to reinstall.



To see what drive grub2 uses see this line - grub-pc/install_devices, check what it is now:



sudo debconf-show grub-pc


to get grub2 to remember where to reinstall on updates, grub-pc is for BIOS and grub-efi is for UEFI, if you unselect everything then the command above should change to a blank or grub will not reinstall.



sudo dpkg-reconfigure grub-pc
sudo dpkg-reconfigure grub-efi-amd64


Enter thru first pages,spacebar to choose/unchoose drive, enter to accept, do not choose partitions



http://ubuntuforums.org/showthread.php?t=2189643



You can also just change to install grub to a partition. We suggest never to install to a partition as it does not work well, but if really booting with another copy of grub that is not really an issue.



How to: Create a Customized GRUB2 Screen that is Maintenance Free.- Cavsfan



https://help.ubuntu.com/community/MaintenanceFreeCustomGrub2Screen






share|improve this answer































    0














    @oldfred's answer led me to the correct one:



    sudo dpkg-reconfigure grub-efi-amd64


    For the first couple of questions accept the existing values (just press Enter) but when it comes to this, select No:



     +----------------------| Configuring grub-efi-amd64 |-----------------------+
    | |
    | GRUB can configure your platform's NVRAM variables so that it boots into |
    | Debian automatically when powered on. However, you may prefer to disable |
    | this behavior and avoid changes to your boot configuration. For example, |
    | if your NVRAM variables have been set up such that your system contacts |
    | a PXE server on every boot, this would preserve that behavior. |
    | |
    | Update NVRAM variables to automatically boot into Debian? |
    | |
    | <Yes> <No> |
    | ^^^^ |
    +---------------------------------------------------------------------------+





    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      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: 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%2faskubuntu.com%2fquestions%2f503417%2fhow-to-prevent-ubuntu-from-overwriting-grub-bootloader-after-update%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      Grub remembers where to reinstall.



      To see what drive grub2 uses see this line - grub-pc/install_devices, check what it is now:



      sudo debconf-show grub-pc


      to get grub2 to remember where to reinstall on updates, grub-pc is for BIOS and grub-efi is for UEFI, if you unselect everything then the command above should change to a blank or grub will not reinstall.



      sudo dpkg-reconfigure grub-pc
      sudo dpkg-reconfigure grub-efi-amd64


      Enter thru first pages,spacebar to choose/unchoose drive, enter to accept, do not choose partitions



      http://ubuntuforums.org/showthread.php?t=2189643



      You can also just change to install grub to a partition. We suggest never to install to a partition as it does not work well, but if really booting with another copy of grub that is not really an issue.



      How to: Create a Customized GRUB2 Screen that is Maintenance Free.- Cavsfan



      https://help.ubuntu.com/community/MaintenanceFreeCustomGrub2Screen






      share|improve this answer




























        5














        Grub remembers where to reinstall.



        To see what drive grub2 uses see this line - grub-pc/install_devices, check what it is now:



        sudo debconf-show grub-pc


        to get grub2 to remember where to reinstall on updates, grub-pc is for BIOS and grub-efi is for UEFI, if you unselect everything then the command above should change to a blank or grub will not reinstall.



        sudo dpkg-reconfigure grub-pc
        sudo dpkg-reconfigure grub-efi-amd64


        Enter thru first pages,spacebar to choose/unchoose drive, enter to accept, do not choose partitions



        http://ubuntuforums.org/showthread.php?t=2189643



        You can also just change to install grub to a partition. We suggest never to install to a partition as it does not work well, but if really booting with another copy of grub that is not really an issue.



        How to: Create a Customized GRUB2 Screen that is Maintenance Free.- Cavsfan



        https://help.ubuntu.com/community/MaintenanceFreeCustomGrub2Screen






        share|improve this answer


























          5












          5








          5







          Grub remembers where to reinstall.



          To see what drive grub2 uses see this line - grub-pc/install_devices, check what it is now:



          sudo debconf-show grub-pc


          to get grub2 to remember where to reinstall on updates, grub-pc is for BIOS and grub-efi is for UEFI, if you unselect everything then the command above should change to a blank or grub will not reinstall.



          sudo dpkg-reconfigure grub-pc
          sudo dpkg-reconfigure grub-efi-amd64


          Enter thru first pages,spacebar to choose/unchoose drive, enter to accept, do not choose partitions



          http://ubuntuforums.org/showthread.php?t=2189643



          You can also just change to install grub to a partition. We suggest never to install to a partition as it does not work well, but if really booting with another copy of grub that is not really an issue.



          How to: Create a Customized GRUB2 Screen that is Maintenance Free.- Cavsfan



          https://help.ubuntu.com/community/MaintenanceFreeCustomGrub2Screen






          share|improve this answer













          Grub remembers where to reinstall.



          To see what drive grub2 uses see this line - grub-pc/install_devices, check what it is now:



          sudo debconf-show grub-pc


          to get grub2 to remember where to reinstall on updates, grub-pc is for BIOS and grub-efi is for UEFI, if you unselect everything then the command above should change to a blank or grub will not reinstall.



          sudo dpkg-reconfigure grub-pc
          sudo dpkg-reconfigure grub-efi-amd64


          Enter thru first pages,spacebar to choose/unchoose drive, enter to accept, do not choose partitions



          http://ubuntuforums.org/showthread.php?t=2189643



          You can also just change to install grub to a partition. We suggest never to install to a partition as it does not work well, but if really booting with another copy of grub that is not really an issue.



          How to: Create a Customized GRUB2 Screen that is Maintenance Free.- Cavsfan



          https://help.ubuntu.com/community/MaintenanceFreeCustomGrub2Screen







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 27 '14 at 20:58









          oldfredoldfred

          7,83421421




          7,83421421

























              0














              @oldfred's answer led me to the correct one:



              sudo dpkg-reconfigure grub-efi-amd64


              For the first couple of questions accept the existing values (just press Enter) but when it comes to this, select No:



               +----------------------| Configuring grub-efi-amd64 |-----------------------+
              | |
              | GRUB can configure your platform's NVRAM variables so that it boots into |
              | Debian automatically when powered on. However, you may prefer to disable |
              | this behavior and avoid changes to your boot configuration. For example, |
              | if your NVRAM variables have been set up such that your system contacts |
              | a PXE server on every boot, this would preserve that behavior. |
              | |
              | Update NVRAM variables to automatically boot into Debian? |
              | |
              | <Yes> <No> |
              | ^^^^ |
              +---------------------------------------------------------------------------+





              share|improve this answer




























                0














                @oldfred's answer led me to the correct one:



                sudo dpkg-reconfigure grub-efi-amd64


                For the first couple of questions accept the existing values (just press Enter) but when it comes to this, select No:



                 +----------------------| Configuring grub-efi-amd64 |-----------------------+
                | |
                | GRUB can configure your platform's NVRAM variables so that it boots into |
                | Debian automatically when powered on. However, you may prefer to disable |
                | this behavior and avoid changes to your boot configuration. For example, |
                | if your NVRAM variables have been set up such that your system contacts |
                | a PXE server on every boot, this would preserve that behavior. |
                | |
                | Update NVRAM variables to automatically boot into Debian? |
                | |
                | <Yes> <No> |
                | ^^^^ |
                +---------------------------------------------------------------------------+





                share|improve this answer


























                  0












                  0








                  0







                  @oldfred's answer led me to the correct one:



                  sudo dpkg-reconfigure grub-efi-amd64


                  For the first couple of questions accept the existing values (just press Enter) but when it comes to this, select No:



                   +----------------------| Configuring grub-efi-amd64 |-----------------------+
                  | |
                  | GRUB can configure your platform's NVRAM variables so that it boots into |
                  | Debian automatically when powered on. However, you may prefer to disable |
                  | this behavior and avoid changes to your boot configuration. For example, |
                  | if your NVRAM variables have been set up such that your system contacts |
                  | a PXE server on every boot, this would preserve that behavior. |
                  | |
                  | Update NVRAM variables to automatically boot into Debian? |
                  | |
                  | <Yes> <No> |
                  | ^^^^ |
                  +---------------------------------------------------------------------------+





                  share|improve this answer













                  @oldfred's answer led me to the correct one:



                  sudo dpkg-reconfigure grub-efi-amd64


                  For the first couple of questions accept the existing values (just press Enter) but when it comes to this, select No:



                   +----------------------| Configuring grub-efi-amd64 |-----------------------+
                  | |
                  | GRUB can configure your platform's NVRAM variables so that it boots into |
                  | Debian automatically when powered on. However, you may prefer to disable |
                  | this behavior and avoid changes to your boot configuration. For example, |
                  | if your NVRAM variables have been set up such that your system contacts |
                  | a PXE server on every boot, this would preserve that behavior. |
                  | |
                  | Update NVRAM variables to automatically boot into Debian? |
                  | |
                  | <Yes> <No> |
                  | ^^^^ |
                  +---------------------------------------------------------------------------+






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 25 at 14:52









                  TobiaTobia

                  1859




                  1859






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • 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%2faskubuntu.com%2fquestions%2f503417%2fhow-to-prevent-ubuntu-from-overwriting-grub-bootloader-after-update%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

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                       ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕