Skip to content

How to Format USB Drive on Windows 10 Using Command Prompt

If you’ve been a Windows user for even a small amount of time, you’d know how to format USB Drive on Windows. It’s fairly straightforward and all you have to do is right-click on it and select Format. You get to select a new file system for the drive before you click the Start button and that’s it. Sometimes though, this method can return an error. In most cases, the error message you’re shown is Windows was unable to complete the format. Usually, when a GUI method fails, there’s a command line method to do the same thing which probably won’t fail. So if you’re facing any such errors while trying to format USB drive on Windows 10 you can try the command prompt.

Most Windows users will probably shy away from the command line because it seems like a daunting task. You don’t know what to type, and even when you do know you can’t make sense of it. Using the command line seems like a job only programmers and computer wizards would do. However it may seem, using the command line is pretty simple and in some cases simpler than using the GUI. Just follow the instructions given below and by the end of it, you’ll realize it too.

Note: Formatting a USB Drive will erase all data on it. If you have any important data saved to the drive make sure you copy or move it to a safe place. Furthermore, a formatting error can occur due to a number of reasons. In some cases, using the command line can help but it may not necessarily help in every situation.

You may like: Relocate Installed Apps and Games in Windows 10

Format USB Drive on Windows 10 using Command prompt

  1. Run the Command prompt as administrator. To do this, search cmd in the Windows 10 search box, right-click on the Command prompt search result and select Run as administrator. Alternatively, you can right-click on the Start button or press Win+X on the keyboard. Select Command Prompt (Admin) from the quick menu. Click Yes on the User Account Control screen.How To Format USB Drive On Windows 10 Using Command Prompt
  2. In the command prompt, run the Diskpart tool by entering this command:
  3. After this, retrieve a list of all connected drives using the command given below.
    List disk
    When you press Enter, the DiskPart tool will list all the drives connected to your PC. Identify the USB drive that you want to format and make sure it is the correct drive. Your internal drives are also listed here and you wouldn’t want to format those. You can see the sizes of each of the listed drives to help make your decision. If you’re still not sure, disconnect the USB drive and run the list disk command again. Comparing the list of drives before and after disconnecting the drive you can easily identify it. How To Format USB Drive On Windows 10 Using Command Prompt
  4. When you’ve identified the USB drive, note its disk number and then run this command.
    Select disk X

    Here, X is the number of the drive you want to format. For instance,

    Select disk 1
  5. That command only selects the drive, as you probably guessed. Now to erase it all you have to do is type this command,

    and hit Enter.

  6. This deletes the entire partition though so you will need to create a new one and you can do this with the following command.
    Create partition primary

    The above command will create a primary partition but you can also swap it for a logical partition if you prefer although that is not recommended.

  7. Next, you should assign a file system to the drive.
    Format fs=FAT32 Quick

    The above command will format the USB drive in the FAT32 format which is ideal for USB drives. You can use fs=NTFS instead to format the drive as NTFS which will then only work on a Windows PC. How To Format USB Drive On Windows 10 Using Command Prompt

  8. Assign

You’ve successfully formatted the drive now so type exit and hit enter to close Diskpart and then close the Command prompt window.

Recommended reading: How to Change System Fonts on Windows 10

5 thoughts on “How to Format USB Drive on Windows 10 Using Command Prompt”

  1. I’ve learned more from this than anything yet. I have a dell 7000 that says no bootable devices found. Diagnostics says all ok. Thank you

  2. Hi ,

    I have used my USB to make an ISO image now I want to use it with windows 10. How can I format it and use it as normal?

    1. Power on your PC and let it boot up. Plug the bootable USB drive. Then type “diskmgmt.msc” in THE Run box to start Disk Management. Right-click the bootable drive and select “Format”. Then follow the wizard to complete the formatting. Done!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.