LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-14-2005, 02:48 AM   #1
netsina
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Rep: Reputation: 0
INIT: no more processes left in this runlevel


I make a 'little' linux through copying files from RHEL4.

When I copy the full /lib directory ,it can boot and login
But on excuting restart or shutdown, it shows some messages and then halts.

INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
INIT: no more processes left in this runlevel

Maybe it needs some more files, but for the limit of disk space, I want to know the exact file it needs. anyone can tell me?

The second question:
When I copy part of the /lib directory and the full /lib/security directory,the problem above still exists,and a more problem happens at login.

login: root
Password:
login(pam_unix)[376]: check pass: user unknown
login(pam_unix)[376]:authentication failure: logname=LOGIN uid=0 euid=0 tty=tty1 ruser= rhost=
login[376]: FAILED LOGIN 1 FROM (null) FOR root. Authentication failure
Login incorrect

login:

which lib does it need except for /lib/security?

The third question:
Which files decide the ls command to list colorful files?

Thanks for any help.
 
Old 06-14-2005, 12:41 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 65
Re: INIT: no more processes left in this runlevel

Quote:
Originally posted by netsina
I make a 'little' linux through copying files from RHEL4.

When I copy the full /lib directory ,it can boot and login
But on excuting restart or shutdown, it shows some messages and then halts.

INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
INIT: no more processes left in this runlevel

Maybe it needs some more files, but for the limit of disk space, I want to know the exact file it needs. anyone can tell me?
This is the normal output when exiting from one runlevel and going into another. It sounds like you have a problem with APM/ACPI which is preventing Linux from issuing the poweroff or reboot instructions.

It should be safe to manually poweroff or reboot your machine at this point, but if you want to fix this then I'd start by checking that power management is enabled in your BIOS. You may even have to recompile your kernel and change the power management options in the kernel.

Quote:

The second question:
When I copy part of the /lib directory and the full /lib/security directory,the problem above still exists,and a more problem happens at login.

login: root
Password:
login(pam_unix)[376]: check pass: user unknown
login(pam_unix)[376]:authentication failure: logname=LOGIN uid=0 euid=0 tty=tty1 ruser= rhost=
login[376]: FAILED LOGIN 1 FROM (null) FOR root. Authentication failure
Login incorrect

login:

which lib does it need except for /lib/security?
I'm going to hope that you're copying these with the -d option, otherwise symlinks will be copied as complete files, making the disk space used be much larger for the copy than the original.

/lib/security is a directory, not a library. /lib/security/pam_filter is probably going to be needed. You'll definitely need /etc/passwd and probably /etc/shadow as a minimum.

You should find errors, such as the inability to load a given module, in various files in /var/log/

Quote:
The third question:
Which files decide the ls command to list colorful files?
This isn't set in a configuration file; it's a command-line argument.

Code:
ls --color=tty
You can set this up as an alias by adding this line to your login script, usually ~/.bash_rc:
Code:
alias ls='/bin/ls --color=tty'
 
Old 06-14-2005, 07:25 PM   #3
netsina
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Re: Re: INIT: no more processes left in this runlevel

Thanks for your answer.

Quote:
Originally posted by rjlee
This is the normal output when exiting from one runlevel and going into another. It sounds like you have a problem with APM/ACPI which is preventing Linux from issuing the poweroff or reboot instructions.

It should be safe to manually poweroff or reboot your machine at this point, but if you want to fix this then I'd start by checking that power management is enabled in your BIOS. You may even have to recompile your kernel and change the power management options in the kernel.
In fact ,I'm using Vmware workstation 5.0, there aren't power management options in BIOS, and the unabridged RHEL4 can normally power down,so I don't think it's the problem of power management.
After the little linux shows those init messages and halts, it does not umount the root file system,so when booting the next time , it compalins that the system appears to have down uncleanly, and there always are some files damaged.

Quote:
Originally posted by rjlee

I'm going to hope that you're copying these with the -d option, otherwise symlinks will be copied as complete files, making the disk space used be much larger for the copy than the original.

/lib/security is a directory, not a library. /lib/security/pam_filter is probably going to be needed. You'll definitely need /etc/passwd and probably /etc/shadow as a minimum.

You should find errors, such as the inability to load a given module, in various files in /var/log/
Yes, I copyed the whole /lib/security directory ,the pam_filter.so ,passwd,shadow are in their proper position.
In /var/log,there are one dmesg file and one wtmp file.the dmesg only logged before the root file system was mounted, and the wtmp file was a binary file.

Quote:
Originally posted by rjlee

This isn't set in a configuration file; it's a command-line argument.

Code:
ls --color=tty
You can set this up as an alias by adding this line to your login script, usually ~/.bash_rc:
Code:
alias ls='/bin/ls --color=tty'
Thank you,it really workes.

Last edited by netsina; 06-17-2005 at 02:36 AM.
 
Old 07-04-2005, 03:21 AM   #4
netsina
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Original Poster
Rep: Reputation: 0
The first two questions are still waiting.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
debian runlevel init 3 joyman555 Linux - Software 10 04-15-2008 01:47 AM
No initab file found - No more processes left in this runlevel mrhansen Linux - Newbie 6 08-27-2004 02:17 PM
Init and runlevel commands CliffLandin Linux - General 2 11-22-2003 05:01 PM
INIT: no more processes left in this runlevel ..:eMa:.. Linux - Newbie 8 10-29-2003 11:49 AM
init runlevel adam171771 Linux - General 3 07-05-2001 09:02 PM


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