If your pen drive is write-protected, you may not have the ability to modify files or format your drive due to restrictions associated with permissions and sharing. You can format a write-protected pen drive in Windows using  Command Prompt.

Using Diskpart in Command Prompt (Windows)

Image titled Format a Write–Protected Pen Drive Step 12

Insert your write-protected pen drive into an open USB slot on your Windows computer.
Image titled Format a Write–Protected Pen Drive Step 13
2

Click on “Start” and type “cmd.exe” into the search field.
  1. Image titled Format a Write–Protected Pen Drive Step 14
    3

    Double-click on Command Prompt to launch the program.
  2. Image titled Format a Write–Protected Pen Drive Step 15
    4

    Type “diskpart,” then press Enter on your keyboard.
  3. Image titled Format a Write–Protected Pen Drive Step 16
    5

    Type “list disk,” then press Enter.
  4. Image titled Format a Write–Protected Pen Drive Step 17
    6

    Type “select disk x” — with x being the number of your pen drive as listed in Command Prompt — then press Enter. If unsure which number is associated with your pen drive, refer to the disk size listed. For example, if your pen drive is 2 GB, select the disk number next to the drive with 2 GB specified as the disk size.
  5. Image titled Format a Write–Protected Pen Drive Step 18
    7

    Type “attributes disk clear readonly,” then press Enter.
  6. Image titled Format a Write–Protected Pen Drive Step 19
    8

    Type “clean,” then press Enter.
  7. Image titled Format a Write–Protected Pen Drive Step 20
    9

    Type “create partition primary,” then press Enter.
  8. Image titled Format a Write–Protected Pen Drive Step 21
    10

    Type “format fs=fat32,” then press Enter. Alternately, you can replace “fat32” with “ntfs” if you plan on only using your pen drive with Windows devices.
  9. Image titled Format a Write–Protected Pen Drive Step 22
    11

    Type “exit,” then press Enter. Your pen drive will now be formatted, and will no longer be write-protected.
Translate »