Can't get grub2 boot menu via COM2 port












1















I want to connect my "CentOS Linux release 7.6.1810 (Core)" device via COM2 port,then I modify '/etc/default/grub':



GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="serial"
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,115200n8"
GRUB_DISABLE_RECOVERY="true"
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="115200n8 serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"


then run:



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


as the result I could only get the output after "boot menu", not including the grub2.



PS: I'm using COM2(ttyS1) not COM1(ttyS0)










share|improve this question



























    1















    I want to connect my "CentOS Linux release 7.6.1810 (Core)" device via COM2 port,then I modify '/etc/default/grub':



    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="serial"
    GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,115200n8"
    GRUB_DISABLE_RECOVERY="true"
    GRUB_TERMINAL="serial console"
    GRUB_SERIAL_COMMAND="115200n8 serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"


    then run:



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


    as the result I could only get the output after "boot menu", not including the grub2.



    PS: I'm using COM2(ttyS1) not COM1(ttyS0)










    share|improve this question

























      1












      1








      1








      I want to connect my "CentOS Linux release 7.6.1810 (Core)" device via COM2 port,then I modify '/etc/default/grub':



      GRUB_TIMEOUT=5
      GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
      GRUB_DEFAULT=saved
      GRUB_DISABLE_SUBMENU=true
      GRUB_TERMINAL_OUTPUT="serial"
      GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,115200n8"
      GRUB_DISABLE_RECOVERY="true"
      GRUB_TERMINAL="serial console"
      GRUB_SERIAL_COMMAND="115200n8 serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"


      then run:



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


      as the result I could only get the output after "boot menu", not including the grub2.



      PS: I'm using COM2(ttyS1) not COM1(ttyS0)










      share|improve this question














      I want to connect my "CentOS Linux release 7.6.1810 (Core)" device via COM2 port,then I modify '/etc/default/grub':



      GRUB_TIMEOUT=5
      GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
      GRUB_DEFAULT=saved
      GRUB_DISABLE_SUBMENU=true
      GRUB_TERMINAL_OUTPUT="serial"
      GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,115200n8"
      GRUB_DISABLE_RECOVERY="true"
      GRUB_TERMINAL="serial console"
      GRUB_SERIAL_COMMAND="115200n8 serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"


      then run:



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


      as the result I could only get the output after "boot menu", not including the grub2.



      PS: I'm using COM2(ttyS1) not COM1(ttyS0)







      centos7 grub serial






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 50 mins ago









      mrcomrco

      1094




      1094






















          2 Answers
          2






          active

          oldest

          votes


















          2














          Your GRUB_SERIAL_COMMAND is specifying to use serial port 0, but you specifically said you wanted to use serial port 1.



          You specified --unit=0, which means serial port 0.



          You should instead use --unit=1, to use serial port 1.





          Also, your serial command begins with 115200n8 which is not valid and should not be present. It should instead start with serial.






          share|improve this answer
























          • I truly appreciate your timely help.

            – mrco
            20 mins ago



















          1














          If you only need the second one, simply change the --unit=0 into --unit=1.




          The serial unit 0 is usually called ‘COM1’, so, if you want to use COM2, you must specify ‘--unit=1’ instead. -- grub manual







          share|improve this answer
























          • I'm too young too simple,,,it works!!

            – mrco
            22 mins ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          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%2fserverfault.com%2fquestions%2f949919%2fcant-get-grub2-boot-menu-via-com2-port%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









          2














          Your GRUB_SERIAL_COMMAND is specifying to use serial port 0, but you specifically said you wanted to use serial port 1.



          You specified --unit=0, which means serial port 0.



          You should instead use --unit=1, to use serial port 1.





          Also, your serial command begins with 115200n8 which is not valid and should not be present. It should instead start with serial.






          share|improve this answer
























          • I truly appreciate your timely help.

            – mrco
            20 mins ago
















          2














          Your GRUB_SERIAL_COMMAND is specifying to use serial port 0, but you specifically said you wanted to use serial port 1.



          You specified --unit=0, which means serial port 0.



          You should instead use --unit=1, to use serial port 1.





          Also, your serial command begins with 115200n8 which is not valid and should not be present. It should instead start with serial.






          share|improve this answer
























          • I truly appreciate your timely help.

            – mrco
            20 mins ago














          2












          2








          2







          Your GRUB_SERIAL_COMMAND is specifying to use serial port 0, but you specifically said you wanted to use serial port 1.



          You specified --unit=0, which means serial port 0.



          You should instead use --unit=1, to use serial port 1.





          Also, your serial command begins with 115200n8 which is not valid and should not be present. It should instead start with serial.






          share|improve this answer













          Your GRUB_SERIAL_COMMAND is specifying to use serial port 0, but you specifically said you wanted to use serial port 1.



          You specified --unit=0, which means serial port 0.



          You should instead use --unit=1, to use serial port 1.





          Also, your serial command begins with 115200n8 which is not valid and should not be present. It should instead start with serial.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 26 mins ago









          Michael HamptonMichael Hampton

          166k26305625




          166k26305625













          • I truly appreciate your timely help.

            – mrco
            20 mins ago



















          • I truly appreciate your timely help.

            – mrco
            20 mins ago

















          I truly appreciate your timely help.

          – mrco
          20 mins ago





          I truly appreciate your timely help.

          – mrco
          20 mins ago













          1














          If you only need the second one, simply change the --unit=0 into --unit=1.




          The serial unit 0 is usually called ‘COM1’, so, if you want to use COM2, you must specify ‘--unit=1’ instead. -- grub manual







          share|improve this answer
























          • I'm too young too simple,,,it works!!

            – mrco
            22 mins ago
















          1














          If you only need the second one, simply change the --unit=0 into --unit=1.




          The serial unit 0 is usually called ‘COM1’, so, if you want to use COM2, you must specify ‘--unit=1’ instead. -- grub manual







          share|improve this answer
























          • I'm too young too simple,,,it works!!

            – mrco
            22 mins ago














          1












          1








          1







          If you only need the second one, simply change the --unit=0 into --unit=1.




          The serial unit 0 is usually called ‘COM1’, so, if you want to use COM2, you must specify ‘--unit=1’ instead. -- grub manual







          share|improve this answer













          If you only need the second one, simply change the --unit=0 into --unit=1.




          The serial unit 0 is usually called ‘COM1’, so, if you want to use COM2, you must specify ‘--unit=1’ instead. -- grub manual








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 24 mins ago









          anxanx

          1,4541719




          1,4541719













          • I'm too young too simple,,,it works!!

            – mrco
            22 mins ago



















          • I'm too young too simple,,,it works!!

            – mrco
            22 mins ago

















          I'm too young too simple,,,it works!!

          – mrco
          22 mins ago





          I'm too young too simple,,,it works!!

          – mrco
          22 mins ago


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Server Fault!


          • 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%2fserverfault.com%2fquestions%2f949919%2fcant-get-grub2-boot-menu-via-com2-port%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

          404 Error Contact Form 7 ajax form submitting

          How to know if a Active Directory user can login interactively

          Refactoring coordinates for Minecraft Pi buildings written in Python