LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-19-2016, 09:43 AM   #1
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Setting runlevel at boot time or how to escape level 4 if X locks up the machine


Hi,

I've been wondering about it for some time.
Assume my inittab is set by default to runlevel 4.
Now if X locks up the machine continually, how can I escape the situation?
Is it possible to override inittab's runlevel, e.g. by kernel command line parameter?
Or somehow stop the booting process at text console's login prompt?

Thanks in advance!

--
Best regards,
Andrzej Telszewski
 
Old 04-19-2016, 09:59 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Ctrl+Alt+F2 should drop you back to Bash.
 
Old 04-19-2016, 09:59 AM   #3
slacker1337
Member
 
Registered: Jun 2012
Location: Connecticut, USA
Distribution: Slackware
Posts: 148

Rep: Reputation: 40
I would recommend restoring your default run level to 3. In /etc/inittab -
Replace this:
Code:
id:4:initdefault:
With this:
Code:
id:3:initdefault:
You can change your run level now by just typing
Code:
init 3
 
1 members found this post helpful.
Old 04-19-2016, 10:07 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by atelszewski View Post
Is it possible to override inittab's runlevel, e.g. by kernel command line parameter?
if you are booting a kernel called Linux, to boot in init 3 you can type at the lilo prompt
Code:
Linux init 3
EDIT: ops, it's like allend writes below, you don't need the "init" string.

Last edited by ponce; 04-19-2016 at 10:23 AM.
 
Old 04-19-2016, 10:08 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
Is it possible to override inittab's runlevel, e.g. by kernel command line parameter?
If you boot using lilo, at the initial login hit Tab and then add ' 3' (note that is [space]3) to the kernel parameters to boot to run level 3.
Quote:
Now if X locks up the machine continually, how can I escape the situation?
If X hangs, try Ctrl-Alt-Backspace to kill X.

Last edited by allend; 04-19-2016 at 10:11 AM.
 
Old 04-19-2016, 10:24 AM   #6
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
add ' 3' (note that is [space]3) to the kernel parameters
That was exactly what I needed! Works perfectly. Thanks!

BTW, I'm using syslinux and when I said "X locks up the machine" I meant it locks up the machine to the point where it is locked up

--
Best regards,
Andrzej Telszewski
 
Old 04-19-2016, 10:35 AM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
and when I said "X locks up the machine" I meant it locks up the machine to the point where it is locked up
That is why I said "try"
I know you are struggling with Skylake technology. Good luck! The community will benefit from your efforts. Thankyou.

Last edited by allend; 04-19-2016 at 10:36 AM.
 
Old 04-19-2016, 10:55 AM   #8
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by allend View Post
I know you are struggling with Skylake technology.
Err, not exactly I'm on Broadwell, but I'm testing Intel driver whenever I can and try to output something meaningful

Anyway, knowing how to change the runlevel from bootloader might come handy anytime

--
Best regards,
Andrzej Telszewski
 
Old 04-19-2016, 11:18 AM   #9
archfan
Member
 
Registered: Mar 2016
Location: /dev/hug
Distribution: Slackware 14.2 x64
Posts: 85

Rep: Reputation: 32
(Remove this post please.)
 
Old 04-19-2016, 03:17 PM   #10
mscole
Member
 
Registered: Nov 2004
Location: Florida
Distribution: Slackware 15
Posts: 129

Rep: Reputation: 24
I never boot directly into runlevel 4, I don't see the benefit. It is very easy to type startx and press enter.
Mike.
 
Old 04-19-2016, 04:08 PM   #11
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by mscole View Post
I never boot directly into runlevel 4, I don't see the benefit. It is very easy to type startx and press enter.
Mike.
What suits you, might not suit others, and vice versa. You're free to do it your way.

--
Best regards,
Andrzej Telszewski
 
1 members found this post helpful.
Old 04-19-2016, 04:27 PM   #12
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
I have been stuck like this too many times. Now I just boot to the command line and use startx
 
Old 04-19-2016, 04:41 PM   #13
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Now I know how to override inittab's runlevel, so I'm safe with having it at 4

--
Best regards,
Andrzej Telszewski
 
  


Reply



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
system boot in runlevel 1instad of runlevel 5 anil98433 Linux - Server 4 11-21-2013 02:33 AM
Occasional CPU processing gap caused by kernel level locks? friendychen01 Linux - Kernel 0 09-15-2009 02:50 AM
squid running on boot time with the debug level (-d 1) pujakofriendly Slackware 5 12-02-2006 07:32 AM
squid running on boot time with the debug level (-d 1) pujakofriendly Linux - Networking 0 10-21-2006 11:05 AM
First time user can't get linux to boot. Locks on ETH0 DGath Linux - Newbie 10 06-29-2003 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:46 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
Open Source Consulting | Domain Registration