How to repair corrupted sd card using cmd diskpart - 3 ways

Background

SD card get damaged and lost all the data? Don’t worry, you can repair the corrupted sd card using cmd command prompt diskpart without data loss.

My SD card gets corrupted, how to fix?

"I wantted to format the sd card yesterday, but I don’t know why Windows failed to format the card, and the device became inaccessible, the device showed 0 byte, I know this means the sd card got corrupted. I have important data on the sd card, is there any solution to repair the damaged sd card without data loss?"

Quick fix -> 7 free sd card repair tools better than cmd

How to repair the corrupted sd card without data loss? It is not that hard if you are an advanced user. However, we won't recommend computer starters to repair sd card using cmd since it is a little complicated that can easily get lost or the cmd won't work for you.

Repair corrupted sd card using cmd (diskpart and chkdsk)

Part 1 - Repair damaged sd card, microsd card using diskpart [3 ways]

CMD command prompt diskpart is a Windows system tool which can perform a lot of operation performance. If your device becomes raw drive, then you can use CMD command prompt diskpart to repair it. You just need to convert the file system from raw to NTFS, FAT32, or other file system. But you need to know there are some risks when you use this system command operation tool.

Attention:

You need to pay attention to the process when you use CMD command prompt, which can make your another hard drive get formatted by mistake.

This process will erase every file on your memory card, you need to recover them at first before using cmd. How? iCare Pro Free is able to help, which is listed at the third part of this article.

Parepartions:

  1. Run CMD in your computer by openning Run and type 'cmd/diskpart' to open.
  2. Open your computer and remember which drive letter your memory card has and remember it correclty since it would be used in the cmd.

Repair corrupted sd card with cmd diskpartStart cmd

Note: If you type 'cmd' or 'CMD' in the run box to open, next you will need to type 'diskpart' in the coming up window to start the journey of diskpart.

CMD Way 1 - format * /fs:fat32

Type“format F: /fs:fat32”(F is the drive letter that you need to replace with your own corrupted sd card drive letter that you need to open your computer to check which drive letter does your computer assign it with before all the steps.)

Repair corrupted sd card with cmd diskpartRepair damaged sd card using cmd

CMD Way 2 - List volume, select, format

  1. Step 1 - list volume
  2. Step 2 - select volume 4
  3. Step 3 - format fs=fat32 quick
  4. Step 4 - exit

This way of cmd does not require any drive letter from you that can be selected in the listed volumes

Repair corrupted sd card with cmd diskpartRepair corrupted sd card with cmd diskpart

CMD Way 3 - List disk, clean, create partition primary, format

  1. Step 1 - diskpart
  2. Step 2 - select disk 1 (you need to replace 1 with your own memory card volume number)
  3. Step 3 - clean
  4. Step 4 - create partition primary
  5. Step 5 - format fs=ntfs quick (or you may use 'format fs=fat32 quick')
  6. Step 6 - exit

Repair corrupted sd card with cmd diskpartRepair corrupted sd card with cmd diskpart

After these steps, you can convert your device file system into FAT32, you can also change the fat32 into ntfs if you want to convert your file system into NTFS.

This operation will format your disk, if you have important data on it, recover them first.

If your sd card becomes inaccessible, you can try CHKDSK to check the disk.

Part 2 - Repair damaged sd card using chkdsk

Chkdsk is able to fix errors on digital devices that you may use it the following way.

Preparation: Open your computer 'This PC' and then see what drive letter the computer has labled your memory card.

  • Firstly, start cmd
  • Secondly, type chkdsk h:/f (you need to replace h with your own memory card drive letter that appears in your computer)

cmd chkdskk to repair sd card

* /f - f stands for fixing damaged devices.

Video - How to repair sd card using chkdsk

Recommend: 5 free memory card repair tools download, the sd card repair tools are much easier to manage for repairing sd card. Or try 8 ways to repair damaged sd card

Note: Can I fix corrupted sd card using cmd attrib? In fact chkdsk is better for repairing damaged sd card than attrib.

How to recover data from corrupted sd with iCare Pro

Before you run CMD diskpart to repair the corrupted sd card, you’d better to recover the data with a professional data recovery program like iCare Data Recovery pro. It is a 100% safe and working data recovery program which can deal with all kinds of data loss problems. And its wonderful compatibility will enable you to recover data on the Windows 10/8/7/XP/Vista.

Free Download

Then follow these simple instructions to recover your data on the corrupted sd card.

Step1: Download and install iCare Data Recovery on your computer.

Step2: Run the program on your computer, enter “Deep Scan Recovery”.

Recover corrupted sd card data with iCare Data Recovery ProRecover corrupted sd card data with iCare Data Recovery Pro

Step3: After Scanning, you can preview the found data, select your needed data to recover, save it to another drive.

Recover corrupted sd card data with iCare Data Recovery ProRecover corrupted sd card data with iCare Data Recovery Pro

Free Download

The data recovered should be saved at another place to avoid rewriting the sd card. If you have already formatted the corrupted sd card, you can also use iCare Data Recovery pro to recover the formatted data. But our advice is to recover data before you use CMD command prompt.

Recommend: 5 free sd card repair tools intead of command promot to repair damaged memory card.

Last updated on May 10, 2021

Related Articles