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.
- Create a new folder on your desktop named "SD".
- 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.
- 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 holdingControl, press A. All items in the window should now have a transparent blue highlight.
- Right click any highlighted item on the list and select Copy. (You may also holdControland press C.)
- Without closing the current window, open the folder on your desktop named "SD".
- Click inside the open window and then either hold Controland press V, or right click and selectPaste.
- Once this operation has finished, deselect these items and switch back to your open SD/microSD card root window.
- Select all items on your SD card again, and delete them with the Del/Deletekey, or by right clicking any item and selectingDeleteto delete all selected items. In order to achieve reliable results using this test, the card in question should be empty at this point.
- 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.
- Follow instructions here. This will take a while too. Linux users should instead follow this. Mac users here.
- 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.