Can't shutdown

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Can't shutdown

Post by ayu »

I'm running Ubuntu server virtually, but I can't seem to shutdown like I usually do.

shutdown now or shutdown 0 doesn't work, just takes me to a recovery menu.

Something new? ^^ and how do I shutdown?
"The best place to hide a tree, is in a forest"

User avatar
uid0
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 106
Joined: 08 Jun 2008, 16:00
15
Contact:

Post by uid0 »

Hmmm.... never happend to me something similar, the most closer was issuing the shutdown command and the PC didn't turn the power off but that was because the APM/APCI support, or the lack of it

Did the system was updated or changed in any way recently? (regarding to init processes)

Other commands you can use to turn off the PC are:

Code: Select all

$ poweroff
$ halt
$ init 0
poweroff is acctually an alias of 'shutdonw -h now' but your system should have it and is something you could try to see if there's a problem of the shutdown command, in the worst cases, init 0 shouldn't fail no matter what ^^

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

yeah init 0 worked, but getting another problem on Debian now with the shutdown command. check the link below :?

http://binarykitten.com/files/vmerror.png
"The best place to hide a tree, is in a forest"

G-Brain
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 467
Joined: 08 Nov 2007, 17:00
16
Location: NL

Post by G-Brain »

cats wrote:yeah init 0 worked, but getting another problem on Debian now with the shutdown command. check the link below :?

http://binarykitten.com/files/vmerror.png
It's running init 1. That shouldn't be happening... how did you run shutdown?

Code: Select all

alias shutdown="init 0"
But that would only hide the problem...
I <3 MariaLara more than all of you

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

G-Brain wrote:how did you run shutdown?
shutdown now and/or shutdown 0
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, anything to find in syslog? :-k

User avatar
Still_Learning
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 1040
Joined: 11 Jun 2008, 16:00
15
Location: Trigger City

Post by Still_Learning »

hold the power button down for 10 to 20 seconds :lol:


j/k I have never heard of a machine not powering down, you say your running it virtually with ubuntu? what virtual software VMWare?

User avatar
uid0
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 106
Joined: 08 Jun 2008, 16:00
15
Contact:

Post by uid0 »

holding the power button like that won't resolve the problem either, just hide it, and also, it won't be a clean shutdown which isn't something to recommend if you have available methods to do a clean shutdown like the alias g-brain mentioned.

when you use shutdown, the system reads the setting from the v init, I use slackware so don't know how accurate it will be what I'm gonna say but, shutdown calls /etc/rc.d/rc.0 which is a sym link to rc.6, this rc check if is called as 0 or as 6 being 0 poweroff and 6 reboot, in anyother case the system shouldn't do nothing except to print an echo of usage.

My guess is that there's some misconfiguration in the rc.6 or init 6 level, shutdown is a binary file so unless it has a bug in it, then is a problem of the files that shutdown is calling

Post Reply