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

Can anybody from ruling elite respond to grave allegations of Shandana Gulzar Khan?

0
Islamabad, Pakistan: The recent volatile press conference of former parliament member PTI Shandana Gulzar Khan echoed even in the weekly press briefing of the...
PTI Protest November 24

Names of 69 out of 268 ‘martyrs’ of PTI that have been released from...

0
Islamabad, Pakistan: As many as 69 out of the 268 'martyrs' of the 26 November PTI protest’ have been released from jails, exposing again...
Deep Fake News strategy designed by PTI to defame Pakistan is backed by foreign journalists

Deep Fake News strategy designed by PTI to defame Pakistan is foreign funded

0
Islamabad, Pakistan: The intelligence agencies have submitted a detailed report to the Federal government about how PTI is spreading fabricated videos regarding the chaos...
The Media Circus staged by judges in Pakistan

The decision of the Constitutional Bench over Military Courts snubs those who made a...

0
Islamabad, Pakistan: The Constitutional Bench (CB) of the Supreme Court (SC) has permitted military courts to announce verdicts for 85 accused civilians and this...
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...
Advertisement