Format USB drive in command prompt
"© By olyasolodenko/Adobe Stock"

Format A USB drive is simply easy and every user can do this by simply Right-click and select format. But sometimes Windows Users face problems this disk is write-protected, Can’t format the drive, etc. This is because the USB drive is corrupted, has some bad sectors, and maybe fully infected with a virus that protects to format of the drive. If you are also suffering from this problem and looking for a way to format a write-protected USB drive,  you can do this using the Windows command prompt ( format write protected pen drive using cmd ). Here follow the below steps to format Read write-protected USB drive using the CMD prompt.

How To Format write-protected USB

First of all, connect Pen Drive or USB flash drive to your computer. After connecting, check the letter assigned to the USB flash drive. When I connected the Pen drive to my PC As shown below image my Drive letter is Removable Disk J:

Now open the command prompt As the administrator to do this click on the start menu and type cmd.  As shown below screen command prompt desktop app Right-click on and Run As Administrator

You can also Right-click on Taskbar click on Task Manager. This will open Taskmanager windows now click on file > Run A new Task on create new task windows Type CMD. And click checkbox Create this Task with administrative privileges As shown below image.

Now Windows command prompt will appear on your screen. Type the following command in the command prompt and press Enter:
  format /q /x J:

Command Explained

1. Here The the format command, for formate the drive

2. The q parameter stands for quick format

3. The x parameter forces the selected volume to dismount if required

The letter “J” is the drive name. when you try on your side Please, replace the letter “J” with your Removable drive name.
Just after pressing Enter, it will display a message like “Insert new disk for drive J: and press ENTER when ready…

So, simply press the Enter button. Now formatting of your Pen drive or USB flash drive will be started. You need to wait until 100% is completed. After complete the process, you will see a message like “Initializing the File Allocation Table (FAT)… Volume label (11 characters, ENTER for none)?” which means the format has been completed and waiting for your confirmation.

So just press Enter again. Once, the pen drive formatting process is completed you will see the Format complete message along with other details as shown below.

That’s All you have successfully formatted your USB Drive, Flash Drive.
Using Command prompt is the best working solution to format write-protected USB Drive, write-protected pen drive format, etc. Have any query feel free to comment below.

Steve Ballmer
With over 7 years of experience in the IT industry, I have experience in IT support, helpdesk, sysadmin, network admin, and cloud computing. Certified in Microsoft Technologies (MCTS and MCSA) and also Cisco Certified Professional in Routing and Switching.