USB is the easiest way to transfer data from one computer to another. But sometimes we got an error during files transfer, so we need to format the USB flash drive.

Format Pen Drive is the easiest job in Windows operating system. just open File Explorer, then right-click on the USB drive, click on Format and select a file system for the drive, then after click Format button to format the USB drive. But it does not work at all time sometime you might get “Windows was unable to complete the format” message.

if you are getting this type of error even you assign a correct drive letter then you can use the Command Prompt to format the USB drive. in this article, I will show you complete step to format USB drive using a command prompt.

Read more: How to Find WiFi Passwords in Windows & MacOS

Format USB pen drive via Command Prompt in Windows 10

Step 1: Run Command Prompt as administrator. Press Win + S to open Search and then search for Command Prompt. then Right click on it and select Run as administrator.

Step 2: In the Command Prompt, execute the below commands one by one and press Enter.

Diskpart

Press Enter key to run the Diskpart tool. then type

List Disk

Press Enter key. Now, the DiskPart tool will list all of your drives that connected to your PC. Select the USB drive that you want to format and note down its disk number.

Step 3: Execute the following commands now.

Select disk X 

(where X is the number of your disk, replace x with your USB disk number).

Clean

Hit Enter key.

Create partition primary

Press Enter key.

Format fs=NTFS Quick

Hit Enter key. This will format your drive with the NTFS file system. If you want to use FAT32 file system instead of NTFS, replace NTFS with FAT32 like this Format fs=FAT32 Quick

Assign

Press Enter key to assign a drive letter to the drive.

Exit

Now close the command prompt, open explorer where you can find your USB drive

I hope you like this post please share this post with your friends and do comment if you have any problem.