How to format usb pen drive in command prompt
There are free USB format tool available online. There are plenty of resources online.
Format a USB Key from the Command Prompt in Windows
This documentation is archived and is not being maintained. July 16, Applies To: For additional scenarios in which you may want to create or use a bootable USB flash drive, see the following topics: Open a Command Prompt window as an administrator.
When you finish preparing your custom image, save it to the root of the USB flash drive. Is this page helpful?
Next, have diskpart list the disks connected to the computer by typing the following command and then pressing Enter:. Examine the output of the command to identify the number of the disk you want to clean.
Be very careful here! If you have any trouble identifying the correct disk number, you can also fire up the Disk Management tool. It will show you the disk numbers along with the letters Windows has assigned it, making it easier to identify a particular disk.
If the drive works in another USB port, the first one you tried is likely dead. There's not much you can do about this short of replacing your motherboard. Just try to avoid using that port in the future. Plug the drive into another computer. If the drive still does not appear when plugged into another computer, there's a good chance that the drive is dead.
You may need to replace it. If the drive appears when plugged into another computer, there may be an issue with the drivers on your computer.
See the next section for instructions on dealing with driver issues. This will open the Device Manager.
Create a Bootable USB Flash Drive
Expand the "Disk drives" category. This will list all of your connected disk drives, including hard drives and USB drives. Right-click on the USB drive and select "Uninstall". This will remove the drivers for the USB drive from your system. Unplug the USB drive and then plug it back in. Windows will attempt to automatically install the drivers.
Update your USB drives. If you see a yellow exclamation icon next to any of your devices, it means there is a problem with the drivers. If this yellow exclamation mark is on your Universal Serial Bus controllers, your computer's USB drivers are acting up. Right-click on the non-working device and select "Update Driver Software". Follow the prompts to reinstall the drivers. Enter and type diskmgmt. Right-click on the partition for your USB drive.
Guide: How to Format USB Flash Drive Using CMD
You will be able to see all of the partitions for each drive in the bottom frame of Disk Management. Actually, there are many easier solutions. Click OK to start. After creating partition on the USB drive, you will find that it has been formatted and it can be recognized by Windows Explorer.
Diskpart is a built-in tool that manage your hard drives. You can use it to format disk including internal or external hard drive. Finally, type "exit" to end up this, and you have already finished the task about Diskpart format USB.
Diskpart: Format USB with Command Prompt
For all this, Diskpart is dangerous for people who do not familiar with Diskpart cause all the operations cannot be revoked once the progress launched. Thus, if there is one mistake, you may get into a big trouble. Fortunately, there is another easy way to format USB drive that even a noob can do it alone.