format USB by CMD


If your pen drive is already full or has a virus, one of the solutions is to erase everything. Learn how to format a pen drive.
If your pen drive is already full or has a virus, one of the solutions is to format it. That is, delete all content. And it’s not difficult: see below how to do this on Windows or Mac.

If you want to format your computer from a pen drive, follow this tutorial for Windows and this tutorial for macOS.

Want to make your pen drive like new? Discover software to clean, verify or even format the portable disk.

The pen drive, after some time of use, needs to be formatted. Some downloadable programs on your computer will clean or scan your device to keep it as new or factory-fresh. A full format is also capable of eliminating errors and completely freeing up space. Check out, below, a list with five options of free programs (simple and advanced) to format the pen drive. The software can be used on Windows PC, macOS, and Linux.

Have you tried to delete the files from your USB and it still has problems? The device may not be opening on the computer, with some malware or files not saving and normal formatting is not working. In this case, the best option is to format the USB by CMD (Command Prompt) to solve the problem.

In this way, it is possible to completely delete all files from the device. The tutorial below can also be played to format the internal, external hard drives and other removable devices. The example was done on Windows 10, but it can also be done on other versions of Windows.

Before dropping into the tutorial, you might want a new flash drive. We have a list here at Zoom with the best USB options to buy in 2021, if you want to check it out.

How to format USB by CMD?

In the Windows search box, type “cmd” and click “Run as administrator” or press “Ctrl + Shift + Enter” on the keyboard.

  • Type “diskpart” and hit “Enter” at the Command Prompt.
  • Now that you are in Diskpart, type “list disk” and hit “Enter”.
  • With the list of memory units open, see what size your USB is. In this example, the corresponding device is “Disk 2” which has the equivalent of 4GB. To select disk, type “select disk 2” and press “Enter”. Remembering that the number will depend on the drive corresponding to the USB on your computer.
  • Type “clean” and press “Enter” to erase the information from the USB.
  • Type “create partition primary” and press “Enter” to create a partition on the USB.
  • Type “format fs=fat32 quick” and press “Enter” to perform formatting on the primary partition.
  • Type “active” and press “Enter” to make the created partition active.
  • Type “assign” and press “Enter” to be able to change the USB’s drive letter in the future.
  • Finally, type “exit” to exit Diskpart.

Now your USB is formatted by Command Prompt! Remembering that this technique can be used to format other removable drives such as hard drives and memory cards.

By admin

Writing and blogging is my passion. Providing meaningful information to readers is my object.