This article shares following information related to Diskpart command
Diskpart is a command line which works under Windows operating system to manage disk space such as create partition, merge partition, extend partition, format partition, delete partition, set active partition and so on.
Diskpart command utility is able to work in Windows 2000, XP, Vista, 7, 8, 10. The methods to open Diskpart command vary, depending on different Windows platform.
Click "Start" button > "Run" > type "diskpart.exe" and press "Enter" button
Or you can click "Start" button on > "Run" > type "cmd" and press "OK" button > type "diskpart" and press "Enter"
Click "Start" button > type "cmd" in the search bar > right click "cmd.exe" and choose "Run as administrator" > type "Diskpart" and press "Enter"
Click Windows + X keys at the same time > select Command Prompt (Admin) > type type "diskpart" and press "Enter"
It does not matter which Windows operating system is running on your computer, you can follow the steps below to format an internal hard disk partition on Windows PC after running diskpart command:
Step1. Type list disk and press Enter
Now, you will see a list of disk which shows all disks on your computer.
Step2. Select a disk that you want to format by type select disk 0 (e.g. you want to format disk 0) and press Enter.
Now, it will show a message saying disk 0 is now the selected disk.
Step3. Type list volume and press Enter button to show all volumes
Step4. Type format fs=ntfs label=volume label quick and press Enter to execute the format. If you want to format the volume to FAT32 file system, you can type format fs=fat32 label=volume label quick
Pay attention: Volume label refers to the label of the drive that you want to format, such as the image showing below. The volume label of the partition is "My Documents"
When the format is completed, you will see message showing "Diskpart successfully formatted the volume"
If you need to use Diskpart to format a USB flash drive, memory card, external hard drive or pen drive on your computer, you can follow the similar guide when run Diskpart to format a hard disk partition but it has a little difference. Therefore, you can follow the guide below to format a removable digital device whether it is memory card, portable hard drive or flash drive:
Step1. Type list disk and press Enter to show all disks on your computer.
Step2. Type select disk 2 (disk 2 is the digital device you want to format) and press Enter
Step3. Type clean
Step4. Type create partition primary
Step5. Type Active
Step6. Type format fs=ntfs label= "label of digital device" quick without quotes and press Enter to format it to NTFS file system or type format fs=fat32 label= "label of digital device" quick without quotes and press Enter to format the digital device to FAT32 file system.
Diskpart is a command prompt that can run under Windows XP operating system. You can run diskpart.exe to format partition, delete partition, create partition, etc on Windows XP, but the format feature is not available in Windows XP. In other words, you cannot run Diskpart command to format any internal hard disk partition or removable disk in Windows XP.
Pay attention: Windows XP does not allow its users to run Diskpart command to execute any operation on a removable device like memory card, USB drive, pen drive, external HDD.
"Windows was unable to complete the format" is an error message showing up by Window platform when you try to format an internal hard disk or removable disk that turns to RAW file system and asks to reformat. When a digital device asks to reformat, the most common methods that many uses would like to use is to format the device in My Computer or Disk Management. However, sometimes the format usually failed finally. If you encounter the similar problem on your computer, you can run Diskpart command to execute the format on your device. Sometimes, Diskpart command may work though format is not successfully in My Computer or Disk Management.
==> Please refer to Windows cannot complete the format for more information
PC failed to complete the format when you run Diskpart to perform formatting? This problem might result from any reasons. Below are some common messages you may receive when Diskpart failed to format a digital device:
1. Diskpart has encountered an error: Incorrect function. See the System Event Log for more information.
2. Diskpart has encountered an error: The device does not recognize the command. See the System Event Log for more information.
When you get the similar error messages above, probably the Windows system does not has the ability to format the device with the Diskpart command line. You can open System Event Log to check the detailed issue and fix the problem.
3. It shows "There are no fixed disks to show"
Usually, you may see this error message when you type list disk under Diskpart command. If you get this error message, probably the disk you want to format is corrupted and cannot be recognized by system.
==>> If you want to know why it failed to complete the format, please visit this page: Common reasons why windows cannot complete the format
==>> Get more ways to format a disk when Diskpart failed to complete the format, please refer to: How to fix unable to format problem