LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-09-2013, 05:12 PM   #1
Carlton23
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Rep: Reputation: Disabled
Coping with power loss


Hello,
I'm configuring a Gentoo system on a Single Board PC (Atom), which will run headless and collect datas from sensors.

I will run where power is not always guaranteed. There may be intermittent power fails and brown-outs. I am worried that if there are too many fails, there is increased chance of it failing to boot due to corruption like a desktop OS.

I hear that the Raspberry Pi can be turned off without any problems. How do they achieve this? I would like to do the same thing.

Do I just need to use journaling? ext3? At the moment I have ext2 boot and ext3 root. Perhaps I should change boot to ext3 too and it will be ok?



I could make battery back-up for it, but I'd rather use Linux.

Thank you all.
 
Old 10-09-2013, 08:25 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
No system is immune to disaster. The design of the hardware doesn't prevent this in your case. There are some industrial systems that do much better but you won't want to pay that much.

So, you have a few ways to protect your system. For sure you don't want ext2 in my opinion. Fast maybe, safe no way. I'd move up to ext4 myself.

There may be a way to set /boot loader and OS on a read only partition or even separate CF card or disk. We used to run VAX off a read only disk and I don't think it ever failed in decades.

There are some ways to mount a aufs or squashfs or other read only files too as system.

There may be ways to construct a pre-boot or reboot script that does checks or even tries to report.

Pretty sure other folks here may know some ideas too.
 
Old 10-09-2013, 10:18 PM   #3
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 304

Rep: Reputation: 121Reputation: 121
Take a look at this recent thread on a similar topic:
LinuxQuestions: Suggestions/recommendations for system that will NEVER be shut down gracefully?
 
  


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
"Power failure" at bash prompt - But no loss of power or UPS etc chrisphysics Linux - Kernel 4 08-05-2013 04:49 AM
No Internet after power loss replica9000 Linux - Networking 21 07-29-2009 12:57 AM
Problems with Synaptic after power loss thekid Ubuntu 5 10-17-2007 11:17 AM
Total loss of power on HD seek ??? KendersPlace Linux - Hardware 4 04-27-2004 03:03 AM
Power loss, now no email etc Bake-SaleNet Linux - Networking 2 02-01-2004 07:26 PM


All times are GMT -5. The time now is 08:08 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