system halts after typing init 0. why?
i am using redhat linux enterprise edition. when i execute the command init 0, all the processes were stopped and i am getting the following message:
Unmounting file systems: halting system: md:stopping all md devices: flushing ide devices:hda hdc Power down. the cursor waits in the next line and system never shuts down. could anyone solve my problem? If i use ctr+alt+del, system reboots. |
Can you post the output of /var/log/messages ?
Why use init 0 as opposed to shutdown command ? |
.. because halting is the very definition of "init 0" ?
Is your question why the server doesn't then power off? Please be clear. Do try using the "shutdown" command instead of "init 0". |
|
Hi james,
here are the /var/log/messages localhost kernel:kernel log daemon terminating. localhost syslog:klogd shutdown succeeded localhost exiting on signal 15 localhost syslogd 1.4.1:restart Hi Alucardzero, You are right. I will be more specific. I want the system to poweroff. what should i do in this case? One of my friend when uses init 0, system will shutdown and power gets off. Also, i used "shutdown -a now", but no use |
Hi,
You could 'man shutdown'; Quote:
|
Quote:
Please try the shutdown cmd :) |
I was not answering your post.
|
i thank everyone for your revert. i used "shutdown -h now". server doesn't power off.
|
I found this on another forum, perhaps this would help?:
Give apm a shot. When you boot, go into the grub menu and press "e" to edit the ubuntu selection. Edit the kernel like by pressing "e" again. Go to the end of the line and add "apm=force" and hit enter. Then press "b" to boot. If that fixes it, add "apm=force" to the line in /boot/grub/menu.list ## nonaltoption boot targets option ## This option controls options to pass to only the ## primary kernel menu item. ## You can have ONLY one nonaltoptions line # nonaltoptions=quiet splash apm=force Then run sudo update-grub. You can also see what your bios is set to (apm or acpi) |
i dont think halt and poweroff are the same thing, it just so happens that when most modern computers 'halt', they also poweroff. Try 'shutdown -P now'
|
how about just shutdown now?
|
Isn't it...
Isn't the command "halt -p", to halt then poweroff? Note that "shutdown" may be automatically invoked. "halt -p" will always shut the system down and kill the power. http://linux.die.net/man/8/halt |
that's what i'm saying. So halt then poweroff suggests that halt and poweroff are different
|
All times are GMT -5. The time now is 08:32 PM. |