| Previous | Next |
| ERROR_NO_MORE_FILES | ERROR_BAD_UNIT |
ERROR_WRITE_PROTECT
The target accepts reads but rejects writes
ERROR_WRITE_PROTECT means the requested write reached a volume, medium, or device that currently prohibits modification. The restriction may come from a physical switch, read-only media, disk attributes, storage policy, snapshot state, or a device firmware condition.
Checks to perform
- Inspect the medium and enclosure for a hardware write-protect control.
- Check volume and disk read-only attributes with storage-management tools.
- Confirm the application is writing to the intended device, partition, or mounted image.
- Review filter drivers, endpoint security, and removable-storage policies that can deny writes.
Recovery
Remove the protection only when modification is expected and authorized. For immutable media or snapshots, select a writable destination instead. Retrying without changing the protection state will normally return the same error. Preserve the original failure when reporting it; converting it to a generic access-denied message hides the important distinction between permissions and media state.
References
Looking for a different code? Search another status or error code.