Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th November 2011, 02:46 AM
molossus's Avatar
molossus Offline
Registered User
 
Join Date: Sep 2010
Location: U.S
Posts: 15
linuxchrome
Question fedora 16 shutdown question

I would like to know if using
Code:
shutdown -h now
is ok, i mean for the hard drive , does it force to shutdown too quickly ? does it cause any type of damage when using it instead of Poweroff?

the problem is that when i use the normal "Poweroff" function when pressing ALT in the main menu to shutdown the laptop, it takes too long, about 2 or 3 minutes before it finally shuts down.
but when i use shutdown -h now it shuts down very quickly.

edit: sorry, but both commands take too long to shutdown, i dont know whats wrong with fedora16 RC5.

Last edited by molossus; 7th November 2011 at 03:56 AM.
Reply With Quote
  #2  
Old 7th November 2011, 07:41 AM
Dutchy Online
Registered User
 
Join Date: Aug 2011
Posts: 697
linuxfirefox
Re: fedora 16 shutdown question

That command doesn't do any harm.
But you probably won't use it any longer because it doesn't give you an advance.
You could look for errors in the system logs what is holding it off.
Reply With Quote
  #3  
Old 8th November 2011, 12:47 PM
lordmarcio Offline
Registered User
 
Join Date: Nov 2011
Posts: 6
linuxchrome
Re: fedora 16 shutdown question

the command correct is:

Quote:
shutdown -s now
*-s - shutdown
Reply With Quote
  #4  
Old 8th November 2011, 12:54 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,613
linuxfirefox
Re: fedora 16 shutdown question

-s isn't a valid option for shutdown.

Code:
shutdown [OPTIONS...] [TIME] [WALL...]

Shut down the system.

     --help      Show this help
  -H --halt      Halt the machine
  -P --poweroff  Power-off the machine
  -r --reboot    Reboot the machine
  -h             Equivalent to --poweroff, overriden by --halt
  -k             Don't halt/power-off/reboot, just send warnings
     --no-wall   Don't send wall message before halt/power-off/reboot
  -c             Cancel a pending shutdown
Reply With Quote
  #5  
Old 8th November 2011, 01:02 PM
sirio400516x Offline
Registered User
 
Join Date: Oct 2011
Location: Garching bei München, Germany
Posts: 15
linuxchrome
Re: fedora 16 shutdown question

How about
Code:
 halt -p
Cheers
Reply With Quote
  #6  
Old 8th November 2011, 01:06 PM
lordmarcio Offline
Registered User
 
Join Date: Nov 2011
Posts: 6
linuxchrome
Re: fedora 16 shutdown question

Ok!
I don't know... I'm sorry
Reply With Quote
  #7  
Old 8th November 2011, 01:09 PM
sirio400516x Offline
Registered User
 
Join Date: Oct 2011
Location: Garching bei München, Germany
Posts: 15
linuxchrome
Re: fedora 16 shutdown question

Don't need to be ;-)
Happy shutdown!
Reply With Quote
  #8  
Old 8th November 2011, 01:16 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,613
linuxfirefox
Re: fedora 16 shutdown question

halt -p works

but, you could also just use
Code:
poweroff


But, this thread wasn't asking the correct syntax of the shutdown/halt/poweroff commands... It was asking if the shutdown command caused problems due to shutting it down too quickly, and about why F16 was taking so long to shutdown.

There are things that can and will cause delays in shutdown, and sometimes they can be tricky to find since closing the log files are a part of the shutdown procedure. If the hang is after the logs are closed, then you have no means to go back and look to find the cause.

You can boot your system with the kernel options systemd.log_level=debug and systemd.log_target=kmsg and get a little more information if you need to.

You can also save more of the log by dumping it to a different file.

place a shell script in
/lib/systemd/systemd-shutdown:

#!/bin/sh
mount / -orw,remount
dmesg > /dmesg.shutdown
mount / -oro,remount

mark it +x

Then boot with the systemd.log_level=debug and systemd.log_target=kmsg kernel options. You should have your shutdown messages in /dmesg and possibly can see where it is hanging.


Edit:

Just another note on the shutdown -s mentioned above.. It is a valid shutdown option.... IF you were running Windows.

Edit again to correct typo in script above.

Last edited by DBelton; 8th November 2011 at 11:51 PM.
Reply With Quote
  #9  
Old 8th November 2011, 07:15 PM
molossus's Avatar
molossus Offline
Registered User
 
Join Date: Sep 2010
Location: U.S
Posts: 15
linuxchrome
Thumbs up Re: fedora 16 shutdown question

Quote:
Originally Posted by DBelton View Post
halt -p works

but, you could also just use
Code:
poweroff


But, this thread wasn't asking the correct syntax of the shutdown/halt/poweroff commands... It was asking if the shutdown command caused problems due to shutting it down too quickly, and about why F16 was taking so long to shutdown.

There are things that can and will cause delays in shutdown, and sometimes they can be tricky to find since closing the log files are a part of the shutdown procedure. If the hang is after the logs are closed, then you have no means to go back and look to find the cause.

You can boot your system with the kernel options systemd.log_level=debug and systemd.log_target=kmsg and get a little more information if you need to.

You can also save more of the log by dumping it to a different file.

place a shell script in
/lib/systemd/systemd-shutdown:

#!/bin/sh
mount / -orw,remount
demsg > /dmesg.shutdown
mount / -oro,remount

mark it +x

Then boot with the systemd.log_level=debug and systemd.log_target=kmsg kernel options. You should have your shutdown messages in /dmesg and possibly can see where it is hanging.


Edit:

Just another note on the shutdown -s mentioned above.. It is a valid shutdown option.... IF you were running Windows.
thank you for that script , , after i did a minor update it shuts down properly and fast
Reply With Quote
  #10  
Old 8th November 2011, 11:51 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,613
linuxfirefox
Re: fedora 16 shutdown question

oops.. I had a typo in that script, too

The command is dmesg, not demsg.
Reply With Quote
Reply

Tags
fedora, question, shutdown

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about shutdown and Suspend bogamol Hardware & Laptops 2 15th February 2010 12:38 PM
FC 8 Shutdown Question.... Captn Using Fedora 14 25th November 2007 04:45 AM
shutdown question [simple] Zero-Override Using Fedora 6 17th April 2007 08:07 PM
Shutdown question? xploder Using Fedora 3 12th February 2007 02:16 AM
Improper shutdown question... GreyGoose Using Fedora 4 1st June 2006 09:38 PM


Current GMT-time: 01:35 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat