Fix SD Card Unreadable MBR Partition
In this article
If your SD card shows as unreadable or has an MBR partition error, the fix is usually to rebuild the Master Boot Record using Windows DiskPart or a third-party tool. This guide walks you through the steps to restore the card so it can be read and formatted again. You'll need a card reader, a Windows PC, and a backup of any data you want to keep.
What You'll Need
- A card reader (built-in or USB) that works with your SD card
- A Windows PC (the steps below are for Windows 10/11)
- A backup of any data on the card (if possible)
- Administrator access to the PC
Step-by-Step
- Insert the SD card into your card reader and plug it into the PC. If the card is recognized at all, skip to step 4. If not, proceed to step 2.
- Check if the card appears in File Explorer or Disk Management. Press Windows + X and select Disk Management. Look for a disk that shows as "Unallocated" or "Unknown" with a capacity matching your card.
- If the card is not detected at all, try a different card reader or a different USB port. If it still isn't detected, the card may be physically damaged—see the Troubleshooting section.
- Open Command Prompt as Administrator: Press Windows + R, type
cmd, then press Ctrl+Shift+Enter to run as administrator. Click "Yes" if prompted. - Run DiskPart: Type
diskpartand press Enter. This opens the DiskPart utility. - List disks: Type
list diskand press Enter. Note the disk number that corresponds to your SD card (e.g., Disk 1). Be very careful—do not select the wrong disk. - Select the SD card: Type
select disk X(replace X with the disk number) and press Enter. You should see a confirmation. - Clean the disk: Type
cleanand press Enter. This removes all partitions and data from the card. This is irreversible, so make sure you have backups. - Create a new MBR partition: Type
convert mbrand press Enter. This ensures the card uses the MBR partitioning scheme. - Create a primary partition: Type
create partition primaryand press Enter. - Format the partition: Type
format fs=fat32 quickand press Enter. (If the card is larger than 32GB, usefs=exfatinstead of fat32, as FAT32 isn't supported on larger cards by default.) - Assign a drive letter: Type
assignand press Enter. This gives the card a letter like E:. - Exit DiskPart: Type
exitand press Enter, then close Command Prompt. - Test the card: Open File Explorer and check that the card appears with the new drive letter. Try copying a small file to it to confirm it works.
Common Mistakes
- Selecting the wrong disk in DiskPart—this can wipe your hard drive. Always double-check the disk number and capacity before running
clean. - Skipping the backup—the
cleancommand erases everything. If you have important photos or files, try data recovery software before cleaning. - Using the wrong file system—FAT32 is fine for most SD cards under 32GB, but for larger cards, exFAT is required for compatibility with cameras and phones.
- Forgetting to remove the write-protect switch—many SD cards have a small slider on the side. If it's locked, the card will be read-only and you can't fix it until you slide it to the unlocked position.
Tips
- Use the SD Association's official formatter tool (sdcard.org) after cleaning the card—it often handles card-specific formatting better than Windows.
- If the card is used in a camera or phone, format it in that device after the DiskPart fix to ensure compatibility.
- If the card still shows as unreadable after the DiskPart steps, try a low-level format using the SD Card Formatter tool with the "Overwrite Format" option (this can take a long time).
- Keep a backup of important data on a separate drive—SD cards are prone to failure, and MBR corruption is often a sign of a failing card.
Troubleshooting
If the steps above didn't fix the card, try these in order:
- Check the write-protect switch on the side of the SD card. If it's in the locked position, slide it to the unlocked position and try again.
- Try a different card reader—some readers have issues with certain card types. Also try a different USB port.
- Use the SD Card Formatter tool (free from sdcard.org) instead of DiskPart. It may handle the card's controller better.
- Check if the card is detected in Disk Management but shows as "No Media"—this usually means the card's controller is dead, and the card is not recoverable.
- If the card is detected but DiskPart fails with an error like "I/O device error," the card is likely physically damaged. Try a different card, and consider data recovery services if the data is critical.
- If the card is detected but the capacity shows as 0 bytes, the card's firmware may be corrupted. Try the "clean" and "create partition" steps again, but if that fails, the card is likely dead.
Frequently Asked Questions
Will this fix a card that shows as "RAW" or "Unformatted"?
Yes, the DiskPart clean and format steps will rebuild the partition table and file system, which typically fixes RAW or unformatted errors, as long as the card's hardware is still functional.
Can I recover data from the card before cleaning it?
Yes, you can use data recovery software like Recuva, PhotoRec, or Disk Drill before running clean. However, if the MBR is corrupted, recovery may be partial. It's best to stop using the card immediately and recover to a different drive.
Why does my card show as "0 bytes" in Disk Management?
This usually indicates a corrupted partition table or a failing card. The DiskPart clean command may fix it if the controller is still working, but if not, the card is likely dead.
Is it safe to use DiskPart on an SD card?
Yes, as long as you select the correct disk number. DiskPart is a standard Windows tool, but it's powerful—always double-check the disk number to avoid wiping your hard drive.
Should I use FAT32 or exFAT for my SD card?
Use FAT32 if the card is 32GB or smaller, as it's compatible with most devices. For cards larger than 32GB, use exFAT—it's supported by modern cameras, phones, and Windows/macOS.
What if the card still doesn't work after following all steps?
If the card is not detected or DiskPart fails with I/O errors, the card's physical hardware is likely damaged. The best option is to replace the card. If the data is critical, contact a professional data recovery service.