Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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).
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") **
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.