Difference between revisions of "CompactFlash"

From Koala
Jump to: navigation, search
(talk)
Line 2: Line 2:
 
= Limiti di utilizzo di una Compact Flash =
 
= Limiti di utilizzo di una Compact Flash =
  
Many people would like to install a full Linux distribution (like Debian or Ubuntu) on a Compact Flash and ask what is the best filesystem to use on the CF. Our suggestion is: '''don't do it'''
+
Many people, many times people would like to install a full Linux distribution (like Debian or Ubuntu) on a Compact Flash and ask what is the best filesystem to use on the CF. Our suggestion is: '''don't do it'''
  
If you are aware about it and you want to try the best choice you can do is with the simplest filesystem: '''ext2'''
+
If you are aware about it and you want to try the best choiche you can do is with the simplest filesystem: '''ext2'''
  
 
'''Be careful:'''
 
'''Be careful:'''
 
The CF can be damaged when power goes down while writing. '''This has nothing to do with the file system.'''
 
The CF can be damaged when power goes down while writing. '''This has nothing to do with the file system.'''
The CF might be damaged so badly that in needs factory reformatting before it's accessible again.
+
 
 +
Even worse: the CF might be damaged so badly that in needs factory reformatting before it's accessible again.
  
 
Even worse: The CF manufactures don't provide any specification how long it needs power after a write to ensure that the CF data will not be damaged. So even a hardware based solution is not possible.
 
Even worse: The CF manufactures don't provide any specification how long it needs power after a write to ensure that the CF data will not be damaged. So even a hardware based solution is not possible.
Line 22: Line 23:
 
because of accelerated wear out.
 
because of accelerated wear out.
  
JFFS2 is only applicable if you have flash that is directly addressable by the CPU.  
+
JFFS2 is only applicable if you have flash that is directly addressable by the CPU.
 
 
== Possible solution ==
 
 
 
Mount your filesystem in readonly mode or better, adopt an embedded Linux distribution like '''KaeilOS''' http://www.kaeilos.com
 

Revision as of 06:44, 30 April 2008

Limiti di utilizzo di una Compact Flash

Many people, many times people would like to install a full Linux distribution (like Debian or Ubuntu) on a Compact Flash and ask what is the best filesystem to use on the CF. Our suggestion is: don't do it

If you are aware about it and you want to try the best choiche you can do is with the simplest filesystem: ext2

Be careful: The CF can be damaged when power goes down while writing. This has nothing to do with the file system.

Even worse: the CF might be damaged so badly that in needs factory reformatting before it's accessible again.

Even worse: The CF manufactures don't provide any specification how long it needs power after a write to ensure that the CF data will not be damaged. So even a hardware based solution is not possible. The CF card does wear handling internally, so there is no use in trying not to write too often to the same address (which can be ensured eg by JFFS2). You just need to switch off maintaining the last access date (and whatever read statistics).

(This was already discussed here several times and no solution was found.)

SD card with JFFS2 or YAFFS

SD-cards behave in the same way as CF cards, as they have internal wear leveling.

Don't use an journaling file system on flashcards with internal controller (SD,MMC,CF), as they give your product a shorter lifetime because of accelerated wear out.

JFFS2 is only applicable if you have flash that is directly addressable by the CPU.