How to repair pen drive using cmd

broken image

Also, note that USB flash drives can be as high as 1TB in capacity (like the PNY Pro Elite) at the time of writing, which could be larger than your computer's HDD. If not, you'll be able to confirm it in Windows Explorer.īefore proceeding further, be certain that you have identified the USB pen drive. You should be able to check the capacity on the device itself, as this is usually printed on a drive's casing. Therefore, Disk 1 is the USB flash drive. In the image above, while Disk 0 is 931GB, Disk 1 is 57GB.

broken image

With a USB flash device connected (which will be Disk 1 or higher), you should be able to identify it by its comparatively low capacity. Note that the size is displayed for each disk. If you have multiple partitions, these will be sequentially numbered. This is the one that Windows is installed on.

broken image

But which is your USB drive?ĭisk 0 will be your computer's system drive. The resulting table will list the currently available devices. It's time to see which disks are attached to your computer:

broken image

At the prompt, enter this:Ī new command line window will open with a new DISKPART prompt. You should now see CMD, the command-line tool.

broken image

User Access Control will prompt you to confirm the action. You can open this by hitting Windows key + R, entering cmd, then hitting Enter. Windows has a built-in disk partition management tool called Diskpart. How to Remove USB Write Protection With Diskpartīefore starting, insert your pen drive into your computer's USB port.