LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   INIT: no more processes left in this runlevel (https://www.linuxquestions.org/questions/red-hat-31/init-no-more-processes-left-in-this-runlevel-333353/)

netsina 06-14-2005 02:48 AM

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.

rjlee 06-14-2005 12:41 PM

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'

netsina 06-14-2005 07:25 PM

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.

netsina 07-04-2005 03:21 AM

The first two questions are still waiting.


All times are GMT -5. The time now is 02:09 AM.