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

Moscow says it won’t allow US to silence UNSC on Israeli violence against Palestinians Monitoring Desk: Russian envoy in United Nations Vasily Nebenzya said that the UN Security Council should bring peace, stability and prosperity to the Middle East and Russia would not allow United States to silence UNSC over the issue of Gaza crisis. According to TASS news Agency, Nebenzya said that Moscow will continue to call for an end to violence against Palestinians and will not allow the US to muzzle the UN Security Council as Washington seeks to support Israel's operation in Gaza. "We will continue to stand firmly for ending violence against the Palestinians. Without a shadow of a doubt, we will continue to expose the abuses and sanctimony with which the US is handling the situation. We will not allow the Americans to gag the entire council with their hands in an effort to encourage further continuation of Israel's ruthless operation," he said in a speech at the Security Council.

Moscow won’t allow the US to silence the UNSC on Israeli violence against Palestinians

0
Monitoring Desk: Russian envoy to the United Nations Vasily Nebenzya said that the UN Security Council should bring peace, stability, and prosperity to the...

From Valdai to Margalla Dialogue —- All roads to Civilisations go through Islamabad

0
By Shazia Anwer CheemaThe emergent realities of global security are fundamentally transforming the frame of references and trajectorial approaches toward them. New security architecture...

12 more men in uniform embraced martyrdom for the motherland in Pakistan

0
Monitoring Desk: 12 more men in uniform embraced martyrdom for the motherland in Pakistan, said Inter Service Public Relations (ISPR) of the Pakistan Army.On...
Dr. Attia Anwar

Lifelong learning

0
By Dr. Attia AnwarAs we age, our minds and mental health become more important. We should try to maintain and improve them. Education is...
12th Defense Expo 'Ideas 2024' 'Weapons for Peace' a major step in defense diplomacy

12th Defense Expo ‘Ideas 2024’ ‘Weapons for Peace’ a major step in defense diplomacy

0
By Asghar Ali MubarakIdeas 2024, the global exhibition of defense equipment, will begin today at the Karachi Expo Center on November 19, in which...
Advertisement