LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What should I do after power failure or forced shutdown? (https://www.linuxquestions.org/questions/linux-newbie-8/what-should-i-do-after-power-failure-or-forced-shutdown-4175476969/)

Cougar! 09-13-2013 04:57 AM

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?

eSelix 09-13-2013 05:19 AM

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.

CodeFreaker 09-13-2013 09:20 AM

Quote:

Originally Posted by Cougar! (Post 5027018)
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. :(

rtmistler 09-13-2013 11:27 AM

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.


All times are GMT -5. The time now is 05:09 AM.