LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-13-2013, 05:57 AM   #1
Cougar!
LQ Newbie
 
Registered: Apr 2013
Distribution: OpenSuSE
Posts: 10

Rep: Reputation: Disabled
Question What should I do after power failure or forced shutdown?


Hi, everyone.

My OpenSUSE have encountered power failure and force shutdown for a couple times.Everytime after restart, it runs perfectly as if nothing had happened.

But I still wonder if there's anything I should do after such system failure. Any suggestions?
 
Old 09-13-2013, 06:19 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
It depends on what filesystems you have. ext4/3 (or any with journaling) should be safe, they automatically "repair" self after improper shutdown. If not disabled, after start there should be run check disk utility for some filesystems, like ext2. If not run it manually (it are commands "fsck.*"). But even that there is a small risk of damaging drive and of course you lose your unsaved work. And best of is to buy UPS, especially if you often have power failures.

Last edited by eSelix; 09-13-2013 at 06:26 AM.
 
2 members found this post helpful.
Old 09-13-2013, 10:20 AM   #3
CodeFreaker
LQ Newbie
 
Registered: Feb 2010
Posts: 27

Rep: Reputation: 12
Quote:
Originally Posted by Cougar! View Post
Hi, everyone.

My OpenSUSE have encountered power failure and force shutdown for a couple times.Everytime after restart, it runs perfectly as if nothing had happened.

But I still wonder if there's anything I should do after such system failure. Any suggestions?
Yep..Better to have a UPS..if not your HD will be corrupted and non recoverable forever.
 
Old 09-13-2013, 12:27 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,476
Blog Entries: 10

Rep: Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639
Not saying that you can't get corruption due to any random shutdown. But I do feel that a lot has to do with what you're doing, or not at the time. I.e. we have systems at work which we leave up all the time. We do not have power backup, and therefore we lose power, most systems shutdown, unless they're laptops and then they shutdown after their batteries run dry.

Most systems (if left in default configurations) will go to standby or hibernate after long periods of non-use. This is good and will protect your system because things like the disk will not be in active use should the power go off.

However if you're actively copying large quantities of data and the power gets yanked, then you stand to lose a lot of that data you were moving, in and around the power failure time.

If it's critical data, or deemed by you to be; then eSelix and CodeFreaker have already told you what to do. But I also say be aware that a UPS is only going to get you so far. If it's a work system, power goes away for 24+ hours and it happens on the weekend, there's no guarantee that a UPS is going to supply enough power to keep it going.

Curious. What do you mean "forced shutdown"? That implies something other than power interruption. Forced shutdown is you locked it up and had to hold the power button long enough to cause it to shutdown? Avoid that at all costs and instead try to figure out what's happening to place you into that situation. There likely are some remedies you can follow which can at least free up the system enough so that you can perform a proper shutdown.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Automatic Shutdown of Multiple Servers on One LAN in Case of Power Failure polinux Linux - Server 4 03-30-2012 10:18 AM
[SOLVED] Poweroff failure to shutdown computer (ACPI ?) = must use power button, solved ? H_TeXMeX_H Linux - General 24 10-15-2011 08:09 AM
Want to write shutdown script in case of power failure cadcrazy Programming 10 10-07-2008 08:28 AM
Auto shutdown after power failure the_bloodwalker Linux - Newbie 1 05-13-2008 06:06 PM
Unclean shutdown from power failure... filesystem check errors macisaac Linux - General 4 12-26-2003 08:50 PM


All times are GMT -5. The time now is 05:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration