LinuxQuestions.org
Register a domain and help support LQ
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 10-20-2006, 10:22 PM   #1
Legolas327
Member
 
Registered: Apr 2006
Location: Atlanta, GA
Distribution: Ubuntu 9.10
Posts: 69

Rep: Reputation: 15
RunLevel lockups


I am on Fedora 5. No matter what I do I can't change runlevels without the system locking up? I am logged in as root user, I have tried going to run levels 1,2,3, or 4 and can't. I have removed services I thought were causing the hang ups. I am at a loss.

I need to get to a pure text environment so I can reload my Nvidia drivers which require NO GUI.

Please help me figure out why I can not change runlevels.

PS I used to do it all the time in SUSE 10 so I was surprized to see I am unable to with FC5??

Legolas
 
Old 10-21-2006, 01:50 AM   #2
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 249

Rep: Reputation: 36
I've never had that problem with run levels before. Have you tried editing inittab to get it to boot into level 3?
 
Old 10-21-2006, 03:50 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
I've had this problem before and the trick was to do something like CTRL-ALT-F8, CTRL-ALT-F1, login as root and then change the runlevel. I don't even know why that works, but it just did.
 
Old 10-22-2006, 08:52 PM   #4
Legolas327
Member
 
Registered: Apr 2006
Location: Atlanta, GA
Distribution: Ubuntu 9.10
Posts: 69

Original Poster
Rep: Reputation: 15
Unhappy

Galaxy_Stranger wrote
Code:
 Have you tried editing inittab to get it to boot into level 3?

[HTML]#
# 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.
pf:owerfail:/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:5nce:/etc/X11/prefdm -nodaemo[/HTML]

Looking at the current inittab file and it is set up for runlevel 5 as it should.. what should it look like for Run Level 3? What changes should I Make..I suspect that the few lines to change would be these two lines but I don't want to mess it up:

id:5:initdefault:

# Run xdm in runlevel 5
x:5: once:/etc/X11/prefdm -nodaemo


My guess would be:
1. change id:5:initdefault: to id:3:initdefault:
2. And to line out the (x:5: once:/etc/X11/prefdm -nodaemo) with
(# x:5 once:/etc/X11/prefdm -nodaemo)

Reddazz wrote:
Code:
 	I've had this problem before and the trick was to do something like CTRL-ALT-F8, CTRL-ALT-F1, login as root and then change the runlevel. I don't even know why that works, but it just did.
Can you elaborate on when you did this?

I just find it really strange that of all the thousands of FC5 users, that I would have this problem ahhhggg! There is really nothing special or different from about my system.

Thanks for the help
 
Old 10-22-2006, 09:17 PM   #5
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 249

Rep: Reputation: 36
asdfasdf

Code:
change id:5:initdefault: to id:3:initdefault:
Exactly.
 
Old 10-22-2006, 10:33 PM   #6
Legolas327
Member
 
Registered: Apr 2006
Location: Atlanta, GA
Distribution: Ubuntu 9.10
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks I'll give it a try and see
 
Old 10-23-2006, 02:45 AM   #7
brokenmaize
LQ Newbie
 
Registered: Oct 2006
Posts: 22

Rep: Reputation: 15
Re:run_levels

Hi,

There is anotehr simple work around to the problem. On start uop press and hold down the {A} key when your boot loader is dsiplayed. This will give you a CLI, then type init 3, log into your system, and start the GUI with the start x command.
 
  


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
What's the difference between runlevel 2 and runlevel 5 in Debian? davidas Linux - Newbie 2 01-05-2012 02:10 PM
Soun Mixer absent in Runlevel 3 but present in Runlevel 5 debloxie SUSE / openSUSE 1 01-18-2006 10:15 AM
Lockups... IcoNyx Fedora 5 11-24-2005 08:06 AM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 07:24 AM
X lockups jtshaw Slackware 1 04-28-2003 01:04 AM


All times are GMT -5. The time now is 04:23 PM.

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