How to edit /etc/inittab?

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












3














I want to edit /etc/inittab in order to get a login prompt on the serial console once the system boots. By default, inittab file complains to be ro.



I tried both gksudo gedit /etc/inittab and sudo vi /etc/inittab and seemed to be properly configured. However, when I opened file after that with gedit, I saw no difference.



Any ideas?










share|improve this question


























    3














    I want to edit /etc/inittab in order to get a login prompt on the serial console once the system boots. By default, inittab file complains to be ro.



    I tried both gksudo gedit /etc/inittab and sudo vi /etc/inittab and seemed to be properly configured. However, when I opened file after that with gedit, I saw no difference.



    Any ideas?










    share|improve this question
























      3












      3








      3







      I want to edit /etc/inittab in order to get a login prompt on the serial console once the system boots. By default, inittab file complains to be ro.



      I tried both gksudo gedit /etc/inittab and sudo vi /etc/inittab and seemed to be properly configured. However, when I opened file after that with gedit, I saw no difference.



      Any ideas?










      share|improve this question













      I want to edit /etc/inittab in order to get a login prompt on the serial console once the system boots. By default, inittab file complains to be ro.



      I tried both gksudo gedit /etc/inittab and sudo vi /etc/inittab and seemed to be properly configured. However, when I opened file after that with gedit, I saw no difference.



      Any ideas?







      linux files vi gedit






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 6 '14 at 19:20









      dempap

      32521321




      32521321




















          3 Answers
          3






          active

          oldest

          votes


















          2














          Try this: Open terminal, then type su and type your root user password. After this:



          vi /etc/inittab


          In my case this works but I'm using CentOS.






          share|improve this answer






















          • From your question it sounds like you weren't saving before exiting Vi. After you are done editing in vi you need to save changes, typically with an [Esc] then w (to write changes), you can combine with q as follows: wq! (write, quit, and ! means don't confirm).
            – LawrenceC
            Apr 6 '14 at 20:13










          • Yes, after changes you should type: wq :)
            – user30376
            Apr 6 '14 at 20:18


















          2














          Since you want a serial console, I suppose your using some embedded device. So I guess the partition /etc/inittab is on is mounted read only.



          You'd have to remount the partition writable.



          Use mount without arguments to figure out what partition the file is on and use something like mount -o remount,rw /etc/ to remount it writable.






          share|improve this answer




























            0














            You must also do # update-initramfs -u, to my understanding, to have the changes take effect (on Debian Linux, anyway).






            share|improve this answer






















              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              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: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              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%2funix.stackexchange.com%2fquestions%2f123422%2fhow-to-edit-etc-inittab%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









              2














              Try this: Open terminal, then type su and type your root user password. After this:



              vi /etc/inittab


              In my case this works but I'm using CentOS.






              share|improve this answer






















              • From your question it sounds like you weren't saving before exiting Vi. After you are done editing in vi you need to save changes, typically with an [Esc] then w (to write changes), you can combine with q as follows: wq! (write, quit, and ! means don't confirm).
                – LawrenceC
                Apr 6 '14 at 20:13










              • Yes, after changes you should type: wq :)
                – user30376
                Apr 6 '14 at 20:18















              2














              Try this: Open terminal, then type su and type your root user password. After this:



              vi /etc/inittab


              In my case this works but I'm using CentOS.






              share|improve this answer






















              • From your question it sounds like you weren't saving before exiting Vi. After you are done editing in vi you need to save changes, typically with an [Esc] then w (to write changes), you can combine with q as follows: wq! (write, quit, and ! means don't confirm).
                – LawrenceC
                Apr 6 '14 at 20:13










              • Yes, after changes you should type: wq :)
                – user30376
                Apr 6 '14 at 20:18













              2












              2








              2






              Try this: Open terminal, then type su and type your root user password. After this:



              vi /etc/inittab


              In my case this works but I'm using CentOS.






              share|improve this answer














              Try this: Open terminal, then type su and type your root user password. After this:



              vi /etc/inittab


              In my case this works but I'm using CentOS.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 6 '14 at 21:07









              slm

              246k66507673




              246k66507673










              answered Apr 6 '14 at 19:23







              user30376


















              • From your question it sounds like you weren't saving before exiting Vi. After you are done editing in vi you need to save changes, typically with an [Esc] then w (to write changes), you can combine with q as follows: wq! (write, quit, and ! means don't confirm).
                – LawrenceC
                Apr 6 '14 at 20:13










              • Yes, after changes you should type: wq :)
                – user30376
                Apr 6 '14 at 20:18
















              • From your question it sounds like you weren't saving before exiting Vi. After you are done editing in vi you need to save changes, typically with an [Esc] then w (to write changes), you can combine with q as follows: wq! (write, quit, and ! means don't confirm).
                – LawrenceC
                Apr 6 '14 at 20:13










              • Yes, after changes you should type: wq :)
                – user30376
                Apr 6 '14 at 20:18















              From your question it sounds like you weren't saving before exiting Vi. After you are done editing in vi you need to save changes, typically with an [Esc] then w (to write changes), you can combine with q as follows: wq! (write, quit, and ! means don't confirm).
              – LawrenceC
              Apr 6 '14 at 20:13




              From your question it sounds like you weren't saving before exiting Vi. After you are done editing in vi you need to save changes, typically with an [Esc] then w (to write changes), you can combine with q as follows: wq! (write, quit, and ! means don't confirm).
              – LawrenceC
              Apr 6 '14 at 20:13












              Yes, after changes you should type: wq :)
              – user30376
              Apr 6 '14 at 20:18




              Yes, after changes you should type: wq :)
              – user30376
              Apr 6 '14 at 20:18













              2














              Since you want a serial console, I suppose your using some embedded device. So I guess the partition /etc/inittab is on is mounted read only.



              You'd have to remount the partition writable.



              Use mount without arguments to figure out what partition the file is on and use something like mount -o remount,rw /etc/ to remount it writable.






              share|improve this answer

























                2














                Since you want a serial console, I suppose your using some embedded device. So I guess the partition /etc/inittab is on is mounted read only.



                You'd have to remount the partition writable.



                Use mount without arguments to figure out what partition the file is on and use something like mount -o remount,rw /etc/ to remount it writable.






                share|improve this answer























                  2












                  2








                  2






                  Since you want a serial console, I suppose your using some embedded device. So I guess the partition /etc/inittab is on is mounted read only.



                  You'd have to remount the partition writable.



                  Use mount without arguments to figure out what partition the file is on and use something like mount -o remount,rw /etc/ to remount it writable.






                  share|improve this answer












                  Since you want a serial console, I suppose your using some embedded device. So I guess the partition /etc/inittab is on is mounted read only.



                  You'd have to remount the partition writable.



                  Use mount without arguments to figure out what partition the file is on and use something like mount -o remount,rw /etc/ to remount it writable.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 6 '14 at 19:28









                  Mathias

                  1385




                  1385





















                      0














                      You must also do # update-initramfs -u, to my understanding, to have the changes take effect (on Debian Linux, anyway).






                      share|improve this answer



























                        0














                        You must also do # update-initramfs -u, to my understanding, to have the changes take effect (on Debian Linux, anyway).






                        share|improve this answer

























                          0












                          0








                          0






                          You must also do # update-initramfs -u, to my understanding, to have the changes take effect (on Debian Linux, anyway).






                          share|improve this answer














                          You must also do # update-initramfs -u, to my understanding, to have the changes take effect (on Debian Linux, anyway).







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Dec 11 at 18:52









                          Jeff Schaller

                          38.4k1053125




                          38.4k1053125










                          answered Dec 11 at 18:01









                          jesse

                          112




                          112



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • 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.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • 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%2funix.stackexchange.com%2fquestions%2f123422%2fhow-to-edit-etc-inittab%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?