[CentOS] /etc/inittab

Warren Young warren at etr-usa.com
Tue Nov 5 22:24:28 UTC 2013


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.



More information about the CentOS mailing list