* [OT?] File system recommendation for SD cards
@ 2006-05-18 9:46 Albrecht Dreß
2006-05-18 11:49 ` David Woodhouse
2006-05-19 7:24 ` Wolfgang Mües
0 siblings, 2 replies; 4+ messages in thread
From: Albrecht Dreß @ 2006-05-18 9:46 UTC (permalink / raw)
To: linux-mtd
Hi,
sorry if this is an ot question - I could not find an answer for this
question on the web. Hope the question is not /too/ dumb, though...
I plan to use an SD card in an embedded system (arm9/Linux 2.6 based).
The SD card shall buffer measurement data files which are created about
every minute and are each ~20 kByte large. On a regular basis, a remote
machine will load the files from the embedded system which in turn
unlinks them, thus creating a big "ring buffer".
After reading a Sandisk whitepaper about wear levelling [1] I thought
about using a standard vfat file system on it (mainly to have the
ability to remove the sd card and to read it on a Winbloze pc).
However, I read a report that using a sync vfat fs could lead to fast
corruption of the SD card [2].
Questions:
Would using JFFS2 on the SD card improve the lifetime of the device?
Does anyone have experiences about the achievable lifetime in my
scenario, for both vfat or jffs2?
How would I practically set up a jffs2 fs on the sd card?
Thanks in advance for any input,
Albrecht
[1]
http://www.sandisk.com/Assets/File/OEM/WhitePapersAndBrochures/RS-MMC/WPaperWearLevelv1.0.pdf
[2] http://www.ussg.iu.edu/hypermail/linux/kernel/0506.0/0058.html
--
LIOS Technology GmbH
Dr. Albrecht Dreß
Project Engineering / Software Design
Schanzenstrasse 6 - 20
D-51063 Köln
Germany
Phone +49 221 676 2742
Fax +49 221 676 2069
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OT?] File system recommendation for SD cards
2006-05-18 9:46 [OT?] File system recommendation for SD cards Albrecht Dreß
@ 2006-05-18 11:49 ` David Woodhouse
2006-05-19 7:24 ` Wolfgang Mües
1 sibling, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2006-05-18 11:49 UTC (permalink / raw)
To: Albrecht Dreß; +Cc: linux-mtd
On Thu, 2006-05-18 at 11:46 +0200, Albrecht Dreß wrote:
> Would using JFFS2 on the SD card improve the lifetime of the device?
Possibly, yes.
> Does anyone have experiences about the achievable lifetime in my
> scenario, for both vfat or jffs2?
> How would I practically set up a jffs2 fs on the sd card?
The SD card won't present itself as a normal flash device. It has flash
_internally_ but you can't get at it directly -- you can only treat it
like a hard drive with 512-byte sectors. So you need to use the
'block2mtd' driver so that you can use it as an MTD device and use JFFS2
on it.
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OT?] File system recommendation for SD cards
2006-05-18 9:46 [OT?] File system recommendation for SD cards Albrecht Dreß
2006-05-18 11:49 ` David Woodhouse
@ 2006-05-19 7:24 ` Wolfgang Mües
2006-05-24 13:03 ` Thanks! [Was: File system recommendation for SD cards] Albrecht Dreß
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Mües @ 2006-05-19 7:24 UTC (permalink / raw)
To: linux-mtd
Hello Albrecht,
Am Donnerstag, 18. Mai 2006 12:15 schrieb Albrecht Dreß:
> After reading a Sandisk whitepaper about wear levelling [1] I thought
> about using a standard vfat file system on it (mainly to have the
> ability to remove the sd card and to read it on a Winbloze pc).
> However, I read a report that using a sync vfat fs could lead to fast
> corruption of the SD card [2].
Why don't you use async vfat (standard up to 2.6.13(?)), because vfat has
not implemented the sync option until then.
I've had no problems with it - dirty data is written to sd very fast.
regards
Wolfgang
--
Wolfgang Muees Vor den Grashoefen 1
Auerswald GmbH & Co. KG D-38162 Cremlingen
Hardware Development Germany
Tel +49 5306 9219 0 Fax +49 5306 9219 94
^ permalink raw reply [flat|nested] 4+ messages in thread
* Thanks! [Was: File system recommendation for SD cards]
2006-05-19 7:24 ` Wolfgang Mües
@ 2006-05-24 13:03 ` Albrecht Dreß
0 siblings, 0 replies; 4+ messages in thread
From: Albrecht Dreß @ 2006-05-24 13:03 UTC (permalink / raw)
To: linux-mtd
Thanks a lot to all users who replied to my question - the input was
/really/ helpful for me!
Regards,
Albrecht
--
LIOS Technology GmbH
Dr. Albrecht Dreß
Project Engineering / Software Design
Schanzenstrasse 6 - 20
D-51063 Köln
Germany
Phone +49 221 676 2742
Fax +49 221 676 2069
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-05-24 13:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-18 9:46 [OT?] File system recommendation for SD cards Albrecht Dreß
2006-05-18 11:49 ` David Woodhouse
2006-05-19 7:24 ` Wolfgang Mües
2006-05-24 13:03 ` Thanks! [Was: File system recommendation for SD cards] Albrecht Dreß
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox