> How to > Partition Master > How to Format USB/Hard Drive Using Diskpart Command Prompt

How to Format USB/Hard Drive Using Diskpart Command Prompt

Posted on Jan 16, 2018 by Brithny to Partition Master

Summary:
Seeking for a step-by-step guide that teaches you how to format a hard disk or USB flash drive using Diskpart Command Prompt? This article is just what you want!

In many cases, you are required to format a hard drive or removable devices like a USB flash drive or SD memory card for different reasons. It is not a difficult as Windows built-in format feature can assist you to do the job with simple clicks. But why there are so many users asked how to format hard drive from the command prompt?

When Do You need To Format Disk Or USB Using Diskpart Command Prompt?

Actually, in some special situations, for example: 

  • When Your hard drive or USB is not working properly because of data corruption or some other serious issues 
  • Or the hard drive is installing the Windows operating system

You will not be able to complete the format job with the free built-in format tool and sometimes you may also get the "Windows was not able to complete the format" error message. Being caught in such a situation, you have to choose DiskPart to deal with the problem. Next, let’s learn how to format the hard drive or USB flash drive from Diskpart command prompt.

[Guide] How To Format Disk Or USB Using Diskpart Command Prompt

Notice
Diskpart will permanently erase/destroy all data on the selected drive, making it impossible to undo any changes. So, before starting, please be certain that you are choosing and erasing the correct disk.

1. Connect the hard drive or USB that you want to format to your PC.
2. Press Windows + X key to open the Power User menu. Here, select Command Prompt (Admin) option.  
3. At the command prompt, type diskpart and press Enter:
4. Type list disk to list all the available drives and press Enter.
5. Type select disk + disk number ( for example, select disk 0) to select the drive you want to format and press Enter.
6. Type clean to clean the drive you have selected and press Enter.
7. Type create partition primary to create a partition on the cleaned disk and press Enter:
8. Type format fs=ntfs (or format fs=exfat) and press Enter to format the drive with NTFS or exFAT. 
9. Type assign letter=drive letter (for example, assign letter=E) to assign a drive letter and press Enter. 

[Easier Alternative] Try EaseUS free partition software to format a hard drive or USB

These are all the steps you should take if you want to format a hard drive or USB disk from Diskpart command prompt. Are you thinking it is a little bit complicated? If yes, here I think you may like EaseUS free partition software, a third-party tool that can make the job much easier.

1. Connect the hard drive or USB that you want to format to your PC.

2. Launch EaseUS Partition Master Free and right-click on the target drive and click Format partition.

select format partition to format a hard drive or USB

3. Configure the label you want in the Partition Label box. And select a file system, for example, FAT/FAT32, NTFS, EXT2/EXT3 from the "File System" drop-down list. If the USB drive is larger than 4GB, you can only choose FAT32, NTFS or EXT2/EXT3; and if the partition is smaller than 4GB, you can choose FAT, FAT32, NTFS or EXT2/EXT3.

select a file system to format a hard drive or USB

4. Choose the Cluster Size (512 bytes, 1, 2, 4...64KB) from the drop-down list and click "OK" to apply the format operation.

choose a cluster size to format a hard drive or USB

5. Click "Apply" to format the selected hard disk or USB drive.