contador web Saltar al contenido

How to format a write-protected flash drive?

If you have a USB stick that you would like to use, but it is write-protected and, therefore, you cannot insert your files into it, do not despair. Your gadget is not useless. There is a way to make it useful again. Check out how to format a write-protected USB stick in Windows.

Discard other problems

First, I need to rule out other common problems in this case. Make sure the problem is not an inoperable USB port. To do this, try inserting the USB stick in another port, or insert any other USB device, such as your smartphone's charger (connected to the smartphone, of course!) In the same port.

Does the USB port work with other things, and the stick is not recognized by other ports? So this problem is ruled out. If your USB port does not recognize a device, it may be disabled. Whatever the problem, read this article and learn how to activate a USB port that is disabled.

How to remove write protection on the flash drive with Diskpart

1. Check that the pendrive has a write protection switch

If so, just turn it off and proceed with formatting. Otherwise, continue to the next step.

2. Connect the USB stick to a USB port on the PC

Press Win + R. This opens the Run dialog box.

3. Type diskpart and click OK

How to format a write-protected flash drive?

This opens a terminal window displaying a command prompt.

  • If you see the "User Account Control" window, click Yes to continue.

4. Type list disk and press Enter

This lists the drives connected to the computer, including internal drives.

5. Find your USB drive number

The drives are labeled Disc 0, Disc 1, Disc 2, etc. You can identify the size of your pendrive by size.

6. Type Select Disk (number) and press Enter

Replace (number) with the number next to your flash drive (for example, select the Disc 1). You will see a message that says "Disk (number) is now the selected disk.

7. Type attributes disk clear readonly and press Enter

This removes the write protection attribute from the flash drive. When the process is complete, you will see a message stating that the attributes have been successfully cleared.

If you don't want to format the pendrive, just remove the write-only restriction from it, the tutorial ends here. If you still want to format the USB stick, go ahead.

8. Type clean and press Enter

This erases the data on the drive.

9. Type create partition primary and press Enter

This creates a new partition so that you can format the drive. After returning to the "DISKPART>" prompt, you can close the window by clicking on the X at the top right corner.

10. Press Win+ E to open the Windows file explorer

This displays the files and drives on your PC.

11. Scroll the left column, and right click on the USB stick

It should be near the bottom of the column. A context menu will be displayed.

12. Click Format

A dialog box with various formatting options will be displayed.

13. Select an option from the "File system" drop-down menu

  • FAT: only compatible with 32GB or smaller units. Compatible with Windows and Mac.
  • NTFS: only compatible with Windows.
  • exFAT: Compatible with Windows and Mac.

14. Enter a name for the unit

This goes to the "Volume label" box.

15. Click on Start

It's at the bottom of the window. A pop-up warning appears, reminding you that formatting erases the data on the disk.

16. Click OK

This formats the unit, which can take several minutes. A pop-up appears when finished.

17. Click OK

The unit is now ready for use.

Diskpart encountered an error: the request cannot be performed due to an I / O device error

If in case you encounter this error when trying to do the above procedures, it is possible that your pendrive has a problem in one of its sectors or that part of it has corrupted, and to verify this we will use another command using the CMD (Command Prompt) .

V in the Windows search bar and type cmd, right click on "Command Prompt" and select "Run as Administrator".

As soon as the Command Promt opens, go to My Computer / This Computer and check which letter corresponds to your pendrive, in our case the letter AND.

Our USB drive E:Our USB drive E:

Now that we know that the letter corresponding to our pendrive AND, we will enter the following command in CMD:

chkdsk E: / f / r / x

What does this command do? It checks the drive for errors and tries to correctthem as well try to recover files that are damaged by being in defective sectors of your pen drive. After executing this command, you should receive the message that the process has successfully completed.

If an error message still occurs, try again, and if the error persists, it is possible that you have a physical defect in the device.

And after all these steps, the pendrive is not only formatted as ready for use and with permissions to insert, read and remove files from it. I hope you enjoyed the tutorial and any questions just comment below.

We recommend reading: