CMD is the simplest method to format a USB.
Connect your USB to your computer. Type CMD into the search box. Right-click the USB and choose “Run as administrator.”
Write the command format /q /x H: Enter and hit enter. HereHThis is the letter that will be assigned to your USB.
DiskpartYou can also use this method in CMD to format your USB flash drive.
Why format USB Flash Drives?
Different storage devices can be found on Macs and PCs. They are used to install operating systems like Windows or transfer files. Hard Disk drives (HDDs), and Solid-State Drives (SSDs) are the most popular storage devices. At the same, other removable devices are Universal Serial Bus or USB.
Whatever storage device you choose, it must be able to recognize the file system of Windows and allow it to be used. Bad sectors and errors can often develop on your drive, making it more difficult to use. ByFormattingYou can repair your storage device, regardless of whether it’s corrupted, virus-infected, damaged, or unreadable by your smartphone or computer.
How to Format USB Flash Drives in Command Prompt
Windows 7/8/10 has a built-in feature that allows you to right-click on the drive and select the “format” option. It will format your drive if it isn’t damaged or corrupt.
Sometimes, however, the windows build-in feature fails to format your drive. Here is the complete illustration of How to format USB in CMD, whether it is a write-protected, fat32 pen drive, corrupted, or write-protected pen drive for all operating systems like Windows (7,8 or 10) or mac.
Two ways can be used to format a USB flash drive with CMD. One is the simple format command and one is the Diskpart command. The former would be explained first, and the latter next.
1.Formatting USB with CMD and Format command
Enter “cmd” in the search box. Right-click on the command prompt. You can open it by selecting “run as administrator”.
Then plug the USB cable into your computer.
Now, type this format /q /x H: Enter and hit enter.
You’ll see insert a new drive H: and hit the Enter key when you are done…
To start Formatting, press Enter again.
Another message will appear asking for volume label information. Type the name that you would like to be assigned to your drive, such as ABCD, and hit enter.
A message will be displayed saying complete Format.
The USB flash drive will be formatted completely. This was the only way to format USB in CMD. Diskpart command is another way to format USB in cmd.
2. Formatting USB in CMD Diskpart command
Enter “cmd” in the search box. Right-click on the command prompt. You can open it by selecting “run as administrator”.
Then plug the USB cable into your computer.
Now, type thisDiskpartEnter and hit enter.
Type the following: list dissenter and hit enter. The list of drives will appear. Select the USB to open it. You will see a list of your drives.
Next, type the drive number and name. Next, typeselect disk twoEnter the code
TypeCleanPress Enter while you wait for it to erase all data on your drive.
The type now creates partition primary then, press Enter.
You have now completely erased your drive and need a file system such as Fat32, NTFS, or exFat. TypeFormat fs=and the desired file system. The command will be executed if you need NTFS.Format fs=ntfsAfter that, press enter. Then, hit enter.
Typing is the last step.AssignYou can assign a drive letter on the USB drive.
Your USB flash drive will now be formatted successfully. We also have another method, which we have described here.
3.Formatting USB using Disk Management Tool
These are the steps to format USB using Disk management software.
TypeDisk ManagementEnter the search box in the search box.
You can now see the location of your USB drive.
Right-click it and select Format
You will need to specify a file system such as NTFS or Fat32.
Click on Format and select the file system.
Disk Management will format your USB.
What is a USB flash drive?
USB is a removable storage device that can be used to store data. However, it can also be rewritable, unlike CD and DVD which can only be used as data storage devices but cannot rewrite. You cannot move, change, delete or move your data once you have transferred it. DVDs and CDs can not be rewritable. A USB drive is the fastest and easiest tool to transfer data from one PC to another; now, USBs can also be attached to your smartphone using OTG (On the go).
The storage capacity of USBs is up to 2TB.USB 3.2 Gen 2x2Transfer data from20GBIn less than a second. There are many factors that affect the speed of a USB.
Why does USB transfer speed fluctuate so much?
USB speed is determined by many factors, including the USB version (such as the 3.2 version), which is the most advanced. Secondly, if you are copying data from the USB to your PC, it would depend on your PC’s speed; therefore, speed varies whether USB is source or sink. The file system is also a factor in the speed of data transfer. It has been found that NTFS transfers faster than Fat32.
Formatting your USB drive using cmd after backing up your data can speed up the transfer speed.
How USB is Infected by Viruses
A computer virus is a program that self-replicates and modifies computer programs while inserting its code. USBs are used to transfer data between computers. However, there’s a possibility that your USB may be infected by computer viruses. You might be copying software from a friend’s computer that has a virus. If you don’t have anti-virus software, the virus will be copied to your USB.
You can also remove viruses from flash drives by formatting them using CMD, as we have already described.
Conclusion
You don’t need the CMD method if you can format your USB with the built-in Windows features. But, you can use the CMD method windows cannot format the drive you should use the cmd method to correct any errors. To format your USB, make sure to follow these guidelines. Any of these methods can be used, including the simple format command and diskpart command.