LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-15-2004, 11:39 PM   #1
Sailaja Reddy
LQ Newbie
 
Registered: Jul 2004
Location: INDIA
Posts: 14

Rep: Reputation: 0
Redhat linux9.0:System hangs,if gives init 3 or init 4


Hi All,

I have redhat linux 9.0 with compiled kernel 2.6.7 (default was 2.4.20-8).
Currently it is running in runlevel 5. Output of "runlevel" command is "n 5".

System is hanging, when I try to run in level 3 (init 3) or level 4(init 4). Unable to get control, some number is printing continuously in the terminal.

Why my system is hanging?
Am I missing some thing?

I am completely strucked up and any info on this would be GREATLY APPRECIATED..

Output of my /etc/inittab:
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

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

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

# When our UPS tells us power has failed, assume we have a few minutes
# of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pfwerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345owerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
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:2345:respawn:/etc/X11/prefdm -nodaemon


Thanks & Regards,
 
Old 09-15-2004, 11:46 PM   #2
subhasis_ray
Member
 
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Rep: Reputation: 16
Hi Sailaja,

Have you tried doing the same thing with the default kernel? Try that and see if u get the same problem.
Looks like an issue with the 2.6 kernel, although I am not sure.

Cheers

Subhasis
 
Old 09-16-2004, 12:44 AM   #3
Sailaja Reddy
LQ Newbie
 
Registered: Jul 2004
Location: INDIA
Posts: 14

Original Poster
Rep: Reputation: 0
Hi Subhasis,

Thanks for the reply.

Yes, I even tried with redhat linux 9.0 with default (inbuilt) kernel: 2.4.20-8.
The same problem is coming.

I am just wondering, whether I missed out some options at the time of installation?

Regards,
Sailaja
 
Old 09-16-2004, 02:24 AM   #4
Sailaja Reddy
LQ Newbie
 
Registered: Jul 2004
Location: INDIA
Posts: 14

Original Poster
Rep: Reputation: 0
Update..........

In both the cases, with default kernel and upgraded kernel. The following thing works:
- In level 5
- init 3
- System kind of hangs (mouse works properly, not able to get the control of keyboard). Some number is printing continuosly in the terminal
- Ctl + ALt + F1 (going to text mode)
- Ctl + Alt + F7 (back to GUI)
- Control comes back and it is actually in level 3 and everything starts working.

It solved the problem of changing runlevels.

Is there any patch to avoid doing Ctl + ALt + F1 and Ctl + Alt + F7?
Having xdm. Is this the problem with GUI?

Thanks,
 
Old 09-16-2004, 03:19 AM   #5
subhasis_ray
Member
 
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Rep: Reputation: 16
looks like something to do with the keyboard driver..... not sure. I have a optical mouse(samsung) and in CUI the thing never works..... does something similar to what u r reporting. is your keyboard a normal ps2 one or something different?

-Subhasis
 
  


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
'init 3' , 'init 5' -- is this only RedHat Related? beeblequix Linux - Newbie 3 10-20-2005 07:40 PM
init 3 hangs jobless_joe Linux - Software 2 02-14-2005 05:38 PM
System hangs,if gives init 3 or init 4 Sailaja Reddy Red Hat 1 09-20-2004 01:31 AM
Kernal Panic: No init found. Try passing init= option to kernel raees Linux - General 12 03-18-2004 11:10 PM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 10:18 PM


All times are GMT -5. The time now is 01:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration