Guys how to remove write protected for the pendrive
Is there any tool which will do this?
Or any other option to do?
Please help me out
Thank you :)

Dani AI

Generated

A short troubleshooting roadmap (safe-to-destructive) tailored for a write‑protected USB stick. ’s sanity check is a good starting point; ignore the unrelated posts by . The goal below is to preserve data where possible, then try OS-level fixes, then device-level repairs.

Non‑destructive checks

  • Try a different USB port or another PC and run a full antivirus scan.
  • If Windows sees the drive, run a filesystem repair first:
    chkdsk X: /f

    where X is the drive letter. Copy any readable files off the drive before proceeding.

Windows policy/registry fixes

  • If group policy has been changed, reset "Removable Storage Access" in gpedit.msc (Computer Configuration → Administrative Templates → System → Removable Storage Access).
  • To clear a registry write-protect flag (create the key if missing), run as Administrator:
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies" /v WriteProtect /t REG_DWORD /d 0 /f

    Reboot and recheck.

Disk-level repair (destructive; back up first)

  • Use diskpart to clear readonly attributes and reformat:
    diskpart
    list disk
    select disk N    <-- verify N matches the USB drive by size
    attributes disk clear readonly
    clean             <-- WARNING: removes all partitions/data
    create partition primary
    format fs=fat32 quick
    assign
    exit

    Take extreme care selecting the correct disk.

When firmware/ hardware is the problem

  • If the device mounts as a CD-ROM, or the controller has flagged the NAND as permanently read-only (common with failed or counterfeit sticks), OS tools will not help. Manufacturer recovery/MP tools or low‑level utilities may restore some models; otherwise the drive is effectively dead and should be replaced. Attempt data recovery (ddrescue on Linux) only if the data is valuable and prior attempts failed.

If none of the above works, the most likely causes are controller firmware or physical failure; replacement is the practical option.

Recommended Answers

All 3 Replies

/*Write a program that prompts the user to input positive integer.
It should then output a message indicating whether the number is a prime number.
(Note: 2 is the only even number which is prime. An odd integer is prime if it
is not divisible by any odd integer less than or equal to the square root of the number.)

/*Write a program that prompts the user to input positive integer.
It should then output a message indicating whether the number is a prime number.
(Note: 2 is the only even number which is prime. An odd integer is prime if it
is not divisible by any odd integer less than or equal to the square root of the number.)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.