If your USB drive lets you open files but will not save, delete, or rename them, it may be read-only or write-protected. The right fix depends on the cause: a lock switch, a Windows disk attribute, file permissions, an NTFS drive connected to a Mac, or failing flash memory. You usually do not need a third-party pen drive read-only removal tool, and you should not format the USB just to diagnose the problem.

Start here: Copy any files you can still read to your computer or another healthy drive. Then check whether the problem affects every file and whether the drive is read-only on another computer. If important files are missing or unreadable, avoid any repair command or format until you have considered recovery. Recoverit may help find missing files on a consistently detectable USB drive; it cannot lift write protection. If the device overheats or repeatedly disconnects, stop testing and seek a professional assessment.

In This Article
    1. Quick Diagnosis: Drive, File, or Mac File System
    2. Protect Files Before Changing Disk Settings
    1. Fix 1. Check the USB Lock Switch and Test Another Port
    2. Fix 2. Clear the Disk Read-Only Attribute With DiskPart
    3. Fix 3. Check File Permissions and Windows Write Restrictions
    4. Fix 4. Review Windows Security and Registry Policy
    1. Check Whether the USB Drive Uses NTFS
    2. Check Finder Permissions and Disk Utility
    1. Recognize a Failing or Permanently Locked USB Drive
    2. Recover Missing Files Before Any Repair or Erase
    3. Format Only After Files Are Safe

Part 1. Why Is My USB Flash Drive Read-Only?

windows disk is write protected message

Read-only means the device or its current environment refuses new writes. It does not always mean the files are corrupted. Identify the behavior before using a tool that modifies the disk.

Quick Diagnosis: Drive, File, or Mac File System

Look at what you can still do on the USB drive and whether the same problem occurs on both Windows and Mac.

What you notice Likely explanation Start with
All files open, but no files can be saved or deleted Disk write protection, device lock, or failing flash memory Check the physical switch and Windows disk attributes
Only one file or folder cannot be edited File-level read-only setting or permissions Check the file's properties; do not modify the entire USB
USB works on Windows but can only be read on Mac Often an NTFS-formatted volume Check the format in Disk Utility before making changes
USB becomes read-only on several computers after working normally Potential controller or flash-memory fault Back up readable files and stop repeated write attempts
Drive does not appear or repeatedly disconnects Detection or hardware issue, not simply a read-only flag Follow a USB detection guide; avoid formatting

Windows may display a message such as "The disk is write-protected" when you try to write to a locked drive. The message alone does not identify which layer is blocking the change.

Protect Files Before Changing Disk Settings

If the USB opens normally, select the photos, documents, or other folders you need and copy them to another device. Open a few of the copied files to check that they are usable. Do not move the originals or write a backup onto the same USB drive.

If the USB appears in the system but important files are missing, avoid formatting, disk-cleaning commands, and repair operations until you have assessed recovery options. A device that disconnects repeatedly, becomes unusually hot, or shows physical damage needs professional evaluation rather than continued DIY testing.

Part 2. Fix a Read-Only USB Drive on Windows 11/10

Use these Windows steps only after protecting accessible data. Each method addresses a different type of restriction, so a failed step is information about the likely cause, not a reason to repeat destructive commands.

Fix 1. Check the USB Lock Switch and Test Another Port

Some USB storage devices and removable-card adapters have a physical lock switch, although many ordinary USB sticks do not. Inspect the device and its adapter without forcing any mechanism.

Step 1. If there is a switch marked Lock or Unlock, set it to the unlocked position and reconnect the USB drive.

physical write protection switch on removable usb storage

Step 2. Try another USB port or a second computer. If your files have already been copied elsewhere, create a small disposable text file on the USB and delete it after checking that it opens.

Result: If the test file saves successfully on one computer but not another, investigate the failing port, adapter, or computer. If it stays read-only everywhere and the switch is already unlocked, check Windows disk attributes next. Most USB flash drives do not have a physical lock switch.

Fix 2. Clear the Disk Read-Only Attribute With DiskPart

DiskPart can clear a Windows software read-only attribute without formatting the drive. This is relevant when the USB is recognized and the files are already backed up, but Windows blocks writes. Selecting the wrong disk can change the wrong device, so verify the disk number, size, and model before continuing.

Step 1. Right-click Start, open Terminal (Admin) or Command Prompt as administrator, and enter diskpart.

Step 2. Enter list disk. Identify the external USB by its capacity, not by a number copied from a tutorial. Enter select disk N, replacing N with the verified USB disk number.

Step 3. Enter detail disk and check the identity again. Then enter attributes disk to see the reported read-only flags.

Step 4. If the selected USB shows Read-only: Yes and you have verified its identity, enter attributes disk clear readonly. Then run attributes disk again and enter exit. If Read-only already shows No, skip the clear command: it will not resolve a different write restriction. Microsoft documents this disk attribute command for Windows 10 and Windows 11 in its DiskPart reference.

Result: If Windows now reports the disk attribute cleared, safely reconnect the USB and test whether a small file can be saved. If Current Read-only State remains Yes while Read-only says No, the attribute command has not removed the effective write restriction. Do not keep repeating it: a computer policy or a device-side hardware state may still block writes.

Interpret the two DiskPart statuses before you go further: The configured Read-only attribute and Current Read-only State can differ. One changed flag does not prove the device can accept new writes.

DiskPart reports What it means for your next step
Read-only: Yes After backing up, clearing the software disk attribute may help. Verify the disk identity before running the command.
Read-only: No; Current Read-only State: Yes The configured attribute is not the effective block. Check another computer, removable-storage policy, and possible device failure; do not repeat the clear command.
Both values are No, but the file cannot be saved Check the individual file, volume permissions, free space, and the app reporting the error.

Do not use clean, delete partition, or format as part of this attribute-clearing test. Microsoft confirms that DiskPart clean removes partition or volume formatting; it is not a read-only toggle. Likewise, chkdsk /f, /r, and /x are file-system repair or dismount operations, not write-protection switches. Protect or recover important files before considering them for a separate diagnosed file-system problem.

Fix 3. Check File Permissions and Windows Write Restrictions

If you can create files in the root of the USB but cannot edit one document, check that item's settings before changing disk-wide permissions. A restriction on a single file is different from a read-only drive. For the file-level distinction, see what a read-only file means.

Step 1. Right-click the affected file in File Explorer and select Properties. On the General tab, inspect Read-only. If it is checked and you are authorized to edit the file, clear the checkbox and select Apply. Test that file again before changing anything else. A folder Read-only checkbox is not a reliable disk-wide protection indicator.

Step 2. For an NTFS volume, open Properties > Security and check your account's permissions. FAT32 and exFAT USB drives do not expose the same NTFS security permissions. Do not grant Everyone Full Control as a blanket repair.

windows drive security properties dialog for checking access permissions

Result: A file that can now be saved has a file-level permission issue. If the entire USB remains blocked, or your PC is managed by work or school, check with your administrator for removable-storage policies instead of changing security settings globally.

Fix 4. Review Windows Security and Registry Policy

If multiple USB sticks become read-only on the same Windows computer, the cause may lie in the computer's security policy rather than in each drive. A malware scan can also help rule out suspicious behavior, but it does not automatically remove hardware write protection.

Step 1. If Windows Security reports a threat associated with the USB, review it in Windows Security > Virus & threat protection. You can also right-click a visible file or folder in File Explorer and choose the available Microsoft Defender scan action. Follow the security alert rather than assuming that malware caused every read-only error.

windows security virus and threat protection scan interface

Step 2. On a personal computer, check whether security software or a removable-storage setting limits writing. If your PC is managed by work or school, ask its administrator whether a policy blocks removable devices; do not bypass that restriction.

Step 3. Advanced users may encounter the registry policy at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies with a WriteProtect value. This key may not exist on every PC, and changing it affects a computer-level setting, not just the USB you plugged in. Make a registry backup and use your administrator's approved policy before editing it. Avoid creating new keys simply because a tutorial suggests doing so.

windows registry editor showing storage device policies write protect value

Result: If several USB drives work on another PC but fail on this one, ask the computer owner or administrator to review removable-storage policy. Do not modify policy settings on managed devices. For other storage devices with a similar warning, see the disk is write-protected troubleshooting guide. If only the original USB is read-only across computers, move to the device-health check in Part 4.

Video tutorial: This Recoverit walkthrough demonstrates common USB write-protection checks, including the physical lock and Windows-oriented troubleshooting.

video

Recent Videos from Recoverit

View More >
Free Download
Free Download

Part 3. Fix a Read-Only USB Drive on Mac

On a Mac, a USB drive may be readable but not writable because of its file system. Check its format first; changing Finder permissions will not add native write support for an NTFS volume.

Check Whether the USB Drive Uses NTFS

Step 1. Open Disk Utility from Applications > Utilities. Select the USB volume in the sidebar and inspect the format shown in the information area. If necessary, choose View > Show All Devices to identify the parent device and volume separately.

disk utility view menu showing show all devices on mac

What to check: The screenshot shows the device-view menu. After enabling it, select the USB volume and read its displayed format; this does not require the Erase button.

Step 2. If the format is NTFS, macOS generally reads it without providing native write access. Copy files to another healthy disk or transfer them using a Windows computer that can write to that volume. Apple explains this limitation in its file-copy troubleshooting guidance.

Result: If NTFS is the cause, the USB is not necessarily defective. You can leave the files intact and write to the volume from a compatible Windows computer. Only after making and verifying a separate backup should you consider erasing the USB and choosing exFAT for routine Windows-and-Mac file sharing. If it is already exFAT or APFS, investigate permissions, free space, and device health instead.

Check Finder Permissions and Disk Utility

Step 1. In Finder, select the USB volume and choose File > Get Info. Review Sharing & Permissions if available. Only change permissions that you are authorized to change; permission controls do not override a hardware lock or NTFS limitations.

finder get info showing sharing and permissions for an external drive

What to check: In the permissions list, compare your account's access with the drive format. Seeing Read only does not by itself prove that changing permissions can make an NTFS volume writable.

Step 2. Try a different port and a known-good cable or adapter, then check the same USB on another computer. If files are readable, copy them first.

Step 3. If Disk Utility reports a file-system problem and you have already protected the files, you can consider First Aid. It may modify file-system structures during a repair and cannot fix a failing controller or faulty flash memory. Review the official First Aid instructions before proceeding.

Result: If another computer can write to the USB, focus on the Mac's format or account settings. If both systems report the USB as read-only, move to the hardware-failure decision rather than repeatedly running First Aid.

Part 4. When the USB Still Cannot Be Written To

A persistent read-only state is not always a setting you can turn off. Decide whether your priority is rescuing the files or reusing a disposable USB drive.

Recognize a Failing or Permanently Locked USB Drive

If the same device refuses writes on several computers, the effective read-only state persists after a successful DiskPart attribute command, or the USB drops offline during file access, stop treating it as an ordinary Windows preference. These symptoms can indicate controller or flash-memory trouble, although only device-specific diagnostics can establish the cause.

Copy readable files to a different drive and verify the copies. If the USB intermittently disconnects, overheats, has obvious physical damage, or contains irreplaceable data you cannot access, avoid further DIY testing and consider a professional recovery service. If you have a verified backup and the drive still refuses writes, replace it rather than trusting it with important files.

Recover Missing Files Before Any Repair or Erase

If photos, documents, or videos have disappeared from the USB, or the file system is logically damaged while the device remains consistently detectable, Wondershare Recoverit USB Data Recovery may be relevant. It is file recovery software, not a tool that unlocks a write-protected USB drive.

Step 1. Stop adding new data to the USB. Connect it to a computer that detects it consistently and install Recoverit on a different healthy drive.

Step 2. Under external-device or available storage locations in Recoverit, select the detected USB and start a scan. In Recoverit V15 on Windows, use the available external-device location when it is shown; interface names can differ on Mac or other builds. The official Recoverit user guide shows how to select an external device, scan, and preview results.

Step 3. Preview supported found files when available, select what you need, and save recovered files to another healthy drive. Open a sample of the saved files to confirm usability before deciding what to do with the original USB.

preview supported found files

If the scan cannot access the device: Stop when the USB repeatedly disconnects or is not detected. Software cannot guarantee a result on a failed controller, damaged flash memory, or overwritten data. For a dedicated step-by-step recovery path, see how to recover files from a USB drive.

Have missing files on a readable USB? Recoverit can scan and preview supported files before you decide whether to recover them. Recovery availability and licensing depend on the current product terms, and scan results are not a guarantee. Save recoverable items somewhere else before attempting repairs.

Free Download
Free Download

Format Only After Files Are Safe

Formatting is a last resort for a drive you intend to reuse, not a file-recovery method or a reliable way to disable hardware write protection. It erases the selected volume and may fail when the controller enforces read-only mode. Proceed only after all wanted files have been backed up or recovered to another drive and opened successfully.

Windows: If you have verified the backup and truly need to reuse the USB, open File Explorer, right-click the correct USB volume, choose Format, and choose a compatible file system. Confirm its drive letter and capacity before approving the erase. If the device remains write-protected, stop instead of retrying erase commands. Do not run diskpart clean as a shortcut: it removes partition or volume formatting, as described in Microsoft DiskPart documentation.

Mac: Open Disk Utility, choose View > Show All Devices, select the correct external device, and choose Erase. Consider exFAT for general file sharing between Windows and Mac, after confirming compatibility with your target devices. Apple's erase and reformat guidance explicitly states that erasing deletes the device's contents.

Result: Test a small disposable file, eject the USB safely, reconnect, and test again. If it becomes read-only immediately or formatting cannot complete, replace the device rather than relying on it for important files.

Part 5. Verify the Fix and Avoid a Repeat

After a successful change and only after protecting important data, create a small disposable file, close it, eject the USB safely, reconnect it, and verify that the file opens and can be deleted. This tests actual write access rather than relying on a DiskPart message alone. If the USB becomes read-only again, stop storing important files on it.

  • Use safely: Eject the drive before unplugging it, especially after copying large files.
  • Keep backups: Maintain another copy of important files rather than relying on one USB stick.
  • Choose the right format: Use a file system supported for writing by all devices that need the drive.
  • Retire unreliable storage: Do not keep using a drive that repeatedly turns read-only or disconnects.

Conclusion

A read-only USB flash drive does not necessarily need replacing or formatting. Check the lock switch and file system, then use Windows disk attributes or file permissions only when the symptoms point to those settings. If it stays read-only on multiple computers, protect your files and consider device failure. If files are missing, check recovery options while the drive is still readable, before any format or file-system repair. A USB that keeps switching to read-only or disconnecting should be retired rather than trusted with another backup.

FAQ

  • Can I remove read-only mode from a USB without formatting?
    Often, yes. Try a physical unlock switch, check the Windows read-only disk attribute, and verify file-level permissions. If the USB is hardware-locked or failing, these settings may not help.
  • What is the best pen drive read-only removal tool?
    For a Windows software disk attribute, the built-in DiskPart command can clear the read-only flag after the correct disk is selected. There is no universal software tool that safely unlocks every hardware-protected or failing USB drive.
  • Why is my USB writable in Windows but read-only on Mac?
    The USB may use NTFS, which macOS can generally read but does not natively write to. Copy important files first, then consider a cross-platform format such as exFAT if both devices support it.
  • Will Recoverit remove write protection from my flash drive?
    No. Recoverit can scan for missing files on a consistently detectable USB drive; it cannot unlock hardware write protection or fix a failing controller. Save recovered files to a different healthy storage device.
  • Why does DiskPart say the read-only attribute was cleared, but the USB is still read-only?
    Clearing the configured disk attribute does not override every device or Windows policy restriction. If Read-only is No but Current Read-only State remains Yes, compare the USB on another computer and investigate a policy or device-level block. Protect the files and avoid repeated erase attempts.
  • Can CHKDSK fix a write-protected USB drive?
    CHKDSK checks file-system issues; it is not a general-purpose write-protection remover. Repair switches such as /f, /r, and /x can modify or dismount a volume. Copy or recover important files first and use repair only for an actual file-system problem.
  • What if a USB shows No Media or 0 bytes instead of read-only?
    That is a detection or device problem rather than an ordinary read-only setting. Do not initialize, format, or run DiskPart clean to force it online. Try a known-good port once; if the storage still cannot be accessed and the data matters, ask a professional recovery service.
Share article:
Get Recoverit Get Recoverit