LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 04-06-2004, 09:48 AM   #1
rsamurti
Member
 
Registered: Dec 2003
Location: Mysore
Distribution: Mandrake, Libranet, Slackware
Posts: 101

Rep: Reputation: 15
How to boot in single-user mode in Slackware 9.1


Can anybody guide me how to boot in single-user mode in Slackware 9.1?

Thanks for your help.

Anand
 
Old 04-06-2004, 11:10 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,766

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
After login type <init 1> to enter single user mode.
 
Old 04-06-2004, 11:20 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Your default runlevel can be found/set in /etc/inittab, and looks something like this:

# default runlevel
id:3:initdefault:


In the above example, the machine will boot into RL3. Changing this to 1 (id:1:initdefault: ) will boot your machine to RL1 (which is single user mode).

The drawback is that your machine will always boot to the given RL.

You can do the following to (temporary) change runlevels.

As root:

$ init 1

This will not reboot your machine, but will change from your current runlevel to runlevel 1 (single user mode).

To go back to your default setting:

$ init 3 3 could be 5 for you, check your /etc/inittab.

init recognizes the following parameters:
0 is System halt (Do never use this for initdefault)
1 is Single user mode
2 is Local multiuser without remote network (e.g. NFS)
3 is Full multiuser with network
4 is Not used (although some distro's do use 4 instead of 5 for xdm)
5 is Full multiuser with network and xdm
6 is System reboot (Do never use this for initdefault)

Not all parameters are listed here, take a look at man init for more detailed info and all options.

Hope this helps.
 
Old 04-06-2004, 12:26 PM   #4
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
druuna,

You are right... some distros do use run level 4 for xdm/gdm/kdm (IOW full graphical interface) such a distro is SLACKWARE. This is a Slackware based thread...

Taken right from the inittab file on a slackware box...

# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot



Last edited by slackMeUp; 04-06-2004 at 12:28 PM.
 
Old 04-06-2004, 01:47 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
@slackMeUp

This is strange, I did the same thing. The copy/paste in my previuous thread is from a box running slack (9.1).

Must have edited it, although I cannot remember I did (and lokking at the timestamp, I didn't 1400 Apr 12 2003 /etc/inittab).

But this is what the slack-boys (and girls) have to say about it:

rc.0 Halt the system (runlevel 0). By default, this is symlinked to rc.6.
rc.4 Multiuser startup (runlevel 4), but in X11 with KDM, GDM, or XDM as the login manager.
rc.6 Reboot the system (runlevel 6).
rc.K Startup in single user mode (runlevel 1).
rc.M Multiuser mode (runlevel 2 and 3), but with the standard text-based login. This is the default runlevel in Slackware.

So you are correct. Slack uses rl4 for graphical logins.
 
Old 04-07-2004, 02:13 AM   #6
rsamurti
Member
 
Registered: Dec 2003
Location: Mysore
Distribution: Mandrake, Libranet, Slackware
Posts: 101

Original Poster
Rep: Reputation: 15
But how do I boot in single user mode from LILO?
 
Old 04-07-2004, 11:44 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
You add single to the end of the LILO bootprompt

Example:

Linux - Linux (Linux native partition)

boot: <your selection> single


Hope this helps.
 
Old 05-13-2004, 06:50 AM   #8
freeto
LQ Newbie
 
Registered: May 2004
Location: uk
Posts: 2

Rep: Reputation: 0
Does this ring true when booting from a floppy using SYSLINUX 1.67?
Would I type:
boot: 4 single



'Life is a spiritual pickle'
=Ambrose Bierce
 
Old 05-13-2004, 04:03 PM   #9
semesm
LQ Newbie
 
Registered: May 2004
Distribution: redhat 9
Posts: 10

Rep: Reputation: 0
thanks
 
  


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
How to boot RO && Single User Mode to test hdparm ??? skouket Slackware 5 06-21-2005 07:29 AM
How do you boot in to single user mode in knoppix? Thaidog Linux - General 1 05-16-2005 01:42 PM
single user mode... navaladi Mandriva 2 12-26-2004 02:41 AM
single-user mode can't boot eye Red Hat 1 11-19-2003 04:08 AM
grub boot loader and single user mode midnightcommander Linux - General 1 04-02-2001 04:12 AM


All times are GMT -5. The time now is 05:03 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