ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: SD card corruption, please help!

To:
Subject: Re: [ts-7000] Re: SD card corruption, please help!
From: Andrew Taylor <>
Date: Tue, 11 Mar 2008 08:16:41 +1100
On Mon, Mar 10, 2008 at 05:09:38PM +0000, Jim Jackson wrote:
> No it involves double writes. And the thinking behind the suggestion is 
> flawed. Flash disks do not work like Hard disks. Block numbers in flash 
> defives are virual and are mapped where necessary to real flash blocks by a 
> block translation table that helps with the wearlevelling. Because of this 
> wear levelling the all-zero block that is subsequently rewritten, will be 
> written to a brand new block in the most recently erased superblock of the 
> flash chip, and the block translation table updated to record where this 
> block 
> is. So the inital zero write was a waste of time - and you flash wears out 
> quicker.

Good point - I'd forgotten block translation at the flash level.  But I'd
still recommend pre-creating the files as its avoidings runtime changes
to the ext2/ext3 filesystem metadata.  Definitely avoid directory writes.  
An SDcard should cope with terabytes of writes without wearing out so
this shouldn't be an issue.

It might be worth checking than the Java application is buffering its
writes (you could do this by viewing its system calls with strace) 

Personally I'd be looking to another storage media like a USB key
if there was a choice.

Andrew

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU