Guide: How to Format USB Flash Drive Using Cmd

Jean updated on Nov 30, 2018 to Partition Master | How-to Articles

Why Do You Format USB Flash Drive

The storage devices that are widely used nowadays are typically HDDs and SSDs, which are always set up on a PC/Mac to install the operating system and store data files. Meanwhile, there are many other types of prevailing devices with more flexible features for different purposes. Yes, they are removable storage devices such as USB flash drive. The truth is that no matter what drive you're using, it must have a valid file system so that Windows can recognize it and put it to use.

What's more, it's inevitable to develop bad sectors or corruption issues on a specified flash drive after a long-time use. By formatting, you can easily fix any USB flash drive, pen drive or memory stick that is write protected, virus infected, corrupted, damaged, unreadable, unrecognized by PC and Mobile.

So here comes the question, how to format a USB flash drive? This page mainly illustrates how to format a USB flash drive using Windows inbuilt Command Prompt, and the following is the detailed guide you should strictly follow.

How to Format USB Flash Drive from Command Prompt

For your information, any form of disk formatting will completely erase data, so backup as many as important files before the start. Altogether, you'll walk through the whole formatting process in eight steps, and the time spent will depend on the USB flash drive capacity and used space on it. (The following steps are performed on Windows 10 PC.)

Step 1: Type cmd in the search box, then you can get the best match called Command Prompt. Right-click on it and choose "Run as administrator".

Step 2: On the Command Prompt window, type diskpart and press "Enter".

type diskpart to format usb flash drive using cmd

Step 3: Type list disk and press "Enter". According to the list disk information, check which disk is your USB flash drive. For example, disk 2.

type list disk to format usb flash drive using cmd

Step 4: Now type select disk 2 and press "Enter".

type select disk 2 to format usb flash drive using cmd

Step 5: Type clean. Wait some time for disk erasing.

type clean to format usb flash drive using cmd

Step 6: Type create partition primary and press "Enter".

type create partition primary to format usb flash drive using cmd

Step 7: After diskpart successfully created the specified partition, type format fs=ntfs and press "Enter". If you prefer other file system formats, change the command ntfs to the desired one such as fat32, exfat, etc.

type format fs=ntfs to format usb flash drive using cmd

Step 8: Type assign to create a drive letter to the flash drive.

type assign to format usb flash drive using cmd

# Advantages of using cmd

As you know, there is more than one way to perform a formatting task in Windows OS, but why would we recommend you such a complicated approach? It's the most helpful and powerful!

In some cases, you can only use the diskpart command to format a USB flash drive or hard drive. For example:

# Errors you may encounter while using diskpart

Will You Prefer USB Format Tool

Viewing from the noticeable advantages of using cmd to format USB flash drive, we think that you might be interested in an easier way of disk & partition formatting. It's a third-party free partition manager, which is recognized as the best USB format tool. Try it once and you will definitely like it.

Download Now

 Windows 10 is supported

 

Step 1: Launch EaseUS Partition Master, right-click the partition on your external hard drive/USB/SD card which you want to format and choose the "Format" option.

Format Hard Drive Partition - Step 1

Step 2: Assign a new partition label, file system (NTFS/FAT32/EXT2/EXT3), and cluster size to the selected partition, then click "OK".

Format Hard Drive Partition - Step 2

Step 3: In the Warning window, click "OK" to continue.

Format Hard Drive Partition - Step 3

Step 4: Click the "Execute Operation" button in the top-left corner to review the changes, then click "Apply" to start formatting your external hard drive/USB/SD card.

Format Hard Drive Partition - Step 4
 
 

100% of people found this article helpful.

 

Frequently Asked Questions

Will the "Migrate OS" feature transfer the Windows system files only or the whole C drive?

To ensure that the migrated system will boot normally, the Migrate OS feature will transfer all the files in the system and the boot partitions. Generally, the boot partition is the C drive so the transfer will include all the files in C.

Does EaseUS Partition Master license apply to multiple computers?

The license of Partition Master Professional and Server editions can be used on 1 computer only, while that for for the Technician and Unlimited editions can be used on multiple machines.

What is the difference between EaseUS Partition Master Trial version and the Free version?

Free is for home users only, with most basic functions available such as partition resize and clone. While trial can help you understand how this product works and test what a full license can do on a business or server OS machine.

Will it cause any data loss after resizing the partition in EaseUS Partition Master?

Generally, it will not cause any data loss or boot issue by resizing a partition. However, in order to protect your data, we suggest that you backup the partition before resizing, in case of any unexpected situations such as power outages, computer hardware failures, etc. You can use EaseUS Todo Backup to backup the partition and its trial version is fully functioned for 30 days.

What should I prepare before resizing the partition?

On the partition that is going to be operated, there might be some files being occupied by other programs. To ensure a successful operation, we suggest that you close all the unnecessary software before resizing that partition. Otherwise, EaseUS Partition Master will detect the partition being locked by the other software and require a reboot to resize the partition under boot mode.

About EaseUS Partition Master

All-round disk & partition management software for personal and commercial use. Let it manage your storage drive: resize, format, delete, clone, convert, etc.