Can't get grub2 boot menu via COM2 port

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












4















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


























    4















    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
























      4












      4








      4








      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 Jan 20 at 5:24









      mrcomrco

      1244




      1244




















          2 Answers
          2






          active

          oldest

          votes


















          4














          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
            Jan 20 at 5:53


















          3














          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
            Jan 20 at 5:52










          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









          4














          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
            Jan 20 at 5:53















          4














          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
            Jan 20 at 5:53













          4












          4








          4







          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 Jan 20 at 5:48









          Michael HamptonMichael Hampton

          168k27307629




          168k27307629












          • I truly appreciate your timely help.

            – mrco
            Jan 20 at 5:53

















          • I truly appreciate your timely help.

            – mrco
            Jan 20 at 5:53
















          I truly appreciate your timely help.

          – mrco
          Jan 20 at 5:53





          I truly appreciate your timely help.

          – mrco
          Jan 20 at 5:53













          3














          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
            Jan 20 at 5:52















          3














          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
            Jan 20 at 5:52













          3












          3








          3







          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 Jan 20 at 5:50









          anxanx

          1,5821720




          1,5821720












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

            – mrco
            Jan 20 at 5:52

















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

            – mrco
            Jan 20 at 5:52
















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

          – mrco
          Jan 20 at 5:52





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

          – mrco
          Jan 20 at 5:52

















          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

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?