The biggest problem with USB drives and SD Cards is that they easily get corrupted. After that, every time you plug your memory card or USB drive into your PC, it asks you to format it. Even if you try to format, it gives an error saying, “Windows was unable to complete the format“. Now, you have to format this corrupt USB or SD card using Diskpart before you can start using it again.
Diskpart is a command-line disk management utility in Windows. It comes in handy when conventional methods fail to format a disk whether USB or SD card. So, if your PC is still detecting your corrupt SD card or USB drive, Diskpart can help you make it usable again.
Repair Corrupt Memory Card or USB Drive using Diskpart
So, in this tutorial, we will show you how to format a corrupt USB or SD card using Diskpart in Windows. We have used a Windows 11 PC in this tutorial. However, the steps are identical for Windows 10 or Windows 7 also. So, you won’t have any trouble following them.
Before we move to detailed steps, check the following video.
NOTE: This tutorial doesn’t work in case of hardware errors in your SD card or USB drive. This means, if your PC doesn’t detect your USB or SD card, you can’t fix it using this method.
Step 1: Start Command Prompt with Administrator Rights
First of all, insert the corrupt USB drive or SD Card into your PC. After that, start Command Prompt as administrator from the Start menu. Simply search for
cmd on Start and click Run as Administrator under Command Prompt.
Command prompt with Administrator privileges will start.
Besides Command Prompt, you can also use Windows Terminal in Windows 11.
Step 2: Start Diskpart and List your Disks
Now, we will use Diskpart to perform disk management tasks on your corrupt USB or SD card. So, type
diskpart and press Enter in Command Prompt to start the Diskpart utility.
Now type the following command and press Enter.
Diskpart will list all available disk drives in your PC including the USB drive or SD card plugged in your PC. Here, note down the disk number of your corrupt USB disk or SD card. In our case, the disk number is 1.
Step 3: Select your Disk and Clean it using Diskpart
Now, after you have noted down the disk number of your corrupt USB or SD card, we will select it in CMD. After that, we will be able to format that corrupt USB or SD card. So, type the following commands and press Enter after each command.
select disk 1 clean
Your USB drive or Memory Card has been cleaned completely. All the partitions and data on it have been destroyed. We will have to create partitions again.
SEE ALSO: 10 Cool Command Prompt Tricks for You.
Step 4: Create Partition and Format Corrupt USB or SD card using Diskpart
Now, it’s time to create the partition on your corrupt USB or SD card again. After creating the partition, we will format it and then assign a drive letter to it. So, type the following commands one by one and press Enter every time.
create partition primary select partition 1 format fs=ntfs quick
Formatting may take some time depending on the size of the drive. In this tutorial, we have used the NTFS file system for formatting the corrupt USB drive or the SD card. If you wish to use the FAT32 file system, use
format fs=fat32 quick command instead.
Step 5: Verify your USB or SD card in File Explorer
After formatting is done and you have assigned a drive letter to your corrupt USB drive or SD card, you can close Command Prompt.
After that, go to This PC and check your USB drive or SD card. As you can see, it has been successfully formatted. Now, you can start copying your files on it.
Format your Corrupt USB or SD Card using Diskpart Utility in Windows
Now, your corrupt Memory Card (SD card) or USB drive is ready to be used. You can test it by copying some files on it. If copying work successfully, then your SD Card or USB has been repaired successfully. However, if Diskpart doesn’t work for you, you can also try the Chromebook Recovery utility to format your corrupt SD card or USB drive.
Hope you liked this tutorial. Feel free to share your thoughts and suggestions in the comment section down below. We also suggest you subscribe to our newsletter to receive the latest updates via email.