sodcalculator

10 Tech How-To

Fix USB Shows Read Only in Windows 11

Guide 10-47740 · Updated · Step by step

If your USB drive suddenly shows as read-only in Windows 11, you can usually fix it by clearing the read-only attribute with Diskpart, checking the physical write-protect switch, or editing the registry. This article walks through the most effective fixes, from quick checks to command-line solutions, and explains why the drive became read-only in the first place.

Why Does a USB Drive Become Read-Only?

A USB drive can become read-only for several reasons, and understanding the cause helps you choose the right fix:

  • Physical write-protect switch: Many USB flash drives have a small sliding switch on the side. If it’s in the “lock” position, the drive is read-only. This is the simplest cause to check first.
  • File system corruption: If Windows detects errors on the drive, it may mount it as read-only to prevent further damage.
  • Registry settings: Windows has a registry key that can force all USB drives to be read-only, often set by group policy or a previous cleanup tool.
  • Diskpart attribute: The disk itself can have the “read-only” attribute set, which persists across reboots.
  • Drive failure or age: Some drives become read-only as a safety mechanism when they detect failing sectors or reach their write-cycle limit.

Quick Checks Before You Start

Before diving into complex fixes, try these simple steps:

  1. Unplug the USB drive and inspect it for a physical write-protect switch. If present, slide it to the unlocked position.
  2. Try a different USB port on your PC. Sometimes a faulty port can cause write issues.
  3. Reboot your computer. A temporary glitch in the USB driver could be the culprit.
  4. Test the drive on another computer. If it’s read-only everywhere, the issue is with the drive itself, not Windows.

If these don’t work, proceed to the more advanced fixes below.

Method 1: Clear the Read-Only Attribute with Diskpart

Diskpart is a built-in Windows tool that can modify disk attributes. This is the most common fix for a persistent read-only USB drive.

  1. Press Win + R, type diskpart, and press Enter. If prompted by UAC, click Yes.
  2. In the Diskpart window, type list disk and press Enter. Note the disk number of your USB drive (e.g., Disk 1). Be careful to select the correct one.
  3. Type select disk X (replace X with your disk number) and press Enter.
  4. Type attributes disk clear readonly and press Enter. You should see a message that the attributes were cleared successfully.
  5. Type exit and press Enter to close Diskpart.

Now try writing to the drive. If it still fails, the read-only attribute might be set at the volume level. In Diskpart, after selecting the disk, type list volume, find the volume letter of your USB drive, type select volume X, then attributes volume clear readonly.

Method 2: Edit the Registry to Allow Writes

Windows has a registry key that controls whether all USB storage devices are writable. If this key is set to 1, all USB drives become read-only.

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
  3. If the StorageDevicePolicies key doesn’t exist, right-click on Control, select New > Key, and name it StorageDevicePolicies.
  4. Inside that key, look for a DWORD value named WriteProtect. If it doesn’t exist, right-click in the right pane, select New > DWORD (32-bit) Value, and name it WriteProtect.
  5. Double-click WriteProtect and set its value to 0 (zero). Click OK.
  6. Close Registry Editor and restart your PC.

After restarting, plug in the USB drive and try writing to it. If the problem persists, the issue is more likely with the drive itself.

Method 3: Use Disk Management to Change Drive Letter and Format

Sometimes a drive letter conflict or a corrupted file system can cause read-only behavior. Reassigning the drive letter or reformatting can help, but note that formatting erases all data.

  1. Right-click the Start button and select Disk Management.
  2. Find your USB drive (it will be labeled as Removable). Right-click on its partition and select Change Drive Letter and Paths. Assign a new drive letter (e.g., E: instead of D:).
  3. If that doesn’t help, right-click the partition and select Format. Choose a file system like NTFS or exFAT and perform a quick format.

Formatting will remove all data, so back up anything important first. If the drive is still read-only after formatting, it may be physically failing.

Method 4: Use the chkdsk Utility to Repair File System Errors

File system corruption can cause Windows to mount the drive as read-only. Running a disk check can fix these errors.

  1. Open Command Prompt as administrator (search for “cmd”, right-click, and select “Run as administrator”).
  2. Type chkdsk E: /f (replace E: with your USB drive letter) and press Enter.
  3. If the drive is using NTFS, you can also add /r to locate bad sectors and recover readable information: chkdsk E: /r.
  4. Wait for the scan to complete. It may take several minutes for large drives.

After chkdsk finishes, eject the drive safely and reconnect it. Try writing to it again.

When Nothing Works: The Drive May Be Failing

If you’ve tried all the above and the USB drive is still read-only, it’s likely a hardware issue. Many flash drives have a controller that switches to read-only mode when it detects excessive bad blocks or wear. In this case, the drive is not safe for important data. Back up any files you can access, and replace the drive. There is no software fix for a physically failing controller.

Frequently Asked Questions

Why does my USB drive say “read-only” even after I cleared the attribute?

If Diskpart successfully cleared the attribute but the drive still appears read-only, the problem may be a physical write-protect switch (if present) or a failing controller. Check the switch again, and try the drive on another computer. If it’s still read-only, the drive is likely dead and should be replaced.

Can I recover data from a read-only USB drive?

Yes, you can usually read and copy files from a read-only drive. The read-only state only prevents writing, so you can browse the drive and copy files to your PC. Do this as soon as possible, because a failing drive can become completely unreadable at any time.

Is it safe to use Diskpart on my USB drive?

Diskpart is a powerful tool that can erase disks if used incorrectly. Always double-check that you have selected the correct disk number before running any command. Using attributes disk clear readonly only clears the read-only flag; it does not delete data. However, be careful not to run clean or format commands unless you intend to erase the drive.

Will reformatting my USB drive fix the read-only issue?

Reformatting can fix read-only issues caused by file system corruption, but it will not fix a physical write-protect switch or a failing controller. If the drive is set to read-only by a hardware switch, formatting won’t help. If the drive is failing, formatting may fail or make things worse. Try reformatting only after you’ve backed up any important data.

My USB drive is read-only on Windows 11 but works on another computer. Why?

This points to a Windows-specific setting, such as the registry WriteProtect value or a group policy. Check the registry method above. Also, ensure that your Windows user account has write permissions to the drive—sometimes antivirus or security software can block writes to USB drives.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →