How to use Diskpart to Format a Storage Drive using CMD

June 16, 2017 1758 Gulfam
Format memory card

Diskpart is a CMD command used to create a partition on your disk drive. Diskpart is used to fix corrupted disk drive by partitioning it once again. So if your disk drive is not responding when you connect it to your computer then you can fix it by doing repartition it using Diskpart. It fixed one major issue for me and save my money.

I have created a bootable pen drive for installing the Linux on my system. After installing when I connect it to my computer, the size of memory is reduced to 2MB. Now the only option is to partition it using Diskpart to restore its space. There are many other situations where you need it to format disk drive.

Note: This process will erase all your content and impossible to undo the changes.

Steps to follow to partition your disk drive using Diskpart

  1. Firstly connect your corrupted disk drive to the computer through USB cable. Your drive may or may not be shown in MY COMPUTER. For this article, I am using 8GB memory card which reduces to 2MB while creating a bootable drive. Format memory card

  2. Click on Windows button (left-bottom corner) and search for CMD and open it as Run as administrator. Format memory card

  3. Now type Diskpart in CMD window to run diskpart.exe windows tool. This command opens the diskpart.exe in a different window. Format memory card

  4. Now its turn to start run the CMD commands to partition your drive. Type the below first command in CMD and press enter
    list disk Format memory card This command list all the connected disk drives.

  5. Run next command for selecting the disk drive.
    select disk x
    Here x is a disk number. Just replace the x by disk number that you want to partition. Please be careful for selecting the disk drive. Format memory card

  6. Now run the below commands in CMD
    create partition primary
    format quick
    Format memory card When you type format quick and hit enter then format process is started and take some time to partition. Now you will see the actual size of the disk. For more detail view watch this video.

Happy formatting…