How to Format a Hard Drive using Command Prompt

There are many ways of formatting a drive, one of them is using command prompt. I will walk you through the steps of using the Microsoft command prompt Diskpart utility to Clean, format, and assign a drive letter using command prompt.

Right click Start > select Command Prompt (Admin).

open-command-prompt-as-admin

Now type “DISK PART” Command Line and press Enter to start the Disk Part tool.

open-command-prompt-as-admin-3

Next type “list volume” and press Enter to display a list of volumes. Here you can identify the volume we would like to format. On this tutorial ill be formatting “Drive F a USB” but the same applies to external or internal hard drives.

Note: Be careful selecting the wrong volume you might loose all data creating a huge disaster.

open-command-prompt-as-admin-2

Type “select volume  [#]” and press Enter, [x] being the volume you wish to format.

open-command-prompt-as-admin-1

Type “clean” and press Enter to remove all partition or volume formatting from the selected disk.

open-command-prompt-as-admin-9

Type “create partition primary” and press Enter to create a primary partition on the current disk. Once the partition has been created, it’s possible to create multiple partitions if you want. To partition type size=[x] where [x] is the size in megabytes (MB) you would like the partition to be.

Format-a-hard-drive-Via-Command-Prompt

Type “format fs=ntfs quick label=USB” and press Enter to perform a quick format, using ntfs file system and labeling the drive “USB”. You may wish to use the fat32 file system instead of ntfs.

open-command-prompt-as-admin-4

Lastly type “assign letter [z]” and press Enter, where [z] is the letter you would like to assign the drive.

open-command-prompt-as-admin-5

Type “exit” command to close the Disk Part tool. You should be able to seesee the freshly formatted drive in My Computer, ready to use.

Latest Comments

  1. murat
  2. Dotun

Leave a Reply