Dual boot Windows 10 & Ubuntu 18.04 - How to tell grub not to show and boot directly to Windows 10

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








up vote
0
down vote

favorite












I am dual booting Windows 10 and Ubuntu 18.04. How to tell grub not to show the boot menu and boot directly to Windows 10 by default?
What should I do if I want to boot to Ubuntu 18.04 instead of the default Windows 10?







share|improve this question

























    up vote
    0
    down vote

    favorite












    I am dual booting Windows 10 and Ubuntu 18.04. How to tell grub not to show the boot menu and boot directly to Windows 10 by default?
    What should I do if I want to boot to Ubuntu 18.04 instead of the default Windows 10?







    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am dual booting Windows 10 and Ubuntu 18.04. How to tell grub not to show the boot menu and boot directly to Windows 10 by default?
      What should I do if I want to boot to Ubuntu 18.04 instead of the default Windows 10?







      share|improve this question













      I am dual booting Windows 10 and Ubuntu 18.04. How to tell grub not to show the boot menu and boot directly to Windows 10 by default?
      What should I do if I want to boot to Ubuntu 18.04 instead of the default Windows 10?









      share|improve this question












      share|improve this question




      share|improve this question








      edited Jun 6 at 4:20









      karel

      49.5k11105126




      49.5k11105126









      asked Jun 6 at 4:18









      PRATAP

      352215




      352215




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          The file /etc/default/grub contains a line:



          GRUB_TIMEOUT=10 


          edit the file and make the 10 a 0 to hide the grub menu. You may force the grub menu by holding down a key, shift or tab.



          Making Windows the default may be done by renaming the file

          /etc/grub.d/30_os-prober to /etc/grub.d/06_os-prober, so it gets run before the 10_linux file.



          sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober





          share|improve this answer





















          • I got a doubt if i make sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober I Can never enter Ubuntu 18.04. is that rite?
            – PRATAP
            Jun 6 at 5:08










          • This may not work for multi-boot environments, os-prober will reset GRUB_TIMEOUT to 10 if more than one OS is found. See askubuntu.com/questions/117525/… . The default OS could be set with GRUB_DEFAULT instead of renaming files in /etc/grub.d although that is possible.
            – mook765
            Jun 6 at 5:27










          • @mook765 Hi, that means once i set GRUB_DEFAULT to Windows10 and GRUB_TIMEOUT=0 grub will not be shown and it will boot to Windows10 and if at any day i want Ubuntu menas i can hold down the Shift or TAB as soon as switch on the System. is that rite?
            – PRATAP
            Jun 6 at 8:44










          • @PRATAB I don't think it will work, see the link I provided. There are a few lines in /etc/grub.d/30_os-prober which will reset the timeout to 10 seconds if more than one OS is found.
            – mook765
            Jun 6 at 10:04










          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f1044021%2fdual-boot-windows-10-ubuntu-18-04-how-to-tell-grub-not-to-show-and-boot-dire%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          The file /etc/default/grub contains a line:



          GRUB_TIMEOUT=10 


          edit the file and make the 10 a 0 to hide the grub menu. You may force the grub menu by holding down a key, shift or tab.



          Making Windows the default may be done by renaming the file

          /etc/grub.d/30_os-prober to /etc/grub.d/06_os-prober, so it gets run before the 10_linux file.



          sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober





          share|improve this answer





















          • I got a doubt if i make sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober I Can never enter Ubuntu 18.04. is that rite?
            – PRATAP
            Jun 6 at 5:08










          • This may not work for multi-boot environments, os-prober will reset GRUB_TIMEOUT to 10 if more than one OS is found. See askubuntu.com/questions/117525/… . The default OS could be set with GRUB_DEFAULT instead of renaming files in /etc/grub.d although that is possible.
            – mook765
            Jun 6 at 5:27










          • @mook765 Hi, that means once i set GRUB_DEFAULT to Windows10 and GRUB_TIMEOUT=0 grub will not be shown and it will boot to Windows10 and if at any day i want Ubuntu menas i can hold down the Shift or TAB as soon as switch on the System. is that rite?
            – PRATAP
            Jun 6 at 8:44










          • @PRATAB I don't think it will work, see the link I provided. There are a few lines in /etc/grub.d/30_os-prober which will reset the timeout to 10 seconds if more than one OS is found.
            – mook765
            Jun 6 at 10:04














          up vote
          2
          down vote



          accepted










          The file /etc/default/grub contains a line:



          GRUB_TIMEOUT=10 


          edit the file and make the 10 a 0 to hide the grub menu. You may force the grub menu by holding down a key, shift or tab.



          Making Windows the default may be done by renaming the file

          /etc/grub.d/30_os-prober to /etc/grub.d/06_os-prober, so it gets run before the 10_linux file.



          sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober





          share|improve this answer





















          • I got a doubt if i make sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober I Can never enter Ubuntu 18.04. is that rite?
            – PRATAP
            Jun 6 at 5:08










          • This may not work for multi-boot environments, os-prober will reset GRUB_TIMEOUT to 10 if more than one OS is found. See askubuntu.com/questions/117525/… . The default OS could be set with GRUB_DEFAULT instead of renaming files in /etc/grub.d although that is possible.
            – mook765
            Jun 6 at 5:27










          • @mook765 Hi, that means once i set GRUB_DEFAULT to Windows10 and GRUB_TIMEOUT=0 grub will not be shown and it will boot to Windows10 and if at any day i want Ubuntu menas i can hold down the Shift or TAB as soon as switch on the System. is that rite?
            – PRATAP
            Jun 6 at 8:44










          • @PRATAB I don't think it will work, see the link I provided. There are a few lines in /etc/grub.d/30_os-prober which will reset the timeout to 10 seconds if more than one OS is found.
            – mook765
            Jun 6 at 10:04












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          The file /etc/default/grub contains a line:



          GRUB_TIMEOUT=10 


          edit the file and make the 10 a 0 to hide the grub menu. You may force the grub menu by holding down a key, shift or tab.



          Making Windows the default may be done by renaming the file

          /etc/grub.d/30_os-prober to /etc/grub.d/06_os-prober, so it gets run before the 10_linux file.



          sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober





          share|improve this answer













          The file /etc/default/grub contains a line:



          GRUB_TIMEOUT=10 


          edit the file and make the 10 a 0 to hide the grub menu. You may force the grub menu by holding down a key, shift or tab.



          Making Windows the default may be done by renaming the file

          /etc/grub.d/30_os-prober to /etc/grub.d/06_os-prober, so it gets run before the 10_linux file.



          sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober






          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Jun 6 at 4:54









          ubfan1

          8,56631527




          8,56631527











          • I got a doubt if i make sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober I Can never enter Ubuntu 18.04. is that rite?
            – PRATAP
            Jun 6 at 5:08










          • This may not work for multi-boot environments, os-prober will reset GRUB_TIMEOUT to 10 if more than one OS is found. See askubuntu.com/questions/117525/… . The default OS could be set with GRUB_DEFAULT instead of renaming files in /etc/grub.d although that is possible.
            – mook765
            Jun 6 at 5:27










          • @mook765 Hi, that means once i set GRUB_DEFAULT to Windows10 and GRUB_TIMEOUT=0 grub will not be shown and it will boot to Windows10 and if at any day i want Ubuntu menas i can hold down the Shift or TAB as soon as switch on the System. is that rite?
            – PRATAP
            Jun 6 at 8:44










          • @PRATAB I don't think it will work, see the link I provided. There are a few lines in /etc/grub.d/30_os-prober which will reset the timeout to 10 seconds if more than one OS is found.
            – mook765
            Jun 6 at 10:04
















          • I got a doubt if i make sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober I Can never enter Ubuntu 18.04. is that rite?
            – PRATAP
            Jun 6 at 5:08










          • This may not work for multi-boot environments, os-prober will reset GRUB_TIMEOUT to 10 if more than one OS is found. See askubuntu.com/questions/117525/… . The default OS could be set with GRUB_DEFAULT instead of renaming files in /etc/grub.d although that is possible.
            – mook765
            Jun 6 at 5:27










          • @mook765 Hi, that means once i set GRUB_DEFAULT to Windows10 and GRUB_TIMEOUT=0 grub will not be shown and it will boot to Windows10 and if at any day i want Ubuntu menas i can hold down the Shift or TAB as soon as switch on the System. is that rite?
            – PRATAP
            Jun 6 at 8:44










          • @PRATAB I don't think it will work, see the link I provided. There are a few lines in /etc/grub.d/30_os-prober which will reset the timeout to 10 seconds if more than one OS is found.
            – mook765
            Jun 6 at 10:04















          I got a doubt if i make sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober I Can never enter Ubuntu 18.04. is that rite?
          – PRATAP
          Jun 6 at 5:08




          I got a doubt if i make sudo mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober I Can never enter Ubuntu 18.04. is that rite?
          – PRATAP
          Jun 6 at 5:08












          This may not work for multi-boot environments, os-prober will reset GRUB_TIMEOUT to 10 if more than one OS is found. See askubuntu.com/questions/117525/… . The default OS could be set with GRUB_DEFAULT instead of renaming files in /etc/grub.d although that is possible.
          – mook765
          Jun 6 at 5:27




          This may not work for multi-boot environments, os-prober will reset GRUB_TIMEOUT to 10 if more than one OS is found. See askubuntu.com/questions/117525/… . The default OS could be set with GRUB_DEFAULT instead of renaming files in /etc/grub.d although that is possible.
          – mook765
          Jun 6 at 5:27












          @mook765 Hi, that means once i set GRUB_DEFAULT to Windows10 and GRUB_TIMEOUT=0 grub will not be shown and it will boot to Windows10 and if at any day i want Ubuntu menas i can hold down the Shift or TAB as soon as switch on the System. is that rite?
          – PRATAP
          Jun 6 at 8:44




          @mook765 Hi, that means once i set GRUB_DEFAULT to Windows10 and GRUB_TIMEOUT=0 grub will not be shown and it will boot to Windows10 and if at any day i want Ubuntu menas i can hold down the Shift or TAB as soon as switch on the System. is that rite?
          – PRATAP
          Jun 6 at 8:44












          @PRATAB I don't think it will work, see the link I provided. There are a few lines in /etc/grub.d/30_os-prober which will reset the timeout to 10 seconds if more than one OS is found.
          – mook765
          Jun 6 at 10:04




          @PRATAB I don't think it will work, see the link I provided. There are a few lines in /etc/grub.d/30_os-prober which will reset the timeout to 10 seconds if more than one OS is found.
          – mook765
          Jun 6 at 10:04












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1044021%2fdual-boot-windows-10-ubuntu-18-04-how-to-tell-grub-not-to-show-and-boot-dire%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491