将文件复制到USB驱动器或 SD 卡时,如果您收到 -媒体被写保护(Media is Write Protected)- 消息,那么这篇文章将帮助您解决问题。删除文件或覆盖媒体上的文件时可能会出现同样的问题。
什么是写保护?
写保护(Write Protection)是某些USB/SD设备中提供的一项功能,可确保文件不会被意外删除或修改。这样,驱动器上的任何原始文件都将保持安全,其他人也无法删除这些文件。
(Remove Media)Windows 11/10删除媒体是写保护(Write Protected)消息
按照以下建议禁用 USB 写保护(disable USB Write-Protection):
- 打开硬件开关
- 使用 Diskpart(Use Diskpart)删除只读状态
- 关闭 BitLocker
- (Disable Write)使用注册表(Registry)禁用写保护
- (Disable Write Protection)使用组策略(Group Policy)禁用写保护
您将需要一个管理员用户帐户,并且清楚地了解我们建议使用的磁盘部件(Disk Part)和BitLocker工具。(BitLocker)
1]关闭硬件开关
一些媒体设备带有一个小缺口或写保护开关,当拉起时,可以启用写保护。它们标记清楚,但可能太小而无法注意到。虽然它们足够坚固,可以意外启用,但您可能已经轻弹了开关。将其关闭,它将能够删除USB或 SD 卡上的写保护。把这个贴出来,你应该可以在磁盘上写了。
阅读(Read):如何删除磁盘上的写保护。
2]使用Diskpart(Use Diskpart)删除只读状态
如果不是硬件锁,则磁盘可能处于只读状态。您可以通过使用Diskpart 工具(Diskpart tool)删除只读属性来删除它。按照步骤删除只读状态。
- 按Windows + R键打开运行提示。
- 键入cmd,然后使用Shift + Enter以管理员权限打开它
- 键入diskpart并按 Enter 键
- 键入list disk,然后按Enter。它将显示Windows PC 上的所有磁盘。
- 选择磁盘 x(disk x)并按Enter键。字母 x 是您 SD 卡的编号
- 键入attr disk clear readonly。
尝试删除文件,您将知道问题是否已解决。
3]关闭BitLocker
(Bitlocker)如果您想保护文件并对其进行加密,Bitlocker是Windows中的一项出色功能。(Windows)您可能为媒体或 SD 卡启用了Bitlocker,但忘记了它。
在文件资源管理器上查看时,任何启用了(File Explorer)Bitlocker的驱动器都会显示锁定。如果是这种情况,请右键单击它并选择关闭 Bitlocker。(Turn off Bitlocker.)完成后,您将无法修改文件。
根据存储大小,解密需要时间。所以等待它,然后尝试破坏其中的一些文件。请记住 Bitlocker(Remember Bitlocker)不是一个写(Write)保护删除工具,它仅在文件之前已使用Bitlocker加密的情况下才有效。
此外,请查看我们的详细指南,了解如何使用注册表(Registry)或组策略(Group Policy)来启用禁用 USB 驱动器上的 BitLocker 的使用。(enable disable the use of BitLocker on USB Drives.)
4]使用注册表(Registry)禁用写(Disable Write)保护
注册表编辑可能很棘手。我强烈建议您在使用此方法之前进行备份或创建系统还原。如果出现问题,您始终可以回到一切按预期工作的状态。跟着这些步骤:
使用Win + R打开运行提示(Run prompt)。键入Regedit并按Enter。如果UAC(UAC)提示,请单击是。打开注册表编辑器(Registry Editor)后,导航到以下路径。
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
双击WriteProtect DWORD并将值从“1”更改为“0”以删除只读状态。
如果找不到StorageDevicePolicies文件夹,则需要创建它。
- 右键单击(Right-click)Control文件(Control)夹,选择New,然后选择Key
- 将文件夹命名为StorageDevicePolicies
- 右键单击(Right-click)StorageDevicePolicies文件(StorageDevicePolicies)夹,然后选择New > DWORD
- 将其命名为WriteProtect并按 Enter 键。
- 双击(Double)WriteProtect DWORD ,并将值设置为 0
5]使用组策略(Group Policy)禁用写保护(Disable Write Protection)
您可以通过启用组策略直接在(enabling the Group Policy.)Windows 10 Pro和Enterprise以及Windows 10 Home上使用它。(Home)
使用Win + R t打开运行提示,输入gpedit.msc,然后按Enter键。这将打开组策略编辑器。(Group Policy Editor.)
在编辑器中,导航到以下路径
Computer Configuration > Administrative Templates > System > Removable Storage Access
根据媒体设备(即USB、CD 或磁带(Tape)),您可以将写入(Write)访问权限更改为禁用。关闭组策略编辑器,您应该可以毫无问题地进行修改。
这就是关于如何在Windows 11/10Media is Write Protected消息的方法。这将确保您可以在其中写入和修改文件。
阅读(Read):如何删除 可移动磁盘的磁盘写保护错误(The Disk Is Write-Protected error for Removable Disks)。
Remove Media is Write Protected message in Windows 11/10
When copying files tо a USB drive or SD cаrd, if you receive a— Media is Write Protected —message, then this post will help you resolve the problem. The same problem can occur when deleting a file or overwriting a file on the media.
What is Write-Protection?
Write Protection is a feature available in some of the USB/SD devices which makes sure the files are not accidentally deleted or modified. That way, any original file on the drive remains safe and nobody else is also able to delete the files.
Remove Media is Write Protected message in Windows 11/10
Follow these suggestions to disable USB Write-Protection:
- Turn of the hardware switch
- Use Diskpart to remove read-only state
- Turn off BitLocker
- Disable Write protection using Registry
- Disable Write Protection using Group Policy
You will need an admin user account and a clear understanding of the Disk Part and BitLocker tool which we have suggested using.
1] Turn off the hardware switch
Some media devices come with a small notch or write protection switch which when pulled up, enables the write protection. They are marked clearly but could be too small to be noticed. While they are sturdy enough to be accidentally enabled, It is possible you have flicked the switch. Turn it off, and it will be able to remove write protection on a USB or SD card. Post this, you should be able to write on the disk.
Read: How do you remove the Write Protection on a Disk.
2] Use Diskpart to remove read-only state
If it’s not a hardware lock, it is possible that the disk is in a read-only state. You can remove this by using the Diskpart tool to remove the read-only attribute. Follow the steps to remove the read-only state.
- Press Windows + R keys to open the Run prompt.
- Type cmd, and use Shift + Enter to open it with admin privileges
- Type diskpart and press Enter key
- Type list disk, and press Enter. It will reveal all disks on Windows PC.
- Select disk x and press the Enter key. The letter x is the number of your SD card
- Type attr disk clear readonly.
Try deleting a file, and you will know if the issue was resolved.
3] Turn off BitLocker
Bitlocker is a brilliant feature in Windows if you want to protect files and encrypt them. It is possible that you have enabled Bitlocker for the media or SD card, and forgotten about it.
Any drive which has Bitlocker enabled will display a lock when viewed on File Explorer. If that’s the case, right-click on it and choose to Turn off Bitlocker. Done that, you can not modify the files.
Depending on the storage size, decryption will take time. So wait it out, and then try to upset some files inside it. Remember Bitlocker is not a Write protection removal tool, it only works if the files have been encrypted earlier using Bitlocker.
Also, check out our detailed guide on how you can use Registry or Group Policy to enable disable the use of BitLocker on USB Drives.
4] Disable Write protection using Registry
Registry editing can be tricky. I strongly recommend you to take a backup or create a System Restore before using this method. If something goes wrong, you can always get back to the state where everything was working as expected. Follow these steps:
Use Win + R to open the Run prompt. Type Regedit and press Enter. If prompted by UAC, click yes. Once the Registry Editor is open, navigate to the following path.
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
Double-click on the WriteProtect DWORD and change the value from “1” to “0” to remove the read-only state.
In case, you cannot find the StorageDevicePolicies folder, you will need to create it.
- Right-click on the Control folder, select New, and then Key
- Name the folder StorageDevicePolicies
- Right-click on the StorageDevicePolicies folder, and select New > DWORD
- Name it WriteProtect and press the Enter key.
- Double click the WriteProtect DWORD, and set the value as 0
5] Disable Write Protection using Group Policy
You can use this directly on Windows 10 Pro and Enterprise, and on Windows 10 Home by enabling the Group Policy.
Use Win + R to open the Run prompt, and type gpedit.msc, and press the Enter key. This will open Group Policy Editor.
In the editor, navigate to the following path
Computer Configuration > Administrative Templates > System > Removable Storage Access
Depending on which media device i.e. USB, CD, or Tape, you can change the Write access to disabled. Close the group policy editor, and you should be able to make the modifications without a problem.
That’s about how you can remove Media is Write Protected message in Windows 11/10. This will make sure you can write and modify files within it.
Read: How to remove The Disk Is Write-Protected error for Removable Disks.