How To Fix A Corrupted Pen Drive Or SD Card Using CMD

How to Fix or Repair a Pen Drive or SD card That’s Broken or Not Recognized

An age-old problem. Every computer user has faced this problem. What I speak of, is the tragedy of the corrupted USB Pen drive or SD Card.

No matter what you do, at some point, your computer will simply refuse to read your USB drive. Fortunately, though, there are ways to rectify this with one only needing to use a command prompt.

Step 1:

Connect the corrupted drive to your machine

Step 2:

Open the command prompt either by typing cmd in the Start menu search bar or by hitting Windows Key + R  followed by typing cmd in the dialog box that pops up.

Step 3:

In the command prompt, enter the following commands.

Type diskpart and press Enter.

Next type list disk and press Enter.

Step 4:

Then type select disk followed by the number of your disk and hit enter

Step 5:

After the disk is selected, you will need to type clean into the command prompt and hit enter.

Step 6:

Next command is creates partition primary.

Step 7:

Type active and hit enter followed by select partition 1.

Step 8:

In the last step, type format fs=fat32 and press enter. Once this step is completed you should find your USB drive working as good as new. If not, go back through the steps and see what you missed. A screenshot of how the process looks is attached below.

format fs=fat32

Subscribe to our newsletter

To be updated with all the latest news

Delwyn Pinto
Delwyn Pinto
A person proud to have an alternate view


  1. Am trying all these steps many times on different different pendrives its not working because corrupted pendrives same as their initial conditions.

  2. A corrupted Pen Drive can be recovered by formatting it. But when it is badly affected by the viruses, then sometimes this technique doesn’t work. In such cases, you can go for a command prompt. Open the cmd box and type the command like format fs=fat32, and you Pen Drive will be as good as a new one.

  3. When I type clean and Enter there’s a message:”Diskpart has encountered an error: Data error (Cyclic redundancy check)See the system Event log for more information. What’s wrong?


Please enter your comment!
Please enter your name here

Subscribe to our newsletter

To be updated with all the latest news

Read More

Suggested Post