LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-01-2009, 03:55 PM   #1
dbacore
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
/etc/inittab problem


Hi,

I would like to start system at default in text mode. I changed the default init to 3 (was 5) but the system is starting in graphical mode.

Should I change something more ?
 
Old 09-01-2009, 04:03 PM   #2
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
Which distro?

Can you show the lines in /etc/inittab that resemble:

# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:

Do you have anything like kdm/gdm/xdm/startx in rc.local?

-Bob
 
Old 09-01-2009, 06:44 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Tell us which version of Linux (which distro, short for distribution) you are using and post or attach the output from
Code:
/bin/ls -l /etc/rc[S0-6].d
 
Old 09-02-2009, 09:00 AM   #4
dbacore
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry I should provide this output first:

/etc/inittab/
------------------------------------------------------------------------

id:3:initdefault:


# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

pr:12345owerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
x:3:respawn:/etc/X11/prefdm -nodaemon
---------------------------------------------------------------------------------


[root@oelinux ~]# ls -l /etc/rc[S0-6].d

lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc0.d -> rc.d/rc0.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc1.d -> rc.d/rc1.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc2.d -> rc.d/rc2.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc3.d -> rc.d/rc3.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc4.d -> rc.d/rc4.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc5.d -> rc.d/rc5.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc6.d -> rc.d/rc6.d

[root@oelinux ~]# uname -a
Linux oelinux 2.6.18-92.el5 #1 SMP Fri May 23 22:17:30 EDT 2008 i686 i686 i386 GNU/Linux

cat /etc/redhat-release
Enterprise Linux Enterprise Linux Server release 5 (Carthage)
 
Old 09-02-2009, 02:00 PM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by dbacore View Post
[root@oelinux ~]# ls -l /etc/rc[S0-6].d

lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc0.d -> rc.d/rc0.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc1.d -> rc.d/rc1.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc2.d -> rc.d/rc2.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc3.d -> rc.d/rc3.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc4.d -> rc.d/rc4.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc5.d -> rc.d/rc5.d
lrwxrwxrwx 1 root root 10 Aug 31 17:26 /etc/rc6.d -> rc.d/rc6.d
Ah, RHEL! Then please post the output of
Code:
/bin/ls -l /etc/rc.d/rc[0-6].d
 
Old 09-02-2009, 07:41 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
It's this line
Code:
# Run xdm in runlevel 5
x:3:respawn:/etc/X11/prefdm -nodaemon
the hint is in the comment. Someone has put a 3 where it should be a 5. This is actually the line that determines what level X starts up. The initdef line defines default startup init level.
 
Old 09-03-2009, 06:19 AM   #7
dbacore
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
It's this line
Code:
# Run xdm in runlevel 5
x:3:respawn:/etc/X11/prefdm -nodaemon
the hint is in the comment. Someone has put a 3 where it should be a 5. This is actually the line that determines what level X starts up. The initdef line defines default startup init level.
You were right it should be 5. This hs solved the problem.
 
  


Reply


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
Problem monitoring JRun 4 processes via inittab (respawning too fast) - RHEL3 U4 jdaniels73 Linux - Software 3 08-09-2006 09:37 AM
inittab problem petenyce Linux - Newbie 1 10-11-2005 01:56 PM
I broke it. Freezes after loading everything. (/etc/inittab problem) sarysa Linux - Newbie 2 09-11-2005 01:00 AM
Kernel panic+/etc/inittab recover problem sujith_marar Linux - Newbie 3 07-16-2004 10:51 AM
weird /etc/inittab /etc/hosts problem in Gnome scobapro Linux - Software 7 04-17-2002 01:31 AM


All times are GMT -5. The time now is 04:33 AM.

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