SD cards are commonly used storage media widely applied in digital cameras, mobile phones, surveillance cameras, dashcams, and other devices. However, during use, have you ever encountered situations where the SD card suddenly cannot be formatted? Whether it's an error after clicking format, the system prompting "The disk is write protected", or the SD card becoming RAW format and unrecognizable, these issues can be frustrating. This tutorial will provide you with comprehensive solutions to help you resolve SD card formatting problems.
Before solving the problem, we first need to understand the common causes of SD card formatting failure:
💡Tips: microSD cards typically do not have this switch, but if used with a card adapter, the write protection lock on the adapter can also cause issues.
Important Reminder: Before attempting any formatting operation, if there are important files on the SD card, please first use data recovery software to try recovering files. Once formatting is successful, data cannot be recovered!
If your SD card can still be recognized (even if it cannot be formatted), you can try using Hasleo Data Recovery to recover important data first.
The main advantages of Hasleo Data Recovery include:
Step 1. Download, install, and run Hasleo Data Recovery. On the main interface, you will see three recovery modes. Please select "Deep Scan Recovery" mode.

Step 2. Select the drive corresponding to your SD card, then click the "Scan" button.

Step 3. After scanning completes, all found files will be displayed in the interface. You can quickly locate target files by path or file type. Before recovery, preview images, documents, videos, and other files to confirm they are intact. Select the files you want to recover, then click the "Recover" button.

💡Tips:
This is the simplest but most easily overlooked issue. First check if there is a write protection switch on the side of your SD card.
Step 1. Remove the SD card and carefully examine the side of the card. Most SD cards have a small sliding switch on the side.
Step 2. Make sure the switch is slid to the "unlock" position (usually upward or toward the contact side).
Step 3. Reinsert the SD card into the card reader and try formatting again.
💡Tips: If your SD card does not have a physical write protection switch, or the switch is already in the unlock position but the problem persists, please continue with the methods below.
When the SD card cannot be formatted through normal methods, you can try using Windows built-in Disk Management tool.
Step 1. Press Win + R to open the Run dialog, type diskmgmt.msc, then press Enter to open Disk Management.
Step 2. In the Disk Management window, find your SD card (usually displayed as "Removable Disk"). Please right-click on the SD card partition area (the bar showing capacity and drive letter), not the disk label on the left side.
Step 3. In the popup menu, select "Format...".

Step 4. In the Format dialog, select the file system according to your needs:
💡Tips: If the format option is grayed out or you get an error after clicking, the SD card may have more serious issues requiring other solutions.
Step 5. Check "Quick Format", then click "OK".
If Disk Management also cannot format the SD card, you can try using the diskpart command-line tool for forced formatting.
⚠️Warning: This operation will erase all data on the SD card. If there are important files on the SD card, please first try the data recovery steps.
Step 1. Press Win + R to open the Run dialog, type cmd, then press Ctrl + Shift + Enter to open Command Prompt as administrator.
Step 2. In the Command Prompt window, enter the following command to enter the disk partition tool:
diskpart
Step 3. List all physical disks and find your SD card (judge by capacity, usually "Removable" type), and note the disk number corresponding to your SD card (for example, Disk 2).
list disk
Step 4. Select the disk corresponding to your SD card (please make absolutely sure the number is correct):
select disk 2
⚠️Tips: Replace 2 with the actual SD card disk number shown in Step 3. If you select the wrong disk, it will cause data loss on other storage devices!
Step 5. Execute the following commands in sequence to clear the disk, create a partition, and format:
clean
create partition primary
format fs=fat32 quick (or format fs=exfat quick for large capacity cards)
assign
Step 6. After completion, type "exit" to exit diskpart.
Important: Before executing the clean command, make absolutely sure you have selected the correct disk. Selecting the wrong disk may cause data loss on other storage devices!
If the SD card shows as RAW format or file system is corrupted, you can try using the chkdsk command to repair it.
Step 1. Open Command Prompt (as administrator).
Step 2. Assuming your SD card is on drive D, enter the following command:
chkdsk D: /r
Parameter explanation: /r: Locates bad sectors and recovers readable information
Step 3. Wait for chkdsk to complete scanning and repair.
💡Tips: If the SD card displays as "No Media", or capacity shows as 0 MB / unrecognizable in Disk Management, or chkdsk reports "Access denied as the volume is RAW", there is likely serious physical damage, main controller failure, or poor contact. At this point, chkdsk cannot repair. Please try: replacing the card reader or USB port, or testing on another computer.
Prevention is always better than cure. Here are best practices for protecting SD card health and extending its service life:
Properly Eject SD Card
After using the SD card, be sure to properly eject it using the "Safely Remove Hardware" function in the system tray. Wait for the system to prompt "Safe to Remove" before taking it out. Forcing removal may cause file system corruption or data loss.
Avoid Removing During Data Transfer
During copying, deleting, or formatting files, do not remove the SD card. Wait for the operation to complete and confirm before safely ejecting.
Use High-Quality Card Readers
Low quality card readers may cause poor contact, insufficient power supply, or signal interference. It is recommended to use brand-name card readers to avoid SD card or data damage due to peripheral issues.
Regularly Backup Important Data
SD cards as storage media have the risk of sudden damage. Please regularly backup important data to your computer hard drive, cloud storage, or other reliable devices.
Avoid Important Write Operations When Battery Is Low
When phone, camera, or other device battery is low, it is recommended to connect to power or replace the battery before performing important read/write operations, to prevent data corruption due to unexpected device shutdown.
Pay Attention to Storage Environment
Avoid exposing SD cards to extreme temperatures, humidity, strong static electricity, or strong magnetic fields. When storing, place them in protective cases or card adapters to prevent physical damage.
SD card cannot be formatted is a common but frustrating problem. Through the methods introduced in this tutorial, in most cases you can successfully resolve the issue. It is particularly important to note that data recovery should be performed before formatting. If there are still important data on the card, please first use professional data recovery software to export the data. Data still has a high chance of recovery after quick formatting, but full formatting will significantly increase recovery difficulty. Therefore, it is crucial to develop the habit of backing up or recovering data before operations.
If you have tried all methods but still cannot format the SD card, the SD card may have physical damage. In this case, it is recommended to purchase a new SD card, and develop the habit of regularly backing up important data in daily use. This is the best strategy for protecting data security.