Verifying the integrity of an SD card


This short guide will walk you through the process of ensuring your SD/microSD card is free of errors. It is intended for situations in which an illegitimate or failing SD/microSD card may be causing issues with booting, running or otherwise using your system.

Please ensure you follow all steps and understand the instructions.

This guide is written with Windows users in mind. The process and steps will be similar for Mac users, and I assume anyone smart enough to use Linux knows how to copy and paste.


  1. Create a new folder on your desktop named "SD".
  2. Open a file explorer window and navigate to the root of your SD/microSD card. The root is the first thing you see when you open your SD card, but do not open any folders.
  3. Select all files and folders in the window. If on Windows: click inside the open window and hold
    Control/CTRL
    (Mac users Command) and, while holding
    Control
    , press A. All items in the window should now have a transparent blue highlight.
  4. Right click any highlighted item on the list and select
    Copy
    . (You may also hold
    Control
    and press C.)
  5. Without closing the current window, open the folder on your desktop named "SD".
  6. Click inside the open window and then either hold
    Control
    and press V, or right click and select
    Paste
    .
  7. Once this operation has finished, deselect these items and switch back to your open SD/microSD card root window.
  8. Select all items on your SD card again, and delete them with the
    Del/Delete
    key, or by right clicking any item and selecting
    Delete
    to delete all selected items. In order to achieve reliable results using this test, the card in question should be empty at this point.
  9. Format your SD/microSD card using one of the recommended tools (see bottom of page), making sure it is a full format, NOT quick format (or equivalent), fat32 format type and 32kb/32768 allocation size. It will take a while.
  10. Follow instructions here. This will take a while too. Linux users should instead follow this. Mac users here.
  11. If it passes, delete all the h2test files and move your own files back from the "SD" folder on your desktop, then try what you were doing again. If there is any failure whatsoever, you will probably need a new SD card.

Note: This test is intended to rule out the possibility of a bad card. While a format + test may fix some corruption or hardware failure issues temporarily, if you have had issues with corrupted files, Windows asking to format the drive etc, you should buy a new SD card at your earliest convenience. Flash storage (ie SD cards) are not meant as a long term storage solution and are prone to failure for absolutely no reason.

Suggested format tool for Windows
Suggested format tool for Linux
Suggested format tool for MacOS