What can I do if my USB flash drive is write-protected or read-only?
up vote
30
down vote
favorite
When I plug in my USB flash drive, it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on it. I also cannot repartition or reformat the drive using Windows Disk Management, DiskPart, GParted, or other tools. The drive does not have a write-protect switch.
Why did this happen and what can I do about it? Is there a way to remove the write protection? (Note that this can happen with some memory cards, too, as they often use controllers similar to those used in flash drives.)
This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.
usb usb-flash-drive read-only write-protect community-faq
|
show 5 more comments
up vote
30
down vote
favorite
When I plug in my USB flash drive, it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on it. I also cannot repartition or reformat the drive using Windows Disk Management, DiskPart, GParted, or other tools. The drive does not have a write-protect switch.
Why did this happen and what can I do about it? Is there a way to remove the write protection? (Note that this can happen with some memory cards, too, as they often use controllers similar to those used in flash drives.)
This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.
usb usb-flash-drive read-only write-protect community-faq
2
Relevant Meta question: meta.superuser.com/questions/11820/… As this is intended to be the canonical question, please don't vote to close this as a duplicate of other questions; instead, other questions should be closed as a duplicate of this question (once this is possible).
– bwDraco
Sep 17 '16 at 2:20
5
Possible duplicate of Why is my USB Flash Drive Now Read-Only?
– bgmCoder
Sep 17 '16 at 13:31
2
@bgmCoder: the newest question is not always the duplicate; please see superuser.com/questions/1061528/…. More information on canonical questions: meta.superuser.com/questions/778/…
– bwDraco
Sep 17 '16 at 13:38
4
@bgmCoder: Indeed, the very reason this question exists is the sheer number of "my flash drive is write protected!" questions on this site. The idea's to consolidate them into one canonical question.
– bwDraco
Sep 17 '16 at 13:45
3
@bgmCoder You won't lose your imaginary points if your question is closed as a dupe.
– DavidPostill♦
Sep 29 '16 at 14:15
|
show 5 more comments
up vote
30
down vote
favorite
up vote
30
down vote
favorite
When I plug in my USB flash drive, it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on it. I also cannot repartition or reformat the drive using Windows Disk Management, DiskPart, GParted, or other tools. The drive does not have a write-protect switch.
Why did this happen and what can I do about it? Is there a way to remove the write protection? (Note that this can happen with some memory cards, too, as they often use controllers similar to those used in flash drives.)
This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.
usb usb-flash-drive read-only write-protect community-faq
When I plug in my USB flash drive, it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on it. I also cannot repartition or reformat the drive using Windows Disk Management, DiskPart, GParted, or other tools. The drive does not have a write-protect switch.
Why did this happen and what can I do about it? Is there a way to remove the write protection? (Note that this can happen with some memory cards, too, as they often use controllers similar to those used in flash drives.)
This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.
usb usb-flash-drive read-only write-protect community-faq
usb usb-flash-drive read-only write-protect community-faq
edited Nov 7 '16 at 6:59
asked Sep 17 '16 at 2:15
bwDraco
36.4k36135177
36.4k36135177
2
Relevant Meta question: meta.superuser.com/questions/11820/… As this is intended to be the canonical question, please don't vote to close this as a duplicate of other questions; instead, other questions should be closed as a duplicate of this question (once this is possible).
– bwDraco
Sep 17 '16 at 2:20
5
Possible duplicate of Why is my USB Flash Drive Now Read-Only?
– bgmCoder
Sep 17 '16 at 13:31
2
@bgmCoder: the newest question is not always the duplicate; please see superuser.com/questions/1061528/…. More information on canonical questions: meta.superuser.com/questions/778/…
– bwDraco
Sep 17 '16 at 13:38
4
@bgmCoder: Indeed, the very reason this question exists is the sheer number of "my flash drive is write protected!" questions on this site. The idea's to consolidate them into one canonical question.
– bwDraco
Sep 17 '16 at 13:45
3
@bgmCoder You won't lose your imaginary points if your question is closed as a dupe.
– DavidPostill♦
Sep 29 '16 at 14:15
|
show 5 more comments
2
Relevant Meta question: meta.superuser.com/questions/11820/… As this is intended to be the canonical question, please don't vote to close this as a duplicate of other questions; instead, other questions should be closed as a duplicate of this question (once this is possible).
– bwDraco
Sep 17 '16 at 2:20
5
Possible duplicate of Why is my USB Flash Drive Now Read-Only?
– bgmCoder
Sep 17 '16 at 13:31
2
@bgmCoder: the newest question is not always the duplicate; please see superuser.com/questions/1061528/…. More information on canonical questions: meta.superuser.com/questions/778/…
– bwDraco
Sep 17 '16 at 13:38
4
@bgmCoder: Indeed, the very reason this question exists is the sheer number of "my flash drive is write protected!" questions on this site. The idea's to consolidate them into one canonical question.
– bwDraco
Sep 17 '16 at 13:45
3
@bgmCoder You won't lose your imaginary points if your question is closed as a dupe.
– DavidPostill♦
Sep 29 '16 at 14:15
2
2
Relevant Meta question: meta.superuser.com/questions/11820/… As this is intended to be the canonical question, please don't vote to close this as a duplicate of other questions; instead, other questions should be closed as a duplicate of this question (once this is possible).
– bwDraco
Sep 17 '16 at 2:20
Relevant Meta question: meta.superuser.com/questions/11820/… As this is intended to be the canonical question, please don't vote to close this as a duplicate of other questions; instead, other questions should be closed as a duplicate of this question (once this is possible).
– bwDraco
Sep 17 '16 at 2:20
5
5
Possible duplicate of Why is my USB Flash Drive Now Read-Only?
– bgmCoder
Sep 17 '16 at 13:31
Possible duplicate of Why is my USB Flash Drive Now Read-Only?
– bgmCoder
Sep 17 '16 at 13:31
2
2
@bgmCoder: the newest question is not always the duplicate; please see superuser.com/questions/1061528/…. More information on canonical questions: meta.superuser.com/questions/778/…
– bwDraco
Sep 17 '16 at 13:38
@bgmCoder: the newest question is not always the duplicate; please see superuser.com/questions/1061528/…. More information on canonical questions: meta.superuser.com/questions/778/…
– bwDraco
Sep 17 '16 at 13:38
4
4
@bgmCoder: Indeed, the very reason this question exists is the sheer number of "my flash drive is write protected!" questions on this site. The idea's to consolidate them into one canonical question.
– bwDraco
Sep 17 '16 at 13:45
@bgmCoder: Indeed, the very reason this question exists is the sheer number of "my flash drive is write protected!" questions on this site. The idea's to consolidate them into one canonical question.
– bwDraco
Sep 17 '16 at 13:45
3
3
@bgmCoder You won't lose your imaginary points if your question is closed as a dupe.
– DavidPostill♦
Sep 29 '16 at 14:15
@bgmCoder You won't lose your imaginary points if your question is closed as a dupe.
– DavidPostill♦
Sep 29 '16 at 14:15
|
show 5 more comments
3 Answers
3
active
oldest
votes
up vote
30
down vote
accepted
If the drive appears to be write-protected, start by inserting the drive into another computer to isolate the cause of the issue.
If you're able to write to the drive from another computer, you might be experiencing one of the following problems:
Filesystem corruption. The drive might have a corrupted filesystem or other issue (possibly specific to a particular computer or OS) that can be corrected by using
CHKDSK
or a similar utility. If this addresses the problem, your drive is probably working normally. It's also important to eject the drive properly before removing it or at least wait until the drive has finished writing, as removal of the drive while it is writing data can cause low-level data corruption.Incorrect Group Policy settings. If you're running Windows, it's possible that your system's Group Policy may be disallowing writing to external storage devices, including USB flash drives. The registry key
HKEY_LOCAL_MACHINESystemCurrentControlSetControlStorageDevicePolicies
should either be absent or set to 0; if it is set to 1, Windows will not allow writing to external storage devices.
(SD cards only) Broken or altered write-protect switch in the card slot. The mechanical lock switch on an SD card is not connected to its electronics:
It is the responsibility of the host to protect the card. The position of the write protect switch is unknown to the internal circuitry of the card.
This means that hardware and software other than the card itself is responsible for checking the lock state of the card. If this mechanism isn't working as designed, a SD card can appear to be write-protected even if it is otherwise functioning normally. Typically, this can be addressed by replacing the card reader, although faulty drivers or incorrect software configuration can also cause this problem.
If the drive is read-only no matter what computer you plug it into, or you've tried the above steps to no avail, then the drive has probably experienced a fault condition, and it's generally not possible to remove write protection from a faulty flash drive. This behavior is typical of flash drive controllers when they detect a problem with the underlying NAND (e.g. too many bad blocks). The write protection is intended to prevent this condition from actually causing data loss, e.g. the NAND becoming unreadable altogether. For example, SanDisk customer support says:
Write protection errors occur when a flash drive detects a potential fault within itself. The drive will go into write-protected mode to prevent data loss. There is no method to fix this.
Note that depending on the drive, there may in fact be ways to disable (or more accurately, reset) the write protection by reprogramming the flash memory controller, such as by using the techniques listed under "Potential Hardware-Specific Restoration" in this answer. Doing this is not a good idea because the write protection signals that a problem has been detected by the controller; overriding this and continuing to write to the drive could result in data loss.
The upshot of this behavior is that any data on the drive is still accessible. Because the drive is failing, you should back up the contents of the flash drive as soon as possible and replace the drive. (If the drive contains sensitive information, be sure to physically destroy it before you dispose of it.)
Getting data off the drive may be tricky because some data corruption may have already occurred by the time drive went into read-only mode. This commonly manifests itself as the filesystem experiencing low-level corruption causing the filesystem to appear as RAW or the OS prompting the format the drive. Recovering from this kind of corruption can be complicated because the filesystem cannot be directly repaired—the drive is, after all, write-protected.
You may be able to retrieve data from a drive corrupted in this manner by using data recovery utilities such as the open-source TestDisk. You can also get a drive of equal or greater capacity and copy over the failing drive's contents sector by sector onto the new drive using GNU ddrescue, and follow up with a CHKDSK
to fix the filesystem errors. If these fail, and the data is particularly valuable, you could send the drive to a dedicated data recovery service; however, these services tend to be very expensive due to their highly specialized nature and are rarely worth it.
The details compiled by wbDraco are impressive, but they lack a conclusion, IMHO. And the conclusion seems to be that it is a manufacturer's fault, and therefore the faulty device must be replaced free of charge. Period. Is there any statistics which particulat bridge ICs (or IC steppings) are prone to this problem?
– Ale..chenski
Sep 18 '16 at 3:12
1
That's a non sequitur. I made no mention of the drive's manufacturer, and the drive controller or USB bridge is not something most folks care about (unless the drive is an "SSD-on-a-stick" or similarly advanced device). The conclusion is simply that the drive's contents need to be backed up and the drive replaced.
– bwDraco
Sep 18 '16 at 3:16
Maybe this is the problem that you (and other people) failed to establish any correlation with any particular controller chip inside the flash? I personally had managed a collection of hundreds of pen drives (for inter-operability and performance exercises), with substantial abuse of them, and I never had this experience with sudden write protection. I still have about 40 pen drives of all varieties, and still see not a single problem of this sort yet. Therefore there must be some specific batch of ICs, for which unfortunate folks should be reimbursed.
– Ale..chenski
Sep 18 '16 at 5:14
add a comment |
up vote
7
down vote
I found my Transcend StorageJet was set to be read-only too. It can be written on other computer but not on my laptop. (Both systems are Win7)
I don't find any strange codes, e.g. WriteProtect
, under HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl
in my registry.
Finally I found this solution and it can work now!
(I modify some mistakes and add my own expressions from the reference article.)
To solve this issue, you must use
diskpart
:
Open a Command Prompt with administrative privileges (Right-click > Run as Administrator).
Type diskpart and press Enter. You can see the command prompt is changed to be DISKPART>
List the disks by typing:
list disk
- Select the external USB disk by typing (in my example the external disk was disk 2):
select disk 2
- List the volume by typing:
list volume
- Select the volume by typing (in my example the external disk was using volume 4):
select volume 4
- Display the volume details:
detail disk
- Display the volume details:
detail volume
(You may find the read-only attributes of the selected disk and volume
set to be YES)
- Set the read-only attributes for the disk and volume to be off:
attributes disk clear readonly
attributes volume clear readonly
- Execute detail disk and detail disk again to check the read-only attribute. Write something to your external USB HD.
See also
External Hard Drive Read Only Issue and Solution
DiskPart Command-Line Options
add a comment |
up vote
5
down vote
Ensure that the "Write-Protect Switch" is not locked:
In some cases low-level format tools may help (but it needs a few hours to completely format. Also backup files.): https://www.protectpages.com/blog/free-file-recovery-software/
add a comment |
protected by bwDraco May 24 '17 at 3:29
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
30
down vote
accepted
If the drive appears to be write-protected, start by inserting the drive into another computer to isolate the cause of the issue.
If you're able to write to the drive from another computer, you might be experiencing one of the following problems:
Filesystem corruption. The drive might have a corrupted filesystem or other issue (possibly specific to a particular computer or OS) that can be corrected by using
CHKDSK
or a similar utility. If this addresses the problem, your drive is probably working normally. It's also important to eject the drive properly before removing it or at least wait until the drive has finished writing, as removal of the drive while it is writing data can cause low-level data corruption.Incorrect Group Policy settings. If you're running Windows, it's possible that your system's Group Policy may be disallowing writing to external storage devices, including USB flash drives. The registry key
HKEY_LOCAL_MACHINESystemCurrentControlSetControlStorageDevicePolicies
should either be absent or set to 0; if it is set to 1, Windows will not allow writing to external storage devices.
(SD cards only) Broken or altered write-protect switch in the card slot. The mechanical lock switch on an SD card is not connected to its electronics:
It is the responsibility of the host to protect the card. The position of the write protect switch is unknown to the internal circuitry of the card.
This means that hardware and software other than the card itself is responsible for checking the lock state of the card. If this mechanism isn't working as designed, a SD card can appear to be write-protected even if it is otherwise functioning normally. Typically, this can be addressed by replacing the card reader, although faulty drivers or incorrect software configuration can also cause this problem.
If the drive is read-only no matter what computer you plug it into, or you've tried the above steps to no avail, then the drive has probably experienced a fault condition, and it's generally not possible to remove write protection from a faulty flash drive. This behavior is typical of flash drive controllers when they detect a problem with the underlying NAND (e.g. too many bad blocks). The write protection is intended to prevent this condition from actually causing data loss, e.g. the NAND becoming unreadable altogether. For example, SanDisk customer support says:
Write protection errors occur when a flash drive detects a potential fault within itself. The drive will go into write-protected mode to prevent data loss. There is no method to fix this.
Note that depending on the drive, there may in fact be ways to disable (or more accurately, reset) the write protection by reprogramming the flash memory controller, such as by using the techniques listed under "Potential Hardware-Specific Restoration" in this answer. Doing this is not a good idea because the write protection signals that a problem has been detected by the controller; overriding this and continuing to write to the drive could result in data loss.
The upshot of this behavior is that any data on the drive is still accessible. Because the drive is failing, you should back up the contents of the flash drive as soon as possible and replace the drive. (If the drive contains sensitive information, be sure to physically destroy it before you dispose of it.)
Getting data off the drive may be tricky because some data corruption may have already occurred by the time drive went into read-only mode. This commonly manifests itself as the filesystem experiencing low-level corruption causing the filesystem to appear as RAW or the OS prompting the format the drive. Recovering from this kind of corruption can be complicated because the filesystem cannot be directly repaired—the drive is, after all, write-protected.
You may be able to retrieve data from a drive corrupted in this manner by using data recovery utilities such as the open-source TestDisk. You can also get a drive of equal or greater capacity and copy over the failing drive's contents sector by sector onto the new drive using GNU ddrescue, and follow up with a CHKDSK
to fix the filesystem errors. If these fail, and the data is particularly valuable, you could send the drive to a dedicated data recovery service; however, these services tend to be very expensive due to their highly specialized nature and are rarely worth it.
The details compiled by wbDraco are impressive, but they lack a conclusion, IMHO. And the conclusion seems to be that it is a manufacturer's fault, and therefore the faulty device must be replaced free of charge. Period. Is there any statistics which particulat bridge ICs (or IC steppings) are prone to this problem?
– Ale..chenski
Sep 18 '16 at 3:12
1
That's a non sequitur. I made no mention of the drive's manufacturer, and the drive controller or USB bridge is not something most folks care about (unless the drive is an "SSD-on-a-stick" or similarly advanced device). The conclusion is simply that the drive's contents need to be backed up and the drive replaced.
– bwDraco
Sep 18 '16 at 3:16
Maybe this is the problem that you (and other people) failed to establish any correlation with any particular controller chip inside the flash? I personally had managed a collection of hundreds of pen drives (for inter-operability and performance exercises), with substantial abuse of them, and I never had this experience with sudden write protection. I still have about 40 pen drives of all varieties, and still see not a single problem of this sort yet. Therefore there must be some specific batch of ICs, for which unfortunate folks should be reimbursed.
– Ale..chenski
Sep 18 '16 at 5:14
add a comment |
up vote
30
down vote
accepted
If the drive appears to be write-protected, start by inserting the drive into another computer to isolate the cause of the issue.
If you're able to write to the drive from another computer, you might be experiencing one of the following problems:
Filesystem corruption. The drive might have a corrupted filesystem or other issue (possibly specific to a particular computer or OS) that can be corrected by using
CHKDSK
or a similar utility. If this addresses the problem, your drive is probably working normally. It's also important to eject the drive properly before removing it or at least wait until the drive has finished writing, as removal of the drive while it is writing data can cause low-level data corruption.Incorrect Group Policy settings. If you're running Windows, it's possible that your system's Group Policy may be disallowing writing to external storage devices, including USB flash drives. The registry key
HKEY_LOCAL_MACHINESystemCurrentControlSetControlStorageDevicePolicies
should either be absent or set to 0; if it is set to 1, Windows will not allow writing to external storage devices.
(SD cards only) Broken or altered write-protect switch in the card slot. The mechanical lock switch on an SD card is not connected to its electronics:
It is the responsibility of the host to protect the card. The position of the write protect switch is unknown to the internal circuitry of the card.
This means that hardware and software other than the card itself is responsible for checking the lock state of the card. If this mechanism isn't working as designed, a SD card can appear to be write-protected even if it is otherwise functioning normally. Typically, this can be addressed by replacing the card reader, although faulty drivers or incorrect software configuration can also cause this problem.
If the drive is read-only no matter what computer you plug it into, or you've tried the above steps to no avail, then the drive has probably experienced a fault condition, and it's generally not possible to remove write protection from a faulty flash drive. This behavior is typical of flash drive controllers when they detect a problem with the underlying NAND (e.g. too many bad blocks). The write protection is intended to prevent this condition from actually causing data loss, e.g. the NAND becoming unreadable altogether. For example, SanDisk customer support says:
Write protection errors occur when a flash drive detects a potential fault within itself. The drive will go into write-protected mode to prevent data loss. There is no method to fix this.
Note that depending on the drive, there may in fact be ways to disable (or more accurately, reset) the write protection by reprogramming the flash memory controller, such as by using the techniques listed under "Potential Hardware-Specific Restoration" in this answer. Doing this is not a good idea because the write protection signals that a problem has been detected by the controller; overriding this and continuing to write to the drive could result in data loss.
The upshot of this behavior is that any data on the drive is still accessible. Because the drive is failing, you should back up the contents of the flash drive as soon as possible and replace the drive. (If the drive contains sensitive information, be sure to physically destroy it before you dispose of it.)
Getting data off the drive may be tricky because some data corruption may have already occurred by the time drive went into read-only mode. This commonly manifests itself as the filesystem experiencing low-level corruption causing the filesystem to appear as RAW or the OS prompting the format the drive. Recovering from this kind of corruption can be complicated because the filesystem cannot be directly repaired—the drive is, after all, write-protected.
You may be able to retrieve data from a drive corrupted in this manner by using data recovery utilities such as the open-source TestDisk. You can also get a drive of equal or greater capacity and copy over the failing drive's contents sector by sector onto the new drive using GNU ddrescue, and follow up with a CHKDSK
to fix the filesystem errors. If these fail, and the data is particularly valuable, you could send the drive to a dedicated data recovery service; however, these services tend to be very expensive due to their highly specialized nature and are rarely worth it.
The details compiled by wbDraco are impressive, but they lack a conclusion, IMHO. And the conclusion seems to be that it is a manufacturer's fault, and therefore the faulty device must be replaced free of charge. Period. Is there any statistics which particulat bridge ICs (or IC steppings) are prone to this problem?
– Ale..chenski
Sep 18 '16 at 3:12
1
That's a non sequitur. I made no mention of the drive's manufacturer, and the drive controller or USB bridge is not something most folks care about (unless the drive is an "SSD-on-a-stick" or similarly advanced device). The conclusion is simply that the drive's contents need to be backed up and the drive replaced.
– bwDraco
Sep 18 '16 at 3:16
Maybe this is the problem that you (and other people) failed to establish any correlation with any particular controller chip inside the flash? I personally had managed a collection of hundreds of pen drives (for inter-operability and performance exercises), with substantial abuse of them, and I never had this experience with sudden write protection. I still have about 40 pen drives of all varieties, and still see not a single problem of this sort yet. Therefore there must be some specific batch of ICs, for which unfortunate folks should be reimbursed.
– Ale..chenski
Sep 18 '16 at 5:14
add a comment |
up vote
30
down vote
accepted
up vote
30
down vote
accepted
If the drive appears to be write-protected, start by inserting the drive into another computer to isolate the cause of the issue.
If you're able to write to the drive from another computer, you might be experiencing one of the following problems:
Filesystem corruption. The drive might have a corrupted filesystem or other issue (possibly specific to a particular computer or OS) that can be corrected by using
CHKDSK
or a similar utility. If this addresses the problem, your drive is probably working normally. It's also important to eject the drive properly before removing it or at least wait until the drive has finished writing, as removal of the drive while it is writing data can cause low-level data corruption.Incorrect Group Policy settings. If you're running Windows, it's possible that your system's Group Policy may be disallowing writing to external storage devices, including USB flash drives. The registry key
HKEY_LOCAL_MACHINESystemCurrentControlSetControlStorageDevicePolicies
should either be absent or set to 0; if it is set to 1, Windows will not allow writing to external storage devices.
(SD cards only) Broken or altered write-protect switch in the card slot. The mechanical lock switch on an SD card is not connected to its electronics:
It is the responsibility of the host to protect the card. The position of the write protect switch is unknown to the internal circuitry of the card.
This means that hardware and software other than the card itself is responsible for checking the lock state of the card. If this mechanism isn't working as designed, a SD card can appear to be write-protected even if it is otherwise functioning normally. Typically, this can be addressed by replacing the card reader, although faulty drivers or incorrect software configuration can also cause this problem.
If the drive is read-only no matter what computer you plug it into, or you've tried the above steps to no avail, then the drive has probably experienced a fault condition, and it's generally not possible to remove write protection from a faulty flash drive. This behavior is typical of flash drive controllers when they detect a problem with the underlying NAND (e.g. too many bad blocks). The write protection is intended to prevent this condition from actually causing data loss, e.g. the NAND becoming unreadable altogether. For example, SanDisk customer support says:
Write protection errors occur when a flash drive detects a potential fault within itself. The drive will go into write-protected mode to prevent data loss. There is no method to fix this.
Note that depending on the drive, there may in fact be ways to disable (or more accurately, reset) the write protection by reprogramming the flash memory controller, such as by using the techniques listed under "Potential Hardware-Specific Restoration" in this answer. Doing this is not a good idea because the write protection signals that a problem has been detected by the controller; overriding this and continuing to write to the drive could result in data loss.
The upshot of this behavior is that any data on the drive is still accessible. Because the drive is failing, you should back up the contents of the flash drive as soon as possible and replace the drive. (If the drive contains sensitive information, be sure to physically destroy it before you dispose of it.)
Getting data off the drive may be tricky because some data corruption may have already occurred by the time drive went into read-only mode. This commonly manifests itself as the filesystem experiencing low-level corruption causing the filesystem to appear as RAW or the OS prompting the format the drive. Recovering from this kind of corruption can be complicated because the filesystem cannot be directly repaired—the drive is, after all, write-protected.
You may be able to retrieve data from a drive corrupted in this manner by using data recovery utilities such as the open-source TestDisk. You can also get a drive of equal or greater capacity and copy over the failing drive's contents sector by sector onto the new drive using GNU ddrescue, and follow up with a CHKDSK
to fix the filesystem errors. If these fail, and the data is particularly valuable, you could send the drive to a dedicated data recovery service; however, these services tend to be very expensive due to their highly specialized nature and are rarely worth it.
If the drive appears to be write-protected, start by inserting the drive into another computer to isolate the cause of the issue.
If you're able to write to the drive from another computer, you might be experiencing one of the following problems:
Filesystem corruption. The drive might have a corrupted filesystem or other issue (possibly specific to a particular computer or OS) that can be corrected by using
CHKDSK
or a similar utility. If this addresses the problem, your drive is probably working normally. It's also important to eject the drive properly before removing it or at least wait until the drive has finished writing, as removal of the drive while it is writing data can cause low-level data corruption.Incorrect Group Policy settings. If you're running Windows, it's possible that your system's Group Policy may be disallowing writing to external storage devices, including USB flash drives. The registry key
HKEY_LOCAL_MACHINESystemCurrentControlSetControlStorageDevicePolicies
should either be absent or set to 0; if it is set to 1, Windows will not allow writing to external storage devices.
(SD cards only) Broken or altered write-protect switch in the card slot. The mechanical lock switch on an SD card is not connected to its electronics:
It is the responsibility of the host to protect the card. The position of the write protect switch is unknown to the internal circuitry of the card.
This means that hardware and software other than the card itself is responsible for checking the lock state of the card. If this mechanism isn't working as designed, a SD card can appear to be write-protected even if it is otherwise functioning normally. Typically, this can be addressed by replacing the card reader, although faulty drivers or incorrect software configuration can also cause this problem.
If the drive is read-only no matter what computer you plug it into, or you've tried the above steps to no avail, then the drive has probably experienced a fault condition, and it's generally not possible to remove write protection from a faulty flash drive. This behavior is typical of flash drive controllers when they detect a problem with the underlying NAND (e.g. too many bad blocks). The write protection is intended to prevent this condition from actually causing data loss, e.g. the NAND becoming unreadable altogether. For example, SanDisk customer support says:
Write protection errors occur when a flash drive detects a potential fault within itself. The drive will go into write-protected mode to prevent data loss. There is no method to fix this.
Note that depending on the drive, there may in fact be ways to disable (or more accurately, reset) the write protection by reprogramming the flash memory controller, such as by using the techniques listed under "Potential Hardware-Specific Restoration" in this answer. Doing this is not a good idea because the write protection signals that a problem has been detected by the controller; overriding this and continuing to write to the drive could result in data loss.
The upshot of this behavior is that any data on the drive is still accessible. Because the drive is failing, you should back up the contents of the flash drive as soon as possible and replace the drive. (If the drive contains sensitive information, be sure to physically destroy it before you dispose of it.)
Getting data off the drive may be tricky because some data corruption may have already occurred by the time drive went into read-only mode. This commonly manifests itself as the filesystem experiencing low-level corruption causing the filesystem to appear as RAW or the OS prompting the format the drive. Recovering from this kind of corruption can be complicated because the filesystem cannot be directly repaired—the drive is, after all, write-protected.
You may be able to retrieve data from a drive corrupted in this manner by using data recovery utilities such as the open-source TestDisk. You can also get a drive of equal or greater capacity and copy over the failing drive's contents sector by sector onto the new drive using GNU ddrescue, and follow up with a CHKDSK
to fix the filesystem errors. If these fail, and the data is particularly valuable, you could send the drive to a dedicated data recovery service; however, these services tend to be very expensive due to their highly specialized nature and are rarely worth it.
edited Feb 5 at 22:41
community wiki
13 revs, 3 users 76%
bwDraco
The details compiled by wbDraco are impressive, but they lack a conclusion, IMHO. And the conclusion seems to be that it is a manufacturer's fault, and therefore the faulty device must be replaced free of charge. Period. Is there any statistics which particulat bridge ICs (or IC steppings) are prone to this problem?
– Ale..chenski
Sep 18 '16 at 3:12
1
That's a non sequitur. I made no mention of the drive's manufacturer, and the drive controller or USB bridge is not something most folks care about (unless the drive is an "SSD-on-a-stick" or similarly advanced device). The conclusion is simply that the drive's contents need to be backed up and the drive replaced.
– bwDraco
Sep 18 '16 at 3:16
Maybe this is the problem that you (and other people) failed to establish any correlation with any particular controller chip inside the flash? I personally had managed a collection of hundreds of pen drives (for inter-operability and performance exercises), with substantial abuse of them, and I never had this experience with sudden write protection. I still have about 40 pen drives of all varieties, and still see not a single problem of this sort yet. Therefore there must be some specific batch of ICs, for which unfortunate folks should be reimbursed.
– Ale..chenski
Sep 18 '16 at 5:14
add a comment |
The details compiled by wbDraco are impressive, but they lack a conclusion, IMHO. And the conclusion seems to be that it is a manufacturer's fault, and therefore the faulty device must be replaced free of charge. Period. Is there any statistics which particulat bridge ICs (or IC steppings) are prone to this problem?
– Ale..chenski
Sep 18 '16 at 3:12
1
That's a non sequitur. I made no mention of the drive's manufacturer, and the drive controller or USB bridge is not something most folks care about (unless the drive is an "SSD-on-a-stick" or similarly advanced device). The conclusion is simply that the drive's contents need to be backed up and the drive replaced.
– bwDraco
Sep 18 '16 at 3:16
Maybe this is the problem that you (and other people) failed to establish any correlation with any particular controller chip inside the flash? I personally had managed a collection of hundreds of pen drives (for inter-operability and performance exercises), with substantial abuse of them, and I never had this experience with sudden write protection. I still have about 40 pen drives of all varieties, and still see not a single problem of this sort yet. Therefore there must be some specific batch of ICs, for which unfortunate folks should be reimbursed.
– Ale..chenski
Sep 18 '16 at 5:14
The details compiled by wbDraco are impressive, but they lack a conclusion, IMHO. And the conclusion seems to be that it is a manufacturer's fault, and therefore the faulty device must be replaced free of charge. Period. Is there any statistics which particulat bridge ICs (or IC steppings) are prone to this problem?
– Ale..chenski
Sep 18 '16 at 3:12
The details compiled by wbDraco are impressive, but they lack a conclusion, IMHO. And the conclusion seems to be that it is a manufacturer's fault, and therefore the faulty device must be replaced free of charge. Period. Is there any statistics which particulat bridge ICs (or IC steppings) are prone to this problem?
– Ale..chenski
Sep 18 '16 at 3:12
1
1
That's a non sequitur. I made no mention of the drive's manufacturer, and the drive controller or USB bridge is not something most folks care about (unless the drive is an "SSD-on-a-stick" or similarly advanced device). The conclusion is simply that the drive's contents need to be backed up and the drive replaced.
– bwDraco
Sep 18 '16 at 3:16
That's a non sequitur. I made no mention of the drive's manufacturer, and the drive controller or USB bridge is not something most folks care about (unless the drive is an "SSD-on-a-stick" or similarly advanced device). The conclusion is simply that the drive's contents need to be backed up and the drive replaced.
– bwDraco
Sep 18 '16 at 3:16
Maybe this is the problem that you (and other people) failed to establish any correlation with any particular controller chip inside the flash? I personally had managed a collection of hundreds of pen drives (for inter-operability and performance exercises), with substantial abuse of them, and I never had this experience with sudden write protection. I still have about 40 pen drives of all varieties, and still see not a single problem of this sort yet. Therefore there must be some specific batch of ICs, for which unfortunate folks should be reimbursed.
– Ale..chenski
Sep 18 '16 at 5:14
Maybe this is the problem that you (and other people) failed to establish any correlation with any particular controller chip inside the flash? I personally had managed a collection of hundreds of pen drives (for inter-operability and performance exercises), with substantial abuse of them, and I never had this experience with sudden write protection. I still have about 40 pen drives of all varieties, and still see not a single problem of this sort yet. Therefore there must be some specific batch of ICs, for which unfortunate folks should be reimbursed.
– Ale..chenski
Sep 18 '16 at 5:14
add a comment |
up vote
7
down vote
I found my Transcend StorageJet was set to be read-only too. It can be written on other computer but not on my laptop. (Both systems are Win7)
I don't find any strange codes, e.g. WriteProtect
, under HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl
in my registry.
Finally I found this solution and it can work now!
(I modify some mistakes and add my own expressions from the reference article.)
To solve this issue, you must use
diskpart
:
Open a Command Prompt with administrative privileges (Right-click > Run as Administrator).
Type diskpart and press Enter. You can see the command prompt is changed to be DISKPART>
List the disks by typing:
list disk
- Select the external USB disk by typing (in my example the external disk was disk 2):
select disk 2
- List the volume by typing:
list volume
- Select the volume by typing (in my example the external disk was using volume 4):
select volume 4
- Display the volume details:
detail disk
- Display the volume details:
detail volume
(You may find the read-only attributes of the selected disk and volume
set to be YES)
- Set the read-only attributes for the disk and volume to be off:
attributes disk clear readonly
attributes volume clear readonly
- Execute detail disk and detail disk again to check the read-only attribute. Write something to your external USB HD.
See also
External Hard Drive Read Only Issue and Solution
DiskPart Command-Line Options
add a comment |
up vote
7
down vote
I found my Transcend StorageJet was set to be read-only too. It can be written on other computer but not on my laptop. (Both systems are Win7)
I don't find any strange codes, e.g. WriteProtect
, under HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl
in my registry.
Finally I found this solution and it can work now!
(I modify some mistakes and add my own expressions from the reference article.)
To solve this issue, you must use
diskpart
:
Open a Command Prompt with administrative privileges (Right-click > Run as Administrator).
Type diskpart and press Enter. You can see the command prompt is changed to be DISKPART>
List the disks by typing:
list disk
- Select the external USB disk by typing (in my example the external disk was disk 2):
select disk 2
- List the volume by typing:
list volume
- Select the volume by typing (in my example the external disk was using volume 4):
select volume 4
- Display the volume details:
detail disk
- Display the volume details:
detail volume
(You may find the read-only attributes of the selected disk and volume
set to be YES)
- Set the read-only attributes for the disk and volume to be off:
attributes disk clear readonly
attributes volume clear readonly
- Execute detail disk and detail disk again to check the read-only attribute. Write something to your external USB HD.
See also
External Hard Drive Read Only Issue and Solution
DiskPart Command-Line Options
add a comment |
up vote
7
down vote
up vote
7
down vote
I found my Transcend StorageJet was set to be read-only too. It can be written on other computer but not on my laptop. (Both systems are Win7)
I don't find any strange codes, e.g. WriteProtect
, under HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl
in my registry.
Finally I found this solution and it can work now!
(I modify some mistakes and add my own expressions from the reference article.)
To solve this issue, you must use
diskpart
:
Open a Command Prompt with administrative privileges (Right-click > Run as Administrator).
Type diskpart and press Enter. You can see the command prompt is changed to be DISKPART>
List the disks by typing:
list disk
- Select the external USB disk by typing (in my example the external disk was disk 2):
select disk 2
- List the volume by typing:
list volume
- Select the volume by typing (in my example the external disk was using volume 4):
select volume 4
- Display the volume details:
detail disk
- Display the volume details:
detail volume
(You may find the read-only attributes of the selected disk and volume
set to be YES)
- Set the read-only attributes for the disk and volume to be off:
attributes disk clear readonly
attributes volume clear readonly
- Execute detail disk and detail disk again to check the read-only attribute. Write something to your external USB HD.
See also
External Hard Drive Read Only Issue and Solution
DiskPart Command-Line Options
I found my Transcend StorageJet was set to be read-only too. It can be written on other computer but not on my laptop. (Both systems are Win7)
I don't find any strange codes, e.g. WriteProtect
, under HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl
in my registry.
Finally I found this solution and it can work now!
(I modify some mistakes and add my own expressions from the reference article.)
To solve this issue, you must use
diskpart
:
Open a Command Prompt with administrative privileges (Right-click > Run as Administrator).
Type diskpart and press Enter. You can see the command prompt is changed to be DISKPART>
List the disks by typing:
list disk
- Select the external USB disk by typing (in my example the external disk was disk 2):
select disk 2
- List the volume by typing:
list volume
- Select the volume by typing (in my example the external disk was using volume 4):
select volume 4
- Display the volume details:
detail disk
- Display the volume details:
detail volume
(You may find the read-only attributes of the selected disk and volume
set to be YES)
- Set the read-only attributes for the disk and volume to be off:
attributes disk clear readonly
attributes volume clear readonly
- Execute detail disk and detail disk again to check the read-only attribute. Write something to your external USB HD.
See also
External Hard Drive Read Only Issue and Solution
DiskPart Command-Line Options
edited May 9 '17 at 10:42
DavidPostill♦
102k25218254
102k25218254
answered Mar 7 '17 at 6:14
陸普世
7112
7112
add a comment |
add a comment |
up vote
5
down vote
Ensure that the "Write-Protect Switch" is not locked:
In some cases low-level format tools may help (but it needs a few hours to completely format. Also backup files.): https://www.protectpages.com/blog/free-file-recovery-software/
add a comment |
up vote
5
down vote
Ensure that the "Write-Protect Switch" is not locked:
In some cases low-level format tools may help (but it needs a few hours to completely format. Also backup files.): https://www.protectpages.com/blog/free-file-recovery-software/
add a comment |
up vote
5
down vote
up vote
5
down vote
Ensure that the "Write-Protect Switch" is not locked:
In some cases low-level format tools may help (but it needs a few hours to completely format. Also backup files.): https://www.protectpages.com/blog/free-file-recovery-software/
Ensure that the "Write-Protect Switch" is not locked:
In some cases low-level format tools may help (but it needs a few hours to completely format. Also backup files.): https://www.protectpages.com/blog/free-file-recovery-software/
edited May 18 '17 at 16:06
Toby Speight
3,5971532
3,5971532
answered Nov 7 '16 at 8:31
T.Todua
1,40731628
1,40731628
add a comment |
add a comment |
protected by bwDraco May 24 '17 at 3:29
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
2
Relevant Meta question: meta.superuser.com/questions/11820/… As this is intended to be the canonical question, please don't vote to close this as a duplicate of other questions; instead, other questions should be closed as a duplicate of this question (once this is possible).
– bwDraco
Sep 17 '16 at 2:20
5
Possible duplicate of Why is my USB Flash Drive Now Read-Only?
– bgmCoder
Sep 17 '16 at 13:31
2
@bgmCoder: the newest question is not always the duplicate; please see superuser.com/questions/1061528/…. More information on canonical questions: meta.superuser.com/questions/778/…
– bwDraco
Sep 17 '16 at 13:38
4
@bgmCoder: Indeed, the very reason this question exists is the sheer number of "my flash drive is write protected!" questions on this site. The idea's to consolidate them into one canonical question.
– bwDraco
Sep 17 '16 at 13:45
3
@bgmCoder You won't lose your imaginary points if your question is closed as a dupe.
– DavidPostill♦
Sep 29 '16 at 14:15