LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-25-2005, 08:43 PM   #1
player_2
Member
 
Registered: Aug 2003
Posts: 57

Rep: Reputation: 15
Single-user not working/hanging


I'm customizing Slax-Frodo to be used as a WinXP system recovery tool -- basically I want to install it on a partition and have it automatically launch partimage so I can back up/restore my NTFS partition. Therefore, I want to boot into single-user mode so I don't need to bother logging in as root. Unfortunately, changing the default runlevel to 1 and specifying "single" in the kernel parameters in GRUB doesn't work. The system boots, goes single-user, and at the end brings up a login prompt and hangs. I can't type anything into the terminal, not even a Ctrl+Alt+Del.

Now, I only have a USB keyboard, so could the fact that going single-user kills all processes make it seem like the machine has hung? And why is it bringing up a login prompt -- I thought that single-user mode was supposed to immediately dump me at a root shell?
 
Old 08-25-2005, 09:22 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
It is possible to password protect your single user mode -- check your /etc/inittab (I think it's one of the options in there). Also check that the necessary kernel modules to handle your USB keyboards are being loaded -- sounds like they aren't.
 
Old 08-25-2005, 10:16 PM   #3
player_2
Member
 
Registered: Aug 2003
Posts: 57

Original Poster
Rep: Reputation: 15
Well, I tried adding the call to /etc/rc.d/rc.hotplug to /etc/rc.d/rc.K, right before the call to "telinit -t 1 1". I got a whole host of "Operation not permitted" errors, and it hung at the login screen again.

I still don't understand how runlevel 1 works. Why would /etc/rc.d/rc.K need to call telinit to change the runlevel to 1 if rc.K is called in response to the runlevel changing to 1? Or does the runlevel change to S, which I've seen all over the Internet? If so then why is rc.K set to respond to a change to runlevel 1 in /etc/inittab? SO CONFUSING.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disconnecting a single user now!!! rsharpypoo Linux - Security 2 03-02-2005 07:09 AM
single user mode... navaladi Mandriva 2 12-26-2004 02:41 AM
X11 terminals not working as single-user jplev22 Linux - General 3 02-11-2004 10:31 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 - General

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