World Library  
Flag as Inappropriate
Email this Article

Flash file system

Article Id: WHEBN0020534511
Reproduction Date:

Title: Flash file system  
Author: World Heritage Encyclopedia
Language: English
Subject: Write amplification, Solid-state drive, Flash memory controller, Phison, Small Form Factor Committee
Publisher: World Heritage Encyclopedia

Flash file system

A flash file system is a file system designed for storing files on flash memory devices. These are becoming more prevalent as the number of mobile devices is increasing, the cost per memory size decreases, and the capacity of flash memories increases.


While a block device layer can emulate a disk drive so that a disk file system can be used on a flash device, this is suboptimal for several reasons:

  • Erasing blocks: Flash memory blocks have to be explicitly erased before they can be written to. The time taken to erase blocks can be significant, thus it is beneficial to erase unused blocks while the device is idle.
  • Random access: Disk file systems are optimized to avoid disk seeks whenever possible, due to the high cost of seeking. Flash memory devices impose no seek latency.
  • Wear leveling: Flash memory devices tend to wear out when a single block is repeatedly overwritten; flash file systems are designed to spread out writes evenly.

Log-structured file systems have all the desirable properties for a flash file system.[1] Such file systems include JFFS2 and YAFFS.

Because of the particular characteristics of flash memory, it is best used with either a controller to perform wear leveling and error correction or specifically designed flash file systems, which spread writes over the media and deal with the long erase times of NAND flash blocks. The basic concept behind flash file systems is: when the flash store is to be updated, the file system will write a new copy of the changed data over to a fresh block, remap the file pointers, then erase the old block later when it has time.

In practice, flash file systems are only used for Memory Technology Devices (MTDs), which are embedded flash memories that do not have a controller. Removable flash memory cards and USB flash drives have built-in controllers to manage MTD with dedicated algorithms,[2][3] like wear leveling, bad block recovery, power loss recovery, garbage collection and error correction, so use of a flash file system has limited benefit.


The earliest flash file system, managing an array of flash as a freely writable disk, was TrueFFS by M-Systems of Israel, presented as a software product in PC-Card Expo, Santa Clara CA, July 1992 and patented in 1993.[4]

One of the earliest flash file systems was Microsoft's FFS2, for use with MS-DOS, released in autumn 1992.[5] FFS2 was preceded by an earlier product, called "FFS", which however fell short of being a flash file system, managing a flash array as WORM (Write Once Read Many) space rather than as a freely writable disk.

Around 1994, the PCMCIA, an industry group, approved the Flash Translation Layer (FTL) specification, based on the design of M-Systems' TrueFFS. The specification was authored and jointly proposed by M-Systems and SCM Microsystems, who also provided the first working implementations of FTL. Endorsed by Intel[6] and other industry leaders, FTL became a popular flash file system design in non-PCMCIA media as well.

Linux flash filesystems

JFFS was the first flash-specific file system for Linux, but it was quickly superseded by JFFS2, originally developed for NOR flash. Then YAFFS was released in 2002, dealing specifically with NAND flash, and JFFS2 was updated to support NAND flash too.
UBIFS has been merged since Linux 2.6.22 [7] in 2008. UBIFS has been actively developed from its initial merge.[8] UBIFS has documentation hosted at along with JFFS2 and MTD drivers. Some initial comparison show UBIFS with compression faster than F2FS.[9]
LogFS, another Linux flash-specific file system, is currently being developed to address the scalability issues of JFFS2.
F2FS (Flash-Friendly File System) was added to the Linux kernel 3.8.[10] Instead of being targeted at speaking directly to raw flash devices, F2FS is designed to be used on flash-based storage devices that already include a flash translation layer, such as SD cards.[11]


These are union filesystems, that allow multiple filesystems to be combined and presented to the user as a single tree. This allows the system designer to place parts of the operating system that are nominally read-only on different media to the normal read-write areas. OpenWrt is usually installed on raw flash chips without FTL. It uses overlayfs to combine a compressed read-only SquashFS with JFFS2.

Translation layers

Then there are some subsystems often called flash file systems but are more truthfully block drivers since they do not actually have a file system interface. These include:


Despite the name, TrueFFS is not a file system at all. It does not provide a file system interface but a disk interface. TrueFFS is correctly termed a flash translation layer. True flash file system or TrueFFS is designed to run on a raw solid-state drive (most modern consumer SSDs are not raw). TrueFFS implements error correction, bad block re-mapping and wear leveling. Externally, TrueFFS presents a normal hard disk interface.

TrueFFS was created by M-Systems [4] on well-known "DiskOnChip 2000" product line, who were acquired by Sandisk in 2006. A derivative of TrueFFS, called TFFS or TFFS-lite, is found in the VxWorks operating system, where it functions as a flash translation layer, not as a fully functional file system. A flash translation layer is used to adapt a fully functional file system to the constraints and restrictions imposed by flash memory devices.


ExtremeFFS is a technology being developed by SanDisk allowing for improved random write performance in flash memory compared to traditional systems such as TrueFFS. Sandisk claims that the technology improves random access speed in Solid-state drives by a factor of 100.[12] The company plans on using ExtremeFFS in an upcoming multi-level cell implementation of NAND flash memory.[13]

See also


  1. ^ Arnd Bergmann (2011-02-18). "Optimizing Linux with cheap flash drives".  
  2. ^ Phison's USBkey controller PS2251-63
  3. ^ OpenNFM: An open source NAND FTL for SSD and embedded storage module
  4. ^ a b US patent 5404485, "Flash file system, Amir Ban" 
  5. ^ Microsoft FFS2 patent
  6. ^ "Understanding the Flash Translation Layer (FTL) Specification". 
  7. ^ Jonathan Corbet (2008-04-02). "UBIFS". LWN. 
  8. ^ Richard Weinberger (2012-09-24). "UBI: Fastmap request for inclusion". LKML. 
  9. ^ Neil Brown (2012-12-11). "JFFS2, UBIFS, and the growth of flash storage". LWN. 
  10. ^ "Filesystems and storage". Kernel Log - Coming in 3.8.  
  11. ^ Neil Brown (2012-10-10). "An f2fs teardown".  
  12. ^ "SanDisk Technical Expertise and Metrics".  
  13. ^ Mellor, Chris (November 28, 2008). "SanDisk flash holds secret flash sauce till after Christmas". Retrieved December 2, 2008. 

External links

  • Presentation on various Flash File Systems - 9/24/2007
  • Article regarding various Flash File Systems - 2005 USENIX Annual Conference
  • Survey of various Flash File Systems - 8/10/2005
  • Anatomy of Linux Flash File Systems - 5/20/2008
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.