[CentOS] /etc/inittab

Wes James comptekki at gmail.com
Tue Nov 5 22:27:21 UTC 2013


On Tue, Nov 5, 2013 at 3:24 PM, Warren Young <warren at etr-usa.com> wrote:

> On 11/5/2013 15:10, Wes James wrote:
> > I noticed in /etc/inittab that it has this line:
> >
> > #   0 - halt (Do NOT set initdefault to this)
> >
> > It makes sense, but what if it did get set to 0 or 6?  Is there a way to
> > boot to single-user mode anyway to edit the file and change it to a
> correct
> > value?
>
> Yes: http://www.cyberciti.biz/faq/grub-boot-into-single-user-mode/
>
> I found out the easy way: by trying it in a VM.  You should have a VM
> set up for testing, too.  Set a snapshot before you do anything
> dangerous, so you can revert to it.
>

That's a good idea.  Thanks for the VM suggestion and link.

-wes



More information about the CentOS mailing list