How to format pendrive using cmd

In this article we will teach you How to Format pendrive using CMD. If you have virus on your computer or getting any difficulty using your pendrive this simple cmd trick can help you to recover from all these situations.

These day’s almost everyone who is using computer, uses pendrive for Data transfer purpose. There are lot’s of viruses that spread with the help of pendrive and get’s stuck into your pendrive. Sometimes pendrives also start’s getting some issues with them regarding the data. There is one solution for all these problem’s that is to format your pendrive with the help of command prompt.

How To Format Pendrive Using CMD.

Just follow our step by step instruction’s to format your pendrive and make it working like new one again with our cmd trick.

You may also like to read about Best cmd commands used for hacking and How toDownload hike for pc

Steps 1:

First of all insert your USB Pendrive into your computer or laptop.

Steps 2:

Now check and note down that what letter is assigned to your USB pen drive, whether it is G:, H:, I: or something else.

Format pendrive using cmd

Steps 3:

Now open CMD (command prompt) by pressing Win+R keys at the same time > type Run in the dialog box and hit Enter.

open command prompt

Steps 4:

Now type below command into your command prompt ( cmd ) to format pendrive using cmd and hit Enter button.

format /q /x D:


Note: replace D: with your pandrive’s assigned drive latter.

Step 5

Now it will display a message “Insert new disk for D: and press enter when ready“. Just Press Enter button and it will start formatting your pendrive.

Format pendrive using command prompt

Step 6

Now, You will get a message “Initializing the File Allocation Table (FAT)… Volume label (11 characters, ENTER for none)?” that means the format precess has been completed and it’s waiting for your confirmation. Simply Press Enter and you are done.

format completed


That’s it, Now you have sucessfully formated your pendrive using cmd. if you have any query about my article How to format pendrive using cmd, feel free to ask me in the comment section below.

Photo of author

Aniket jain

Leave a Comment