How to Format USB in CMD? Complete Step-By-Step Guide

How ToHow to Format USB in CMD? Complete Step-By-Step Guide

What is a USB flash drive? 

How to format USB in CMD

USB flash drive is a secondary storage device, that is portable and rewriteable. Transferring files from one pc to another is now easy and fast. There are instances where some viruses corrupted the USB flash drive. The easy process of formation a USB through file explorer, gives an error message, sometimes. So here you can learn how to format USB in CMD. 

How to format USB in CMD

To format a USB, a command prompt (CMD) is the best method. There are two methods to format a USB in (CMD). One of them is simple Format Command, and the second one is a Diskpart Command.

Formatting USB in CMD (Format Command)

How to format USB in CMD

  • Open a command prompt by typing CMD in the search bar.
  • Click windows key+R to open the Run app.
  • Open the command prompt.
  • Then plug in a USB flash drive. 
  • Now type format /q /x H: to format USB. 
  • Check the drive letters of USB and press enter.
  • When a message appears from the system then press enter again.
  • If you want to enter the volume label write /v: 
  • If you do not want to enter the volume label then just press enter.
  • The system will format your USB.

Formatting USB in CMD (Diskpart Command)

  • Open Command Prompt and run it as administrator.
  • Plug in USB into your computer.
  • Now we have to use Diskpart by writing diskpart.
  • Press enter.
  • Now write command List disk and a list will appear.
  • Identify your Flashdrive from the list.
  • Then write your disk number and press enter.
  • Now execute the Clean command to format your USB by typing clean and then press enter.
  • Then, create a primary partition by writing “create partition primary” and a partition will be created.
  • Type format fs=ntfs quick. The windows will format the USB quickly.
  • Now assign the drive letter by writing the following command Diskpart>assign.
  • Exit the command prompt by typing exit.

Hope this guide will help you to understand how to format USB in CMD.

Talal Farooqi
Talal Farooqi
A mass media grad with a great deal of interest in blogging and copywriting. I hear that I'm good with words. So, feel free to check out my work!

Must read

Recent News

Azerbaijani people commemorate National Leader Heydar Aliyev

Azerbaijani people commemorate National Leader Heydar Aliyev

0
Monitoring Desk: Every year Azerbaijani people on December 12 commemorate the death anniversary of Azerbaijani Great Leader Heydar Aliyev.Today, 21 years have passed since...

A doomed PTI is eager to talk with the government

0
Monitoring Desk: After trying various tactics, PTI is eager to talk to the government and is making every effort to get a positive response...
Hemani “Power Plus”

Hemani “Power Plus” become first Pakistani product registered in UAE

0
Monitoring Desk: Hemani “Power Plus” has become the first Pakistani product registered in the UAE.

Syrian disorder shows why the Armed Forces are essential for social order

0
DND Special ReportThe Middle East is volatile again and a kind of “Islamic Colour Revolution” has collapsed the state institutions where the swift...

Once again media bias targets Pakistan with unsupported content about PTI’s November 24 protest

0
Monitoring Desk: Pakistan has always been under the target of biased media a textbook example of how certain groups, individuals, and countries can try...
Advertisement