No Account Yet?

You are not logged in.

Add to: JBookmarks Add to: Facebook Add to: Windows Live Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Blogmarks Add to: Technorati Add to: Newsvine Add to: Google Information
Run Levels In Linux E-mail
Linux HowTo's - Beginner Linux HowTo's
Written by Tim Inkpen   
Saturday, 07 June 2008 09:38

RUN LEVELS

 

Background

-Linux can boot into various configurations (much like with what you get with Windows when hitting F8 while booting)

-Linux has 6 boot levels but outside of specialized situations, only levels 3 & 5 are useful

-Runlevel 3 boots to a command prompt –this is the default Runlevel for most servers

-Runlevel 5 boots to a GUI interface similar to Windows – this is the default Runlevel for most workstations

 

Linux RunLevel Chart

 

Runlevels

Number

Name

Login

Network

Filesystems

0

Halt

 

 

 

1

Single user
(Very Useful for Troubleshooting)

Textual

Down

Mounted

2

Multiuser without NFS
(Network File System)

Textual

Up (partially)

Mounted

3

Multiuser

(Standard boot level for servers) 

Textual

Up

Mounted

4

User defined

 

 

 

5

Multiuser with X Windows/GUI

(Standard boot level for desktops) 

Graphical

Up

Mounted

6

Reboot

 

 

 

 

 

 

How to change a Run Level

1. Make sure you are logged in as root

2. init runlevel 
            i.e.

init 6

reboot the system

 

How to change The Default Run Level

NOTE:  Be VERY care with this – DO NOT set your run levels to 6 (forever rebooting) or 0 (your machine halts every time you try and start it.

 

Steps:

1. vi /etc/inittab

2. Look for a line the ends with initdefault i.e.:

            id:3:initdefault:

3. Change the number. Unless you are troubleshooting you should only use a value of 3 or 5 in this line

4. Save

5. Reboot system to test.

 

Comments
Search RSS
Only registered users can write comments!

3.22 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Saturday, 07 June 2008 17:15 )