> Just trying to understant why it doesn’t work as exepected.
my best guess is that it doesn’t work as you expect because you don’t
know what to expect…
i say that because i’ve never met a linux admin who would shutdown
their system with “/sbin/halt” without the -h switch, at least…
i highly recommend you dig into the manual on YOUR machine
i say on your machine because the man pages there should correctly
reflect the state of ‘halt’ on your machine…
your system is newer than mine, and mine says [in man halt]: "The -h
flag puts all harddisks in standby mode just before halt or poweroff.
Right now this is only implemented for IDE drives. A side effect of
putting the drive in standby mode is that the write cache on the disk
is flushed. This is important for IDE drives, since the kernel doesn’t
flush the write-cache itself before poweroff.
The halt program uses /proc/ide/hd* to find all IDE disk devices,
which means that /proc needs to be mounted when halt or poweroff is
called or the -h switch will do nothing."
you have not stated what kind of disks you are using, are they IDE?
but, in any event if you just type “/sbin/halt” without the -h switch
you are very likely to do file system damage, right?
next i’d say you probably should dig into
and, your “Same behaviour with “shutdown -fh now” Stops with “Shutting
Down D-Bus Daemon Done.” in case of X running.” prompts me to ask: are
you saying it hangs there and doesn’t complete the system shutdown
and full power down?
and please explain why you use X but are not using the shutdown button
in the X GUI…
and, if you don’t want to use the shutdown button in the GUI you
probably should at least log out of X prior to the halt/shutdown by
use of the init command (to get to run level three), and THEN use the
shutdown command Ken gave you, instead of /sbin/halt
guessing that halt will do as you expect is not a good plan when
preparing a machine for a paying customer.
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]