You are not logged in.

#1 2011-12-18 14:35:49

chrlin
Member
Registered: 2011-12-18
Posts: 15

[SOLVED] - shutdown to maintenance mode, then cannot shutdown at all

Hi guys

Everytime I use "sudo shutdown now" my computer will always shutdown to maintenance mode. Then it will ask root password to enter maintenance mode, or ctrl-D to continue. If I enter the password and then type "shutdown now" it will try to shutdown, but there is this init:2138 that my system cannot kill (forget what is the entire message), every 120 seconds it always display this message and my computer will never shutdown. If I press ctrl-D, the system will go back to login screen. Any idea how to shutdown my machine?

Does this happen because the system is unable to cleanly kill processes?

My spec: i686, syslinux, slim, openbox and xfce4. Please tell me if I missed something.
The shutdown command is done from xfce's terminal, because currently I haven't create shutdown menu in openbox.

Last edited by chrlin (2011-12-19 02:23:40)


The Arch Way - The Meaning of System - The Flow of Data - The Layer of Abstraction - The Power of Root - The Law of Command - The Communication of Terminal - The Union of Man and Machine

上之道 - 生之義 - 氣之流 - 天之層 - 活之力 - 命之理 - 靈之通 - 天人合一

Offline

#2 2011-12-18 15:32:24

DerFlob
Member
From: Munich, Germany
Registered: 2011-09-18
Posts: 21

Re: [SOLVED] - shutdown to maintenance mode, then cannot shutdown at all

you have to add the -h option to halt (power off) your system after shutdown. so try "sudo shutdown -h now"

Offline

#3 2011-12-18 16:12:12

sakisds
Member
From: Athens, Greece
Registered: 2011-10-03
Posts: 105

Re: [SOLVED] - shutdown to maintenance mode, then cannot shutdown at all

Or use 'sudo poweroff'.

Offline

#4 2011-12-18 22:16:17

echo.unity
Member
Registered: 2011-11-14
Posts: 68

Re: [SOLVED] - shutdown to maintenance mode, then cannot shutdown at all

or sudo halt -p

Offline

#5 2011-12-19 02:23:12

chrlin
Member
Registered: 2011-12-18
Posts: 15

Re: [SOLVED] - shutdown to maintenance mode, then cannot shutdown at all

thanks for the answers! all of them work. why would someone make a difference between 'shutdown' and 'halt' though? anyway, case closed


The Arch Way - The Meaning of System - The Flow of Data - The Layer of Abstraction - The Power of Root - The Law of Command - The Communication of Terminal - The Union of Man and Machine

上之道 - 生之義 - 氣之流 - 天之層 - 活之力 - 命之理 - 靈之通 - 天人合一

Offline

#6 2011-12-19 08:19:24

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] - shutdown to maintenance mode, then cannot shutdown at all

Documentation is there for a purpose. tongue

man halt and man shutdown are youre friends. So for example in "man halt":

       If  halt or reboot is called when the system is not in runlevel 0 or 6,
       in other words when it's running normally,  shutdown  will  be  invoked
       instead  (with  the  -h  or -r flag). For more info see the shutdown(8)
       manpage.

To know or not to know ...
... the questions remain forever.

Offline

#7 2011-12-19 13:11:12

chrlin
Member
Registered: 2011-12-18
Posts: 15

Re: [SOLVED] - shutdown to maintenance mode, then cannot shutdown at all

Thanks for the advice. After looking at the man pages I guess I can say that:

halt / reboot / poweroff -> kills the machine
shutdown - > tell everyone using this computer that the computer is going to shutdown. perhaps more useful in servers, to avoid somebody losing their data because the server is going down. if we suddenly halt the server, many people will perhaps lose their data.

indeed, sometimes I am only looking at the symptoms and searched the google, but forget to ask the creator themselves the meaning of the system.

"meaning of the system" - quite cool, put this on my signature smile


The Arch Way - The Meaning of System - The Flow of Data - The Layer of Abstraction - The Power of Root - The Law of Command - The Communication of Terminal - The Union of Man and Machine

上之道 - 生之義 - 氣之流 - 天之層 - 活之力 - 命之理 - 靈之通 - 天人合一

Offline

Board footer

Powered by FluxBB