
Now that the partition is created, we can format the drive. For that, execute the below command create partition primaryĨ. After cleaning the drive, it’s time to create the primary partition. Execute the below command to clean the USB drive.

After selecting the disk, you need to clean it. Once you replace the dummy command with the actual disk number, the command looks like this. After identifying the USB drive from the list of disks, type the below command and press Enter to execute the command. So my USB drive is represented as “Disk 2” with 3818MB.ĥ. For instance, I’ve plugged in a 4GB pen drive. You can generally identify the USB drive using its size. Execute the list disk command to list all the disks in your system.Ĥ. You will now be inside the Diskpart utility. To format the USB drive, we need to use the Diskpart tool. Search for cmd in the start menu, right-click on Command Prompt and select “ Run as Administrator.”Ģ. After that, open the Command Promot window as admin. With that, you are done formatting the USB drive from Command Prompt.ġ.Finally, close the Command Prompt window.Execute the “exit” command to exit the diskpart tool.Run the “format fs=ntfs quick” command.Execute the “create partition primary” command to create a new partition.Run the “clean” command after selecting the disk.

Execute the “select disk diskNumber” command where “diskNumber” is the actual disk number.Find the USB disk number from the list.Type “diskpart” and press “Enter” in the command window.All you have to do is select the drive and execute a specific format command. Format USB Using CMDįormatting a USB drive via Command Prompt is far easier than you think.

The below method works in Windows XP, Vista, 7, 10, and 11. Formatting a drive deletes all data, and the process is often irrecoverable. Warning: before formatting the USB drive, back up the date in it. Follow them one by one, and you will have a formatted drive in a few seconds. Below are the steps needed to format a USB drive from Command Prompt. You can try formatting the USB drive from Command Prompt in those situations.
