LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-29-2013, 04:37 PM   #1
albinard
Member
 
Registered: Jan 2011
Location: New Mexico
Distribution: Xubuntu Core
Posts: 185

Rep: Reputation: 59
Best way to do a fast but non-harmful shutdown?


I'm running 3 independent desktops (not networked), with a rather low-end battery backup. Line power failures aren't unusual, so I'm trying to figure out the best way to do a prompt shutdown at minimal stress to the machines. Given three choices, which do you consider preferable:

1. sudo shutdown now -h -P
2. 4-finger salute: Ctrl-Alt-SysRq-o
3. Hold power button 5 seconds

Or are they all about the same? TIA for any comments and suggestions!
 
Old 11-29-2013, 05:50 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You can have acpid running and installed. When you push the power button on the box it triggers option number one.

Number 3 is not advised if you're not on a journaled filesystem. And not without risk if you are. Doing fsck on a 1TB ext2 filesystem could take quite a chunk of time on the next boot.
 
1 members found this post helpful.
Old 11-29-2013, 07:39 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Might be a way to change how disk caching is being used so that the #3 option isn't so bad.

We've pulled the plug on QNX and dos for decades without an issue.
 
Old 11-29-2013, 10:02 PM   #4
albinard
Member
 
Registered: Jan 2011
Location: New Mexico
Distribution: Xubuntu Core
Posts: 185

Original Poster
Rep: Reputation: 59
Thank you, Shadow 7! It turns out the man page for acpid has this very thing as a how-to example. I have marked the thread as solved.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
harmful bug on ubuntu upgrade to 12 Majidn Linux - Laptop and Netbook 2 05-21-2012 09:31 AM
mounting by force. is it harmful? matrix13 Linux - Software 2 12-15-2008 06:59 PM
jack has been either shutdown or it disconnected ardour because ardour wasnt fast eno thisisquincyorjim Linux - Software 0 07-28-2006 01:28 PM
Is this harmful ?? Wynand1 Linux - Wireless Networking 3 09-03-2005 07:55 AM
Is bittorrent harmful to harddisk gexiaofei Linux - General 5 09-06-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration