Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-24-2012, 08:29 AM   #1
LQ Newbie
Registered: Sep 2012
Distribution: debian ubuntu
Posts: 10

Rep: Reputation: Disabled
Unhappy how to change runlevel of centOS

hello friends
i have changed runlevel of centos6.2 to 5 by editing /etc/inittab file
earliar it was 3

if i want to revert it i.e setting the runlevel back to 3 ?
how do i do that, the OS is taking a longer time to boot,infact jus progress bar comes and the complete screen of virt-viewer becomes blank their is no login prompt also

i have installed centOS6.2-i386 as virtual OS on ubuntu 12.04 desktop version
i m totally new to LINUX i did all the installation after searching on google
i dont have deep knowledge of linux
so please help me
Old 09-24-2012, 09:10 AM   #2
Registered: Jun 2012
Distribution: Centos 6 & Fluxbox
Posts: 86

Rep: Reputation: Disabled


There is a decent tutorial on installing Centos at

also regards run levels if you are using headless then the inittab run level should remain at 3, otherwise to run X server then run level 5 is required as at the link below

Both links cover petty comprehensively the setting up and running of a graphical Centos 6 box although with very minor modifications it can be headless/server

To set the runlevel back to 3 from 5 just
$sudo vi /etc/inittab and change to 3

Last edited by Terminator3000; 09-24-2012 at 09:13 AM.
Old 09-25-2012, 02:32 PM   #3
LQ Newbie
Registered: Sep 2012
Posts: 28

Rep: Reputation: Disabled
To enter into a different run level you want to edit /etc/inittab. Since you are not allowed to enter into OS you will not be allowed to edit this. But there is a solution.

Enter into grub menu by pressing any key while loading. Then click a to edit the kernel. Now enter 3 [after giving a blank space] at the end of the line and click enter. Now you can enter into the run level 3 and can set your default run level back to 3 using /etc/inittab.

You are not allowed to enter run level 5 is because you have not installed desktop package.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
initializing runlevel 5 from CentOS nathan.eder2004 Linux - General 4 12-30-2006 06:32 PM
cannot change to runlevel 3 nick623 Red Hat 2 07-18-2006 01:37 AM
Change RunLevel carlosinfl Debian 6 05-09-2006 08:00 PM
Change runlevel Quiber Linux - Software 1 01-11-2005 12:27 AM
how do i change my runlevel pguru Linux - Newbie 5 08-13-2004 02:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration