Has your Pen Drive or SD card stopped working suddenly? Are you tired of formatting it again and again? And still your storage devices continue to malfunction.

Most of you might have faced this problem with your Pen Drives and SD cards. If yes, then we are here to help you solve this problem and fix your corrupted USB drive.

We can repair a corrupted pendrive or SD card using Command Prompt in windows. This How to guide will help you do that in a simpler way. In this technique all you need is to enter some commands in command prompt and windows will forcefully format your corrupted pen drive or SD card.

Follow this simple steps and you can do that in just a few minutes.

Step-1:

Connect the corrupted pen drive or SD card to your computer.

Step-2:

Now open Command window. You can actually do this in several ways. Press Windows Key+R and type cmd in the dialog box and click on OK. This will let you open command window. Also you can click on start button and type cmd in search box and select the command prompt program.

Step-3:

Once done with opening the command prompt window, its time to enter some commands into it.

Type diskpart and press Enter.

Diskpart command window
Diskpart command window

Next type list disk and press Enter. This will display a list of all the storage devices connected to your computer.

Step-4:

Now type select disk <the number of your disk> and press Enter. Here the number of your disk is the number assigned to your removable storage.

Note: Make sure you enter the number correctly. Otherwise, you may format your internal hard drive.

Step-5:

After selecting the disk accurately, type clean and press Enter. Next type create partition primary and hit Enter.

Step-6:

Now type active, and press Enter.

Type select partition 1, and hit Enter.

Step-7:

Finally, type format fs=fat32 and hit Enter. You can write ntfs instead of fat32 to format drives larger than 4 GB.The format process will complete in a few minutes. Do not close the window untill the process is done.
Here is the entire process.

Diskpart final image.jpeg
Diskpart final list of commands

Once done your USB drive is back to normal again.

If you have faced any problems or need help then please let us know through comments. Don’t forget to share this article.

For more such How to’s Follow us on Facebook, Twitter and Google+.

  • How to repair, ,pen drive , status no media , ,can help me…

    • Ganesh Venigalla

      We didn’t understand can you provide more info

  • Andre

    There is to fix my hard drive it has got Raw has a file system…if there is a way to fix this please tell me

    • Ganesh Venigalla

      Can you tell us a bit clearly.

  • pathuahir

    how to format my hp pen drive the write protected in the error

  • Unnat

    hi…i am stuck at step 5…cant create partition primary after clean . it says

    No usable free extent could be found. It may be that there is insufficient
    free space to create a partition at the specified size and offset. Specify
    different size and offset values or don’t specify either to create the
    maximum sized partition. It may be that the disk is partitioned using the MBR disk
    partitioning format and the disk contains either 4 primary partitions, (no
    more partitions may be created), or 3 primary partitions and one extended
    partition, (only logical drives may be created).

    Please help

    • Ganesh Venigalla

      Have you clearly selected the USB drive?