There was no /etc/default/grub file, so how come my system was able to boot?












2















I'm running Ubuntu 13.10. I wanted to change the GRUB timeout by editing the /etc/default/grub file. But there was no such file in my system.



On startup the GRUB menu is displayed and I'm not experiencing any boot problems. If this file was so important for booting, why am I nit experiencing any boot problems?










share|improve this question

























  • If you do not facing any problems... then may I ask; why is that you need to edit the grub file??

    – AzkerM
    Jan 16 '14 at 6:22











  • to set the grub timeout.

    – Avinash Raj
    Jan 16 '14 at 6:24













  • The one I found is for 12.04 but still this may help you when you try with sudo .. askubuntu.com/a/148097/179042

    – AzkerM
    Jan 16 '14 at 7:13











  • it won't works,there was no such file.

    – Avinash Raj
    Jan 16 '14 at 7:19






  • 2





    Do you have this line in /boot/grub/grub.cfg ### END /etc/grub.d/00_header ###? if so, you could try adding set timeout=-1 just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file

    – user3121023
    Jan 18 '14 at 14:35


















2















I'm running Ubuntu 13.10. I wanted to change the GRUB timeout by editing the /etc/default/grub file. But there was no such file in my system.



On startup the GRUB menu is displayed and I'm not experiencing any boot problems. If this file was so important for booting, why am I nit experiencing any boot problems?










share|improve this question

























  • If you do not facing any problems... then may I ask; why is that you need to edit the grub file??

    – AzkerM
    Jan 16 '14 at 6:22











  • to set the grub timeout.

    – Avinash Raj
    Jan 16 '14 at 6:24













  • The one I found is for 12.04 but still this may help you when you try with sudo .. askubuntu.com/a/148097/179042

    – AzkerM
    Jan 16 '14 at 7:13











  • it won't works,there was no such file.

    – Avinash Raj
    Jan 16 '14 at 7:19






  • 2





    Do you have this line in /boot/grub/grub.cfg ### END /etc/grub.d/00_header ###? if so, you could try adding set timeout=-1 just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file

    – user3121023
    Jan 18 '14 at 14:35
















2












2








2


1






I'm running Ubuntu 13.10. I wanted to change the GRUB timeout by editing the /etc/default/grub file. But there was no such file in my system.



On startup the GRUB menu is displayed and I'm not experiencing any boot problems. If this file was so important for booting, why am I nit experiencing any boot problems?










share|improve this question
















I'm running Ubuntu 13.10. I wanted to change the GRUB timeout by editing the /etc/default/grub file. But there was no such file in my system.



On startup the GRUB menu is displayed and I'm not experiencing any boot problems. If this file was so important for booting, why am I nit experiencing any boot problems?







grub2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 5 at 14:46









Zanna

51.2k13139243




51.2k13139243










asked Jan 16 '14 at 6:18









Avinash RajAvinash Raj

52.6k41170219




52.6k41170219













  • If you do not facing any problems... then may I ask; why is that you need to edit the grub file??

    – AzkerM
    Jan 16 '14 at 6:22











  • to set the grub timeout.

    – Avinash Raj
    Jan 16 '14 at 6:24













  • The one I found is for 12.04 but still this may help you when you try with sudo .. askubuntu.com/a/148097/179042

    – AzkerM
    Jan 16 '14 at 7:13











  • it won't works,there was no such file.

    – Avinash Raj
    Jan 16 '14 at 7:19






  • 2





    Do you have this line in /boot/grub/grub.cfg ### END /etc/grub.d/00_header ###? if so, you could try adding set timeout=-1 just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file

    – user3121023
    Jan 18 '14 at 14:35





















  • If you do not facing any problems... then may I ask; why is that you need to edit the grub file??

    – AzkerM
    Jan 16 '14 at 6:22











  • to set the grub timeout.

    – Avinash Raj
    Jan 16 '14 at 6:24













  • The one I found is for 12.04 but still this may help you when you try with sudo .. askubuntu.com/a/148097/179042

    – AzkerM
    Jan 16 '14 at 7:13











  • it won't works,there was no such file.

    – Avinash Raj
    Jan 16 '14 at 7:19






  • 2





    Do you have this line in /boot/grub/grub.cfg ### END /etc/grub.d/00_header ###? if so, you could try adding set timeout=-1 just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file

    – user3121023
    Jan 18 '14 at 14:35



















If you do not facing any problems... then may I ask; why is that you need to edit the grub file??

– AzkerM
Jan 16 '14 at 6:22





If you do not facing any problems... then may I ask; why is that you need to edit the grub file??

– AzkerM
Jan 16 '14 at 6:22













to set the grub timeout.

– Avinash Raj
Jan 16 '14 at 6:24







to set the grub timeout.

– Avinash Raj
Jan 16 '14 at 6:24















The one I found is for 12.04 but still this may help you when you try with sudo .. askubuntu.com/a/148097/179042

– AzkerM
Jan 16 '14 at 7:13





The one I found is for 12.04 but still this may help you when you try with sudo .. askubuntu.com/a/148097/179042

– AzkerM
Jan 16 '14 at 7:13













it won't works,there was no such file.

– Avinash Raj
Jan 16 '14 at 7:19





it won't works,there was no such file.

– Avinash Raj
Jan 16 '14 at 7:19




2




2





Do you have this line in /boot/grub/grub.cfg ### END /etc/grub.d/00_header ###? if so, you could try adding set timeout=-1 just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file

– user3121023
Jan 18 '14 at 14:35







Do you have this line in /boot/grub/grub.cfg ### END /etc/grub.d/00_header ###? if so, you could try adding set timeout=-1 just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file

– user3121023
Jan 18 '14 at 14:35












3 Answers
3






active

oldest

votes


















6














Reinstall the package and hope for the best:



sudo apt-get --reinstall install grub-pc


Actually the file is not critical for the boot, just to configure the boot when you execute sudo update-grub. If the file doesn't exist, then all values are default ones, like you didn't set them up.






share|improve this answer


























  • We can also set the grub timeout like this?

    – Avinash Raj
    Jan 18 '14 at 15:04













  • "Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.

    – Braiam
    Jan 18 '14 at 15:08











  • yes i have that file and also have the line set timeout=-1 within curly braces.

    – Avinash Raj
    Jan 18 '14 at 15:09











  • "I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.

    – Braiam
    Jan 18 '14 at 15:10











  • i don't have /etc/default/grub file but i had /boot/grub/grub.cfg.

    – Avinash Raj
    Jan 18 '14 at 15:12





















1














just copy example from /usr/share/grub/default/grub:



sudo cp /usr/share/grub/default/grub /etc/default/





share|improve this answer

































    0














    If you really only want to know "why this works", the answer is that LiveCD Ubuntu that you used for installation had this unimportant for boot file etcdefaultgrub.cfg, so created yours important for boot /boot/grub/grub.cfg using it.






    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%2f406229%2fthere-was-no-etc-default-grub-file-so-how-come-my-system-was-able-to-boot%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









      6














      Reinstall the package and hope for the best:



      sudo apt-get --reinstall install grub-pc


      Actually the file is not critical for the boot, just to configure the boot when you execute sudo update-grub. If the file doesn't exist, then all values are default ones, like you didn't set them up.






      share|improve this answer


























      • We can also set the grub timeout like this?

        – Avinash Raj
        Jan 18 '14 at 15:04













      • "Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.

        – Braiam
        Jan 18 '14 at 15:08











      • yes i have that file and also have the line set timeout=-1 within curly braces.

        – Avinash Raj
        Jan 18 '14 at 15:09











      • "I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.

        – Braiam
        Jan 18 '14 at 15:10











      • i don't have /etc/default/grub file but i had /boot/grub/grub.cfg.

        – Avinash Raj
        Jan 18 '14 at 15:12


















      6














      Reinstall the package and hope for the best:



      sudo apt-get --reinstall install grub-pc


      Actually the file is not critical for the boot, just to configure the boot when you execute sudo update-grub. If the file doesn't exist, then all values are default ones, like you didn't set them up.






      share|improve this answer


























      • We can also set the grub timeout like this?

        – Avinash Raj
        Jan 18 '14 at 15:04













      • "Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.

        – Braiam
        Jan 18 '14 at 15:08











      • yes i have that file and also have the line set timeout=-1 within curly braces.

        – Avinash Raj
        Jan 18 '14 at 15:09











      • "I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.

        – Braiam
        Jan 18 '14 at 15:10











      • i don't have /etc/default/grub file but i had /boot/grub/grub.cfg.

        – Avinash Raj
        Jan 18 '14 at 15:12
















      6












      6








      6







      Reinstall the package and hope for the best:



      sudo apt-get --reinstall install grub-pc


      Actually the file is not critical for the boot, just to configure the boot when you execute sudo update-grub. If the file doesn't exist, then all values are default ones, like you didn't set them up.






      share|improve this answer















      Reinstall the package and hope for the best:



      sudo apt-get --reinstall install grub-pc


      Actually the file is not critical for the boot, just to configure the boot when you execute sudo update-grub. If the file doesn't exist, then all values are default ones, like you didn't set them up.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jan 18 '14 at 15:02

























      answered Jan 18 '14 at 14:46









      BraiamBraiam

      52.5k20138223




      52.5k20138223













      • We can also set the grub timeout like this?

        – Avinash Raj
        Jan 18 '14 at 15:04













      • "Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.

        – Braiam
        Jan 18 '14 at 15:08











      • yes i have that file and also have the line set timeout=-1 within curly braces.

        – Avinash Raj
        Jan 18 '14 at 15:09











      • "I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.

        – Braiam
        Jan 18 '14 at 15:10











      • i don't have /etc/default/grub file but i had /boot/grub/grub.cfg.

        – Avinash Raj
        Jan 18 '14 at 15:12





















      • We can also set the grub timeout like this?

        – Avinash Raj
        Jan 18 '14 at 15:04













      • "Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.

        – Braiam
        Jan 18 '14 at 15:08











      • yes i have that file and also have the line set timeout=-1 within curly braces.

        – Avinash Raj
        Jan 18 '14 at 15:09











      • "I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.

        – Braiam
        Jan 18 '14 at 15:10











      • i don't have /etc/default/grub file but i had /boot/grub/grub.cfg.

        – Avinash Raj
        Jan 18 '14 at 15:12



















      We can also set the grub timeout like this?

      – Avinash Raj
      Jan 18 '14 at 15:04







      We can also set the grub timeout like this?

      – Avinash Raj
      Jan 18 '14 at 15:04















      "Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.

      – Braiam
      Jan 18 '14 at 15:08





      "Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.

      – Braiam
      Jan 18 '14 at 15:08













      yes i have that file and also have the line set timeout=-1 within curly braces.

      – Avinash Raj
      Jan 18 '14 at 15:09





      yes i have that file and also have the line set timeout=-1 within curly braces.

      – Avinash Raj
      Jan 18 '14 at 15:09













      "I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.

      – Braiam
      Jan 18 '14 at 15:10





      "I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.

      – Braiam
      Jan 18 '14 at 15:10













      i don't have /etc/default/grub file but i had /boot/grub/grub.cfg.

      – Avinash Raj
      Jan 18 '14 at 15:12







      i don't have /etc/default/grub file but i had /boot/grub/grub.cfg.

      – Avinash Raj
      Jan 18 '14 at 15:12















      1














      just copy example from /usr/share/grub/default/grub:



      sudo cp /usr/share/grub/default/grub /etc/default/





      share|improve this answer






























        1














        just copy example from /usr/share/grub/default/grub:



        sudo cp /usr/share/grub/default/grub /etc/default/





        share|improve this answer




























          1












          1








          1







          just copy example from /usr/share/grub/default/grub:



          sudo cp /usr/share/grub/default/grub /etc/default/





          share|improve this answer















          just copy example from /usr/share/grub/default/grub:



          sudo cp /usr/share/grub/default/grub /etc/default/






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 23 '17 at 14:46









          Zanna

          51.2k13139243




          51.2k13139243










          answered May 23 '17 at 14:27









          aleksandr barakinaleksandr barakin

          1111111




          1111111























              0














              If you really only want to know "why this works", the answer is that LiveCD Ubuntu that you used for installation had this unimportant for boot file etcdefaultgrub.cfg, so created yours important for boot /boot/grub/grub.cfg using it.






              share|improve this answer




























                0














                If you really only want to know "why this works", the answer is that LiveCD Ubuntu that you used for installation had this unimportant for boot file etcdefaultgrub.cfg, so created yours important for boot /boot/grub/grub.cfg using it.






                share|improve this answer


























                  0












                  0








                  0







                  If you really only want to know "why this works", the answer is that LiveCD Ubuntu that you used for installation had this unimportant for boot file etcdefaultgrub.cfg, so created yours important for boot /boot/grub/grub.cfg using it.






                  share|improve this answer













                  If you really only want to know "why this works", the answer is that LiveCD Ubuntu that you used for installation had this unimportant for boot file etcdefaultgrub.cfg, so created yours important for boot /boot/grub/grub.cfg using it.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 5 at 16:17









                  Maciej PolańskiMaciej Polański

                  12




                  12






























                      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%2f406229%2fthere-was-no-etc-default-grub-file-so-how-come-my-system-was-able-to-boot%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 change which sound is reproduced for terminal bell?

                      Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                      Can I use Tabulator js library in my java Spring + Thymeleaf project?