LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shutdown Problem (https://www.linuxquestions.org/questions/linux-newbie-8/shutdown-problem-671519/)

shvnsen 09-22-2008 02:58 AM

Shutdown Problem
 
Hi,

Actually I am facing problem during the shut down phase.
when I give the command shutdown -f now

it gives the following output
INIT:Switching to runlevel:
INIT:Sending process the Term signal
INIT:Sending process the Kill signal
INIT: no more process left in this runlevel


I googled this problem and according to search result I modified menulist and added acpi=force apm =on and acpi=off apm=on and pci=noacpi

nothing happened

Then I modified modprobe.conf(modules) and added line apm power_off=1. nothing happened.

Then I modified /etc/kde/kdm/kdmrc and added in X:-*Core TerminateServer=true in kdrmc.

Then also nothing Happened.
Kindly help me

salasi 09-22-2008 04:40 AM

Quote:

Originally Posted by shvnsen (Post 3287992)
Hi,

Actually I am facing problem during the shut down phase.
when I give the command shutdown -f now
...
Then also nothing Happened.

Is it correct to say that the problem part of this description is the 'nothing happened' part?

I note that you are using '-f'. 'man shutdown', on this box gives no sign of a '-f' switch (I think one of -r -h -H and -P are more likely to be what you want, but I'm guessing). Perhaps you want to say more about what distro you have and why you think that -f is what you want and what you wanted to happen (halt, re-boot, power off, send messsage without shutdown).

shvnsen 09-22-2008 04:55 AM

Quote:

Originally Posted by salasi (Post 3288039)
Is it correct to say that the problem part of this description is the 'nothing happened' part?

I note that you are using '-f'. 'man shutdown', on this box gives no sign of a '-f' switch (I think one of -r -h -H and -P are more likely to be what you want, but I'm guessing). Perhaps you want to say more about what distro you have and why you think that -f is what you want and what you wanted to happen (halt, re-boot, power off, send messsage without shutdown).


I want to shutdown the linux withour halting. it halts , I mean cursor goes on blinking until and unless i switched it off from cpu
Usage: shutdown [-akrhfnc] [-t secs] time [warning message]
-a: use /etc/shutdown.allow
-k: don't really shutdown, only warn.
-r: reboot after shutdown.
-h: halt after shutdown.
--------------> -f: do a 'fast' reboot (skip fsck).
-F: Force fsck on reboot.
-n: do not go through "init" but go down real fast.
-c: cancel a running shutdown.
-t secs: delay between warning and kill signal.
** the "time" argument is mandatory! (try "now") **


Kindly help me out.

salasi 09-23-2008 04:32 AM

You still will not say which distro you have; based on an observation of two boxes (SuSE and Ubuntu), Ubuntu does not have the -f switch and on SuSE it does not work, or at least not how you you would expect, although it may also depend on version.

On SuSE, with kde, giving the command in a konsole virtual terminal shuts down the GUI and lands you at the command line. This seems unlikely to be what you want (although you haven't said what you actually want).

The more conventional use of the shutdown command ('-h now', for example) on SuSE does actually shutdown the box, even when given from within the GUI, which seems more likely to be what you want; this behaviour is more likely to be consistent across distros.

Note that even if the -f switch did do what you want, whatever that is, it could be slightly dangerous. There is a reason for doing an fsck occasionally on, e.g., ext2 partitions, and consistent use of -f would get around that.

shvnsen 09-23-2008 04:52 AM

Quote:

Originally Posted by salasi (Post 3289064)
You still will not say which distro you have; based on an observation of two boxes (SuSE and Ubuntu), Ubuntu does not have the -f switch and on SuSE it does not work, or at least not how you you would expect, although it may also depend on version.

On SuSE, with kde, giving the command in a konsole virtual terminal shuts down the GUI and lands you at the command line. This seems unlikely to be what you want (although you haven't said what you actually want).

The more conventional use of the shutdown command ('-h now', for example) on SuSE does actually shutdown the box, even when given from within the GUI, which seems more likely to be what you want; this behaviour is more likely to be consistent across distros.

Note that even if the -f switch did do what you want, whatever that is, it could be slightly dangerous. There is a reason for doing an fsck occasionally on, e.g., ext2 partitions, and consistent use of -f would get around that.


I am sorry for that
I am using RedHat
now plz tell me and -f option is there in redhat and plz do reply asap.
Its very urgent.

Thanks a lot

shvnsen 09-23-2008 04:55 AM

Quote:

Originally Posted by shvnsen (Post 3289077)
I am sorry for that
I am using RedHat
now plz tell me and -f option is there in redhat and plz do reply asap.
Its very urgent.

Thanks a lot

To be more precise
I installed redhat using USB bootable.
I am able to do everything its just that it does shutdown properly and hangs with commands I posted earlier. I hope my problem will be more clear now.

ehawk 09-23-2008 12:49 PM

I think if you want to shutdown the system without halting (just power down), you use

shutdown -P

or

poweroff

shvnsen 09-23-2008 11:06 PM

Quote:

Originally Posted by ehawk (Post 3289455)
I think if you want to shutdown the system without halting (just power down), you use

shutdown -P

or

poweroff


Since I am using red hat as my distro so there is no option of -P the option that it provides are been displayed in my previous reply.


All times are GMT -5. The time now is 06:37 AM.