Klennet Storage Software

Amount of framgentation on memory cards

What is file fragmentation? Is it important?

File fragmentation is a feature of data storage. A file is said to be fragmented when it is stored on the media in several non-adjacent fragments instead of being stored in a one contiguous chunk. As long as everything works fine, the filesystem keeps track of where each part of every file is stored, and re-assembles files from fragments as needed. On rotational hard drives, fragmentation carries a performance penalty. On SSD and other flash media, like memory cards, there is no practical difference in access speeds.

As long as everything works, fragmentation is not an issue. Once something fails, fragmentation makes data recovery much more complicated, at least in some scenarios. By far the most common case when fragmentation matters is when files are deleted from some small media, or when a small media is formatted. Small media like memory cards or USB flash drives uses FAT filesystem, on which regular filesystem reconstruction does not work with fragmented files. Larger fixed disks which typically use NTFS do not suffer a decrease in recoverability.

How many files are fragmented?

Based on multiple recoveries of memory cards, current (March 2018) data is:

  • 3% of all JPEG images are fragmented. However, it is important to distinguish between thumbnail images, which some cameras store as separate files, and high-resolution image files. The breakdown is as follows:
    • 1% of thumbnails (less than 2 MP) are fragmented
    • 5% of high-resolution images (2 MP and higher) are fragmented
  • 79% of video files are fragmented. There is a significant difference between memory cards coming from cameras and phones, and memory cards from dashcam video recorders, with dashcam recorders producing close to 100% fragmentation. However, none of the real-life samples I have seen had less than 50% of its video files fragmented.

What can be done about that?

If you need recovery, my Klennet Carver will recover much of the typical fragmented video and pictures for you. The download is here. There are non-trivial system requirements, but all in all, it mostly works.


  • Keep backups.
  • On a regular hard drive, there is nothing special you need to do.
  • On a memory card used in handheld photo camera, you can format the card every time after copying all files from it, and ensuring the files are copied correctly and backed up. This will keep fragmentation at bay to some extent.
  • On a memory card used in a dash camera, there is nothing practical you can do.

Created Wednesday, March 7, 2018

I have a low volume mailing list, for news and tips, which I send out once or twice a month.
Subscribe if you are interested.