3

Whenever I insert a USB drive in my desktop PC running Windows 7 Ultimate, it becomes write protected. Then when I use it on my laptop, I can't delete the files on it.

I already tried scanning for malware and viruses.

Can I repair this, eventually without reformatting?

12
  • I dont know what to do. I tried scanning, there is no virus. no malwares.
    – Bazinga
    Aug 9, 2012 at 12:53
  • I mean, you said you searched on Google and "followed what they said". So by that, you meant a virus scan?
    – slhck
    Aug 9, 2012 at 12:54
  • What i search was also to repair the usb from not being write protected.
    – Bazinga
    Aug 9, 2012 at 12:55
  • Are you saying you can format the drive to make it writeable again? If not, then please see this... the drive may be a lost cause. In any case, copy all the data off the drive now.
    – Bob
    Aug 9, 2012 at 13:05
  • So I need to reformat my desktop PC?
    – Bazinga
    Aug 9, 2012 at 13:08

6 Answers 6

1

This either happens by the hardware lock or a software setting:

  1. You have write protected the USB drive by sliding a lock.

    To resolve this, you can slide it back to be unlocked. Use tape if you accidentally lock it.

  2. Your storage device policy is set to be write protected.

    To resolve this, open up the registry editor (Start -> Run -> regedit) and browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrrentControlSet\Control\StorageDevicePolicies, there you can create / edit a new DWORD called WriteProtect and set the value to 0.

    If StorageDevicePolicies doesn't exist, you can safely create that registry key as well.

Check the latter on both your desktop and laptop.

4
  • Have tried it. But, for example. from my laptop I copy a file in my usb. then in my desktop pc, it became corrupted when I access it. I think the prob is in my desktop.
    – Bazinga
    Aug 9, 2012 at 13:48
  • @user1302274: Sounds like you are not doing safe removal? Aug 9, 2012 at 13:51
  • Im doing safe removal.
    – Bazinga
    Aug 9, 2012 at 13:52
  • This fixed my issue on a domain based organization.
    – Niklas
    May 8, 2019 at 8:27
1

If the flash drive is especially old or sees heavy use, there's a chance that it's on its last legs and the flash controller can no longer (safely) write to the memory blocks. If that's the case, copy everything off of the drive to a safe location as soon as possible.

(Note: I'm not familiar with how operating systems actually handle this scenario, as I've yet to experience it myself. I'm just throwing out the possibility.)

EDIT: Sorry Bob, I didn't see your reply to the question before I posted this.

1

If there's nothing physically wrong with the drive this could help anyone looking at this thread.

From an Administrator cmd prompt (Win+X, A):

diskpart
list disk
select disk X (Replace "X" with the number of your write-protected hard drive.)
attributes disk clear readonly
0

Insert USB drive

  • go to Computer
  • Right click the USB Drive icon and click Properties
  • Click the security tab.
  • Click edit under the Group or user names display.
  • Click on Everyone (so that it is highlighted) then below in the permissions for Everyone area, tick Full Control.
0

Open up a console (cmd.exe) and type diskpart. Type list disk then select disk 0 (change the 0 to whatever number your USB drive is. Type detail disk and check the "Current Read-only State" and the "Read-only" attributes. If it says "No" for the first and "Yes" for the second, your USB drive may be going bad. If it's the other way around, then it's a policy/program messing with it. If this is the case, back up your files on the USB drive, open up another console and type (again, replace the 0 on select disk 0 with your USB drive number):

diskpart
list disk
select disk 0
clean
create partition primary
format fs=FAT32 quick

Safely remove the USB drive and try it again.

-2

Works except in windows 7.

  1. Right-click the USB drive icon then select Properties.
  2. Go to Sharing > Advanced sharing.
  3. Tick Share this folder
  4. Click Permissions.
  5. Select Everyone.
  6. Check Allow under Full Control.
  7. Click Apply > Apply > Close.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .