Filesystem advice

Alexander Clouter alex at digriz.org.uk
Mon Feb 15 18:54:02 EST 2010


Volker Aßmann <volker.assmann at googlemail.com> wrote:
> 
> Sorry if this post is a bit off-topic for this mailing list, but this
> seams to be the best place to ask. We are currently using an embedded
> linux system with a compact flash drive and ext3 as a filesystem. Due
> to frequent power failures, we are often experiencing filesystem
> corruption problems, and thus want to replace this setup with a better
> option. My options / questions:
> 
> 1. Replace ext3 with UBIFS or JFFS2 using the MTD-Blockdevice
> emulation layer. Would this setup improve the reliability of our
> system with respect to power failures, and if yes which is better
> suited? Of course this approach would not improve the wear leveling,
> but would it make it worse / probably confuse the integrated flash
> controller?
>
....I always found mounting with 'sync' plus 'ro' in places that I could 
(along with liberal use of tmpfs) made for a very reliable setup.  That 
was for ext3.
 
I would be inclined to look at nilfs2 as it sounds like the type of 
thing you would be looking for?

> 3. In case both solutions are not viable, could you give an educated
> guess on which traditional filesystem would be better suited for this
> use case than ext3?
> 
Alot of corruption can be due to braindead userland expectations.  
Generally this means the userland tools need to learn about fsync().

Cheers

-- 
Alexander Clouter
.sigmonster says: Walk softly and carry a megawatt laser.




More information about the linux-mtd mailing list