Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd February 2010, 08:14 PM
k31s3r Offline
Registered User
 
Join Date: Mar 2007
Location: Brazil
Posts: 8
windows_xp_2003ie
cannot get back automatically to runlevel 5

Hello,
running 64-bit Fedora 10 with original installation runlevel being 5.

So, there was this need for working with runlevel 3 for some days, then I've edited "/etc/inittab", changing line

id:5:initdefault:

for line

id:3:initdefault:

and the system went well, restarting automatically on runlevel 3.

Now it needs to restore its original runlevel, that is 5.

I've edited "/etc/inittab" to its original state but the system keeps starting on runlevel 3.

Also, I've tried

# init 5

and

# telinit 5

both commands load X and the login screen but then when it restarts, it gets back to runlevel 3.

What can be done to get this system back to runlevel 5, automatically, during its INIT process?
Reply With Quote
  #2  
Old 3rd February 2010, 08:23 PM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,109
linuxfedorafirefox
Check for typos. If you don't see any, post /etc/inittab here.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #3  
Old 3rd February 2010, 08:54 PM
k31s3r Offline
Registered User
 
Join Date: Mar 2007
Location: Brazil
Posts: 8
linuxfedoramozilla
Apparently, there are no typos.
Here's the file's content:


Code:
# id:3:initdefault:
id:5:initdefault:

# protecao do modo single-user atraves da execucao de sulogin
~~:S:wait:/sbin/sulogin

# 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

pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/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:5:once:/etc/X11/prefdm -nodaemon
Reply With Quote
  #4  
Old 3rd February 2010, 09:11 PM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,109
linuxfedorafirefox
That doesn't look like any inittab I've ever seen. In general, there's only one line in it that's not a comment, and that's the last line, which sets the default runlevel.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #5  
Old 3rd February 2010, 11:59 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,128
linuxfedorafirefox
I think I had a similar issue some time back, like in FC6. I think just removing the line:

# id:3:initdefault:

might fix the issue. If my memory serves me even half well, I left in a commented id:x:initdefault line once and it messed things up. Deleting it put things right again.
Reply With Quote
  #6  
Old 4th February 2010, 05:15 PM
k31s3r Offline
Registered User
 
Join Date: Mar 2007
Location: Brazil
Posts: 8
linuxfedoramozilla
solved

Thank you, Pablo. You are so correct. And I wonder why.

Why a commented line screws the whole thing?

Last edited by k31s3r; 4th February 2010 at 05:20 PM. Reason: Punctuation correction.
Reply With Quote
  #7  
Old 4th February 2010, 05:24 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,128
linuxfedorafirefox
Quote:
Originally Posted by k31s3r View Post
Thank you, Pablo. You are so correct. And I wonder why?

Why a commented line screws the whole thing?
That was a head scratching puzzlement to me when it happened to me. It still is now. I have no idea why, but it seems that the fstab file ignores all comment lines (#) except if followed by the id:x:initdefault: statement. Go figure.
Reply With Quote
Reply

Tags
automatically, runlevel

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automout in runlevel 3 <> automount in runlevel 5 ? phe Installation and Live Media 5 22nd October 2008 07:35 PM
How to automatically detect USB drives when booting in runlevel 3?? hlandres Using Fedora 1 6th September 2008 06:14 AM
Problem switching from runlevel 5 to runlevel 3 Master Blaster Using Fedora 1 31st May 2008 03:40 AM
Best way to automatically back up critical information? schwim Using Fedora 18 20th July 2006 02:46 PM


Current GMT-time: 05:25 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat