How to edit /etc/inittab?
Clash Royale CLAN TAG#URR8PPP
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
add a comment |
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
add a comment |
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
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
linux files vi gedit
asked Apr 6 '14 at 19:20
dempap
32521321
32521321
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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.
From your question it sounds like you weren't saving before exiting Vi. After you are done editing invi
you need to save changes, typically with an [Esc] thenw
(to write changes), you can combine withq
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
add a comment |
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.
add a comment |
You must also do # update-initramfs -u
, to my understanding, to have the changes take effect (on Debian Linux, anyway).
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
From your question it sounds like you weren't saving before exiting Vi. After you are done editing invi
you need to save changes, typically with an [Esc] thenw
(to write changes), you can combine withq
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
add a comment |
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.
From your question it sounds like you weren't saving before exiting Vi. After you are done editing invi
you need to save changes, typically with an [Esc] thenw
(to write changes), you can combine withq
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
add a comment |
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.
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.
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 invi
you need to save changes, typically with an [Esc] thenw
(to write changes), you can combine withq
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
add a comment |
From your question it sounds like you weren't saving before exiting Vi. After you are done editing invi
you need to save changes, typically with an [Esc] thenw
(to write changes), you can combine withq
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Apr 6 '14 at 19:28
Mathias
1385
1385
add a comment |
add a comment |
You must also do # update-initramfs -u
, to my understanding, to have the changes take effect (on Debian Linux, anyway).
add a comment |
You must also do # update-initramfs -u
, to my understanding, to have the changes take effect (on Debian Linux, anyway).
add a comment |
You must also do # update-initramfs -u
, to my understanding, to have the changes take effect (on Debian Linux, anyway).
You must also do # update-initramfs -u
, to my understanding, to have the changes take effect (on Debian Linux, anyway).
edited Dec 11 at 18:52
Jeff Schaller
38.4k1053125
38.4k1053125
answered Dec 11 at 18:01
jesse
112
112
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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