I use the below mentioned method to format my pen drive from command prompt:
1. Shutdown the computer.
2. Insert USB Memory Stick into your computer.
3. Power on the computer and then immediately start tapping (F8) key then "Advanced Boot Options" screen will come up.
4. Select "Safe Mode with Command Prompt".
5. After booting to Safe Mode with Command Prompt, if your USB Memory Stick drive letter is (G) for example then type:
G: and press enter
6. Then type:
format G: and press enter
7. If ask you (Y/N) then press (Y) and press enter
8. Now a full format will start.
We are booting the computer to Safe Mode in steps 3-4 so as to override any existing format-restrictions in Normal Mode of Windows.
Note: All the files in the Pen Drive will be removed after Format, so please backup all the data in the Pen Drive before formatting (if possible).
Formatting pen drive using command prompt in Windows PC can be the most appropriate way for you if you want to full format your pen drive but unable to format pen drive using the normal method. Here's how:
- At first, connect Pen Drive to your PC and not down the etter assigned to the USB flash drive (whether it's J: or G: or H:)
- press Win + R keys to open the Run dialog box and type cmd then press Enter
- Next, type format /q /x H: (here, the letter "H" is the drive name. You need to replace "H" with your drive name) command in command prompt and press Enter.
- Now, It will display a message, so again press Enter.