LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2003, 11:37 AM   #1
ukch
LQ Newbie
 
Registered: May 2003
Location: Croydon, UK
Distribution: Ubuntu / LinuxFromScratch
Posts: 19
Blog Entries: 2

Rep: Reputation: 0
INIT: Single user mode on startup


Does anyone have any idea how to get init to start off in single user mode?

I tried changing the 'default runlevel' (init config file - forgotten the filename) to S, and it seemed to work, but then I couldn't get normal startup if I wanted. Any ideas?
 
Old 05-31-2003, 11:44 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The best way is to create a secont bootloader entry with "single" or "1" appended to your kernel arguments.

This way you can choose on boot.

Note that doing this is a bit of a security risk and stops the bootloader password from being any use.
 
Old 05-31-2003, 11:55 AM   #3
ukch
LQ Newbie
 
Registered: May 2003
Location: Croydon, UK
Distribution: Ubuntu / LinuxFromScratch
Posts: 19

Original Poster
Blog Entries: 2

Rep: Reputation: 0
So I would just add 'single' to lilo.conf and it'll change it?

Or do I need to do more?
 
Old 05-31-2003, 12:04 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
yes to the kernel arguments
 
Old 05-31-2003, 02:01 PM   #5
core
Member
 
Registered: May 2003
Location: Berlin
Distribution: Slackware 9.1 Kernel: 2.6.4
Posts: 60

Rep: Reputation: 15
Quote:
Originally posted by ukch
So I would just add 'single' to lilo.conf and it'll change it?

Or do I need to do more?
No!

you need more

f.e. this is a part of my lilo.conf
## Normal linux startup with X
image=/boot/vmlinuz
label="linux"
root=/dev/hdb5
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi acpi=off"
read-only

## entering single user mode
image=/boot/vmlinuz
label="linux_1"
root=/dev/hdb5
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi acpi=off 1"
read-only


note the only real difference is the 1 in the append line .. this selects the runlevel

greetings
 
  


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
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
RedHat 9 SIngle-User Mode sangjin Linux - Newbie 2 08-25-2003 10:37 AM
single user mode ? wr3ck3d Slackware 5 03-29-2003 09:52 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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