For an end-user, formatting the USB drive is straightforward. All you want to do is right-click on the drive, and choose Format. However, if you need to format a USB pen drive using the Command Prompt, right here is how you are able to do it in Windows 10/eight/7.
Format USB Pen Drive using CMD
When using the Command Prompt, you might have two strategies. One is using a easy format command whereas the opposite is using Diskpart. We will present each the processes.
- Using Format Command
- Using Diskpart device.
When using the Diskpart device, you have to admin privileges. You can even use PowerShell as an alternative of CMD.
1] Using Format Command
Plug in the USB drive you need to format, and open File Explorer. Identify the precise drive identify of the USB drive. Make certain not to make any errors right here. If you utilize an incorrect drive letter, you’ll find yourself formating one other partition and lose all the info.
- Make certain no copy course of is in progress, and the drive will not be open in the explorer.
- Type CMD in the Run Prompt, and hit enter to open the Command Prompt.
- Type FORMAT
: and hit the Enter key.
- It will immediate you to enter a brand new disk for Drive I. Just hit the Enter key once more.
- If you get a immediate saying:
Format can not run as a result of the amount is in use by one other course of. Format might run if this quantity is dismounted first.
ALL OPENED HANDLES TO THIS VOLUME WOULD THEN BE INVALID.
Would you want to drive a dismount on this quantity? (Y/N)
- Enter Y, and it’ll dismount the amount to format it. Its as a result of some course of remains to be accessing it. Unmounting will ensure that all of the processes accessing the drive will cease.
If you need to format along with your selection of choices, we recommend you to studying every thing concerning the Format command right here.
2] Using Diskpart Tool
is a robust device that you should use to handle all of the partitions from the command line. Before working this device, ensure that to take away the USB drive.
- Type diskpart in the Run Prompt, and hit enter
- After the UAC, it should open the Command Prompt which is working this device
- Type LIST DISK to listing all of the drives linked to the pc.
- Now insert the USB drive, after which rerun the command.
- This time you’ll discover an additional drive that you simply want to format. In my case, it’s DISK 2
- Next sort SELECT DISK 2, and you’re going to get a immediate Disk 2 is now the chosen disk.
- Type CLEAN, and hit the Enter key
- Then sort CREATE PARTITION PRIMARY and hit enter
- Type Format fs=NTFS Quick and hit enter
- Type Assign and hit Enter key to assign a letter to the newly formatted drive.
Post completion of all of the duties, the USB drive will probably be formatted, and it is going to be empty. DISKPART device works in a different way in contrast to the usual format possibility in Windows.