Connect with us

Hi, what are you looking for?

Windows

How to format a USB using Windows CMD/PowerShell 2022

How to Format a USB Using Command Prompt 2021 - Learn More

USB flash drives are used to transfer files from one computer to another. In many cases, you need to format a USB drive because it has a virus on it. To remove the virus. How to format USB as CMD.

  • Connect the USB to the computer and open a command prompt as an administrator.
  • Type the command format /q/xH and press Enter to run the command.
  •  The “H” in the format command is the letter assigned to the USB drive.
  • You can also use the Diskpart command to format the USB as CMD.

Formatting a USB is a simple process, but sometimes we cannot use this process to format it. To format the USB flash drive, you must open the file explorer and right-click the USB flash drive. If you right-click on it, you will see a list of options. Click a format to complete the formatting process.

This is an easy way to format a USB drive in Windows, but sometimes this process does not format the USB drive. Receive error messages, such as Windows cannot complete formatting. If you receive this type of error message in Windows, you cannot use this procedure to format the USB drive. To format the USB, you need to use the command line. In this article, we will show you how and when you need to do it.

First, we will discuss USB storage and how to transfer data from one computer to another in Windows. Second, we will discuss the USB command line (CMD) formatter. Finally, we will discuss another method of formatting a USB flash drive.

What is a USB flash drive?

A USB flash drive is a removable, rewritable storage device. We use USB flash drives to transfer and store data. To transfer files from one computer to another, if you are using Windows, you must copy the files from your computer and paste them onto a USB drive.

How to Format a USB Using Command Prompt 2021 - Learn More

USB storage is the fastest and easiest way to transfer and store files. USB is much better than CD or floppy disk. The storage capacity of the USB flash drive is up to 2 TB. Today, most people use a USB to store and transfer data to their PC. The USB transfer speed is determined by three factors. One is the USB version, and the other is the bus speed of the USB device to read and write data. Finally, the speed of the hardware bus.

Determine the USB speed

These are some of the factors that determine the transfer rate from one device to another in Windows. We can also create a bootable U disk. You need to use third-party software. Make your USB bootable. Whenever we need to update or install Windows on our computer, we create a bootable USB hard drive and install Windows on our computer.

 How USB get Infected by Viruses

Since we use a USB to store and transfer files, there are many possibilities for virus infection. This USB plug-and-play feature allows users to easily transfer files at any time. However, this plug-and-play feature also makes it vulnerable to virus attacks.

For example, if you want to copy software from a friend’s laptop, and your friend’s laptop contains a virus. When you insert the USB drive into your friend’s laptop and copy and paste the software to the USB drive. There is a possibility of infection on the USB drive.

If you connect it to your computer, if your computer has a virus, if you don’t have antivirus software, your computer may also be infected with the same virus. There are many types of viruses, and it is impossible to know the type of virus on your USB memory stick. However, it is best to erase the USB flash drive before using it, for this, you need to format the USB flash drive so that we can tell you the USB command string (CMD) formatting process.

Format a USB using the command line (CMD)

If you cannot format a USB drive using the simple process mentioned in this article, you need to use CMD. There are two ways to format the USB as CMD. One uses the simple format command and the other uses the diskpart command. We will first discuss the process of formatting USB to CMD using the format command.

Formatting the USB in CMD (format command)

To format the USB flash drive in CMD, you must first open the command prompt. Just follow the instructions below.

  • Type CMD in the search box and press Enter to open a command prompt.
  •  Access the search box from the Windows key + R to open the running application. After that, type CMD and press Enter.

How to Format a USB Using Command Prompt 2021 - Learn More (1)

  • Open a command prompt as an administrator.
  •  Then connect the USB memory stick to your computer.
  • Now you need to type the following command to format the USB.
    format / q / x H:
  • In the above command, “q” stands for quick format, “x” stands for unmounting the selected volume, and “H” stands for the assigned drive letter.
  • First, check the USB drive letter on the computer and put it in the command.
  • After that, you need to press Enter. You will see the following message on the screen.
    “Insert a new disc for the H: drive and press ENTER when ready”
  • Now you need to press Enter again to start the USB formatting process.
  • Then you will be asked to enter the volume label of the USB flash drive. Enter this /v: after the format command Set the volume label. You can also use it with this “format /q / x H:” command.
  • If you don’t want to enter the volume label, just enter it directly.
  • Then, a message about the completion of the process will be displayed on the screen.
  • Now you will see that your USB drive is formatted and does not contain any data.

The only option is to format the USB as CMD, but you can use another command to do it. We will now provide a step-by-step guide on how to format a USB using the Diskpart command in CMD.

Formatting a USB drive in CMD (Diskpart command)

In order to format a USB drive in CMD using the Diskpart command, you need to follow some instructions. Please follow the instructions below.

  • First, you need to open a command prompt. Enter CMD in the search and run as administrator.
  • After that, connect the USB drive to your computer.
  • Now we need to use Diskpart to format the USB.
  • Write to diskpart when opening a command prompt in Windows. Use the Diskpart command to display CMD.

How to Format a USB Using Command Prompt 2021 - Learn More

  • Then, press ENTER.
  • Now write command list disk. When you run this command, you will see a list of disks on your computer.

How to Format a USB Using Command Prompt 2021 - Learn More

  •  Then use the disk list command in CMDA to identify the USB drive from the list. You can identify the USB by its size. For example, if your USB drive is 16GB, then the 16GB drive will be your USB drive.
  • When identifying the USB drive in the drive list, you need to enter the following command:
    select disk <disk number >
  • you need to enter the actual USB drive letter you identified in step 7, for example, if the drive letter is drive 3, similar to the above command After entering the actual disk number, select the disk 3 command.
  • Enter to run it.
  • Now you need to run the clear command to format the flash drive.
  • Type clean and press Enter.

How to Format a USB Using Command Prompt 2021 - Learn More

  •  After that, you need to create the primary partition of the drive. Write the following command:
    “create partition primary”.
  • Now write the command “format fs = ntfs quick” to format the drive.
  • The above command is for the NTFS file system but if you want to change it with FAT32 then replace NTFS with FAT32. The command will be like “format fs = FAT32 quick”.

 

  • Now write the following command, to assign the letter to the formatted USB drive.
    Diskpart> assign
  • Then, Windows will assign a drive letter to the USB drive.
  •  you need to run the exit command.
  • Type “exit” before Diskpart and press Enter to run it.

How to Format a USB Using Command Prompt 2021 - Learn More (7)

  • Achieved success at CMD. Now close the command prompt by clicking the “X” button in the title bar.
  • You can open the file manager to check all the drives on your computer.

The Diskpart utility is long and difficult for some people, but it is the best way to format a USB to CMD. You can use the command formatting process that is easy for many users. For convenience, we will also discuss how to format a USB using a risk management tool.

Formatting USB with Disk Management Tool

Formatting USB with Disk Management requires several steps. The steps are as follows:

  • Press Windows key + R to open the running application.
  • Now type “msc” and press Enter to open Windows Disk Management.
  •  Before opening Windows Disk Management, you need to connect the USB first.
  •  Then right-click the USB drive and select a format from the list of options.
  • Now you need to select a file system to format your USB drive.

Conclusion

These are some methods of formatting a USB drive, and you can use any of these methods in any version of Windows. Make sure to follow all instructions correctly, otherwise, you will not be able to format the USB drive. If you are having problems with simple USB formatting using File Explorer, you do not need to use CMD. Just open the file explorer and right-click the USB drive to format it.

In short, you don’t have to perform lengthy CMD procedures. If an error message such as “Windows cannot format the drive” is not displayed, format the USB. If you encounter difficulties during the formatting process, you should use the command-line method.

Click to comment

Leave a Reply

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

You May Also Like

Tech

Do you want to know how to write Urdu in Photoshop? We will tell you how you can do that. To type in Urdu,...

Life Hacks

Do you like popular TV shows with an active audience? Who remembers A Minute To Win It? I think we all remember! I think...

Tech

To register IDM without a serial number, you need to download a decrypted version of IDM. After that, you need to install IDM, copy...

Tech

Want to know how to add IDM extensions to Chrome? Read the full text and let us know in the comments if it helps....