

Then type the command format fs=ntfs or format fs=fat32, and press Enter to format the USB flash drive to NTFS or FAT32 format. You can type list disk command again, press Enter, and the selected disk should have a “*” mark before the disk number.Īfter that, you can type the command create partition primary, and press Enter. Tip: Before you format USB using CMD, you can confirm again that you’ve selected the right disk, to avoid formatting the wrong disk. Format USB flash drive/pen drive with CMD (Command Prompt) Type the command select disk 3 and press Enter to select the target USB flash drive. You may identify the USB by checking the size. Check carefully which disk is your USB drive. Then you can type the command list disk, press Enter and all detected disks will be displayed with detailed information. Next you can type the command diskpart in Command Prompt window. One easy way is: press Windows + R, type cmd in Run dialog, press Ctrl + Shift + Enter and click Yes to run Command Prompt as administrator. You have several ways to open Command Prompt on Windows 10. How to Format USB Flash Drive/Pen Drive Using CMD on Win 10 If the USB can’t be recognized by computer, you may try some tips to see if you can make it visible on PC before you use Command Prompt to format it. If the USB flash drive can still be recognized by computer, you can connect it to computer and copy needed files to another device. Note: Disk formatting will wipe all data on the disk. This post from MiniTool Software gives a step-by-step guide for how to format USB using CMD, namely the Windows built-in free DiskPart command tool, on Windows 10/8/7. But sometimes you may need to format the USB drive because of corrupted file system, data corruption issues, bad sectors, virus infection, etc. USB flash drive is widely used for storing and transferring files.

