How To Repair Corrupted Flash Drive Using CMD.

Flash drives are small, ultra-portable storage devices which, unlike an optical drive or a traditional hard drive, has no moving parts.

Flash drives connect to computers and other devices via a built-in USB Type A or USB-C plug, making a flash drive a kind of combination USB device and cable.

Flash drives are often referred to as pen drives, thumb drives, or jump drives. The terms USB drive and solid-state drive (SSD) are also sometimes used but most of the time those refer to larger, not-so-mobile USB-based storage devices like external hard drive.

The importance of flash drives and storage devices can not be over emphasized

organizations and establishments depends on flash drives and external hard drives for back up of their information,however,these devices can be corruptn,making it necessary to repair them.To repair them these steps can be followed.


Using flash drives like pen drive, SD card, memory card, microSD card, external hard drives has become so common today. But, sometimes it happens that due to some unexpected reasons, your flash drives get corrupted or damaged. It becomes so frustrating situation then and people get confused and don’t get anything to do.

Corrupted USB flash drive is an old age problem. Almost every computer user has faced this common problem. It doesn’t matter what you do, at some point of time, your computer will reject to read your USB drive. But, have you ever thought about how USB flash drive gets corrupted?

Well, there could be various causes that can make your USB flash drive corrupted or damaged. Some of the causes are mentioned below:

Things That Can Make Your USB Flash Drive Corrupted

  • Virus or malware infection.
  • System files corruption.
  • Availability of bad sector.
  • Connecting USB flash drive to multiple PCs or Mac.
  • And so on…

It doesn’t matter whatever the causes are, there are few effective solutions that you can follow to know how to fix a corrupted flash drive.

And one of the popular methods to fix corrupted flash drive is by using CMD command.

So, here comes the solution section – how to repair a corrupted flash drive using CMD (command prompt)?

How To Fix Corrupted Flash Drive Using CMD (Command Prompt)

The CMD command which is also known as the command prompt is one of the high rated and successful solutions to repair corrupted, not working, damaged or unrecognized flash drive, pen drive, SD card or hard drive. It can also be used to repair corrupted external hard drive, SSD or HDD with ease.

Note: The solution works great on Windows 10/8/8.1/7 computer.

Below, follow the steps:

Step 1: Connect the corrupted flash drive (pen drive, memory stick, SD card or external hard drive) to your Windows computer.

Step 2: Click START and type CMD in the search bar and hit ENTER to open the command prompt. Alternatively, you can also open command prompt by pressing Windows Key + R followed by typing CMD in the RUN box that pops-up.

Step 3: Now in the command prompt box, type the following commands:

  • Type diskpart and hit ENTER button. After this type list disk and hit ENTER button.

Step 4: Next, type select disk followed by the number of your disk and press ENTER button. After your disk gets selected, type clean and press ENTER button.

Step 5: Next type create partition primary and hit ENTER.

Step 6: After this type active and press ENTER followed by select partition 1.

Step 7: Finally, in the last step type the following command format fs=fat32 and hit ENTER button.

A screenshot of the process is given below.

Repair corrupted Flash Drive Using CMD

After the completion of the process, you should find your USB drive working as good as new.

Alternatively, there is another step to fix/repair corrupted USB flash drive using CHKDSK command.

Repair Corrupted USB Flash Drive Using CHKDSK Command

Below follow the steps:

Step 1: Connect the corrupted flash drive to your PC.

Step 2: On your computer click Start and type CMD in the search bar and hit ENTER.

Step 3: A new command prompt window will get open.

Step 4: Now type the following command: chkdsk /X /f H: or chkdsk H: /f and hit ENTER. Here you need to replace the H: drive with your corrupted pen drive/SD card/USB drive.

Fix corrupted USB Flash Drive Using CHKDSK

Just wait for the process to get complete and then you should find your USB flash drive working as good as

Drop your comment.


Author: refuge_2020

Leave a Reply

Your email address will not be published. Required fields are marked *