From: Mike Frysinger <vapier@gentoo.org>
To: gentoo-embedded@lists.gentoo.org
Cc: Kfir Lavi <lavi.kfir@gmail.com>
Subject: Re: [gentoo-embedded] crash proofing a system from power cutoffs
Date: Sun, 8 Jan 2012 14:33:21 -0500 [thread overview]
Message-ID: <201201081433.21643.vapier@gentoo.org> (raw)
In-Reply-To: <CAHNvW1JaeYANiz_9oE07WMxnj-BXzrZhHBWU3PwkDCi9K6-zfQ@mail.gmail.com>
[-- Attachment #1: Type: Text/Plain, Size: 833 bytes --]
On Sunday 08 January 2012 12:59:16 Kfir Lavi wrote:
> I'll need to crash proof a Gentoo system from electricity cutoffs.
> I have a system with 8GB of flash drive.
> I created a small system ~100mb as the target system.
> I thought of creating 5 200mb paratitions of raid1. So 5 will be mirrored.
> What do you think of this solution?
>
> Do you have more ideas how to keep the system intact ?
> I'm creating ext4 partitions, but would like to hear some opinions on that
> fileystem.
what is your flash tech exactly ? it's a USB thumb drive ?
the best way to avoid problems is:
- use read-only mounts wherever possible
- use tmpfs for all scratch space you don't care about (many logs fall into
this category with embedded devices)
- for the few places you do write to disk, make sure to fdatasync()
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-01-08 19:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-08 17:59 [gentoo-embedded] crash proofing a system from power cutoffs Kfir Lavi
2012-01-08 19:33 ` Mike Frysinger [this message]
2012-01-23 18:39 ` Ed W
2012-01-23 18:55 ` Peter Stuge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201201081433.21643.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gentoo-embedded@lists.gentoo.org \
--cc=lavi.kfir@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox