My 16 GB HP pendrive is write protected ( we didn't do it! ) by some trojan/virus that infected in it. My McAfee AV is detecting the trojan but can't do anything about it since the pen drive is write protected.

I have searched and tried all the immediate solutions found on internet, editing the registry and trying various USB format tools but none of them worked.

Is there any way I can format and recover the pendrive?

I am using Windows 8.1 OS.

  • 1
    What methods exactly have you tried? – Ramhound Sep 18 '14 at 19:45
  • @Ramhound I tried editing registry value in StorageDevicePolicy, USB restore tool and DISKPART method on command prompt, nine of them worked...is there no way to remove such virus from pendrive? – Nigel Sep 18 '14 at 19:51
  • Virus code on a pen-drive cannot write-protect the drive unless you execute the code. If you did that then your machine is infected, but McAfee should have protected you from executing virus code. If you're not infected, there must another reason why your drive is write-protected. Some drives have a hardware switch. – AFH Sep 18 '14 at 19:52
  • You don't even indicate what is being detected. If you are trying to do this within Windows that's likely your problem (if the lock is caused by software that is) – Ramhound Sep 18 '14 at 19:53
  • @AFH actually it is my friend's pen drive. She got this virus infected from another friend's computer.She asked for my help for fixing this issue and when I plug it in to my PC, mcafee is detecting trojans but it can't delete them since the pen drive is write protected. – Nigel Sep 18 '14 at 20:02

Sounds like the USB drive is just busted, and that the infection isn't doing anything to cause the write-protection.

Download, burn and boot to a GPartEd disk (it's Linux-based) and try to remove the partition(s) on the drive, if it still thinks it's write protected when GPartEd tried to access it, then the drive is broken IMO.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.