By Emily / Last Updated April 29, 2020

When need to format USB drive using Command Prompt?

USB drive is a popular portable storage device that helps you to save valuable files. But it needs formatting from time to time for various purposes including freeing up disk space, deleting all data on the drive, removing write-protection from the USB, etc.

Most users would perform the formatting task in a traditional way: right click on the drive in the File Explorer and select “Format” option. Quite easy and effective! However, sometimes the formatting process gets stuck in the middle and throws weird error messages like “Windows was unable to complete the format”. In this situation, you can try formatting USB drive in Command Prompt.

How to format USB using CMD Windows 7, 8, 10?

Command Prompt (also called CMD) is a command line interface in Windows. It can execute every entered valid command. To format pendrive using Command Prompt, do as below:.

Warning: Ensure you have backed up any necessary files from the USB drive already because the steps below will delete all data from it.

Step 1. Connect the USB drive to your Windows 7 computer and make sure it is recognized successfully.

Step 2. Search for “cmd” in the “start” menu, right-click on Command Prompt and select “Run as Administrator.”

Step 3. In the Command Prompt window, type “diskpart” command and press “Enter” to run the Diskpart tool, and execute the following commands in order: to format USB drive.

  • list disk: list all the disks in your system.

  • select disk #: replace # with your USB drive disk number. Ensure you select the correct disk number.

  • clean: delete all partitions on the USB drive

  • create partition primary

  • format fs=ntfs quick: format your USB drive to NTFS. Also, you can replace “ntfs” with “fat32” or “exfat” to format it to FAT32 or exFAT.

Format Drive CMD

The steps of how to format USB using CMD Windows 7 can be applied to format corrupted or damaged hard drive. But if you need to format a write protected USB, you have to add the command “attributes disk clear readonly” between “select disk” and “clean” commands in order to first remove read only property.

Alternative to CMD: format USB in Windows 7 by 3 clicks

Command Prompt is a great choice when you cannot format USB drive in File Explorer, but there will be times when it fails. For example, when you try to format a large hard drive, which is over 32GB in size, the formatting process won’t continue and error message “The volume is too big for FAT32” will pop out. Besides, without a clean graphical user interface, there is always a risk that you type a wrong disk number and lose important data.

So, you might be searching for an alternative to Command Prompt, which can format pen drive more effectively. Here we recommend AOMEI Partition Assistant Standard. This free partition manager works well on all versions of Windows 10/8/7/XP/Vista. With an intuitive interface, you can easily choose the right hard drive to format. Besides, it is able to format 32GB+ hard drive to FAT32. Moreover, it can format write-protected disk if it is read only because of damaged file system. Only 3 steps can make things done.

Step 1. Install and run AOMEI Partition Assistant, right click the USB drive and choose “Format Partition”.

Format Partitoin

Step 2. In this window, choose a file system from the File System drop-down and click “OK”.

FAT32 128GB USB

Step 3. Back to the main interface, click “Apply” to actually formatting the USB drive.

Apply

See, within three clicks and steps, you can format USB drive. Apart from formatting USB drive to NTFS, FAT32, exFAT, it is also capable of formating USB to Ext2/Ext3/Ext4 in Windows environment.

Summary

So if you are not familiar with how to format USB using CMD Windows 7/8/10, you can rely on AOMEI Partition Assistant. Besides formatting partitions, this versatile freeware even allows you to clone/merge/move/wipe partition and more. For more amazing functions such as allocate free space from one partition to another, recover missing partition, securely erase SSD drives, you can upgrade to AOMEI Partition Assistant Professional.