sodcalculator

10 Tech How-To

Fix USB Flash Drive Access Denied

Guide 10-29085 · Updated · Step by step

If you plug in a USB flash drive and Windows tells you “Access is denied” or “You need permission to perform this action,” the drive’s permissions or file system are usually the culprit. This guide walks you through safe, effective fixes—from simple permission changes to disk cleanup—so you can get back to your files.

What You’ll Need

  • A Windows PC (the steps work for Windows 10 and 11)
  • The USB flash drive that’s giving you trouble
  • Administrator account access (you’ll need it for most fixes)
  • Optional: another computer to test the drive

Step-by-Step

  1. Try a different USB port and computer. Sometimes the issue is the port or the computer’s USB controller. Plug the drive into another port, and if possible, try it on a different PC. If it works elsewhere, the problem is with your system, not the drive.
  2. Check if the drive is write-protected. Many USB drives have a physical lock switch on the side. If it’s in the locked position, you’ll get access denied when trying to write. Slide it to the unlocked position and try again.
  3. Run a quick check for errors. Open File Explorer, right-click the drive, select Properties, go to the Tools tab, and click Check under Error checking. If prompted, choose “Scan and repair drive.” This fixes file system errors that can cause access issues.
  4. Take ownership of the drive. Right-click the drive in File Explorer, select Properties, go to the Security tab, and click Advanced. Next to “Owner,” click Change. Type your Windows username, click Check Names, then OK. Check “Replace owner on subcontainers and objects” and click OK.
  5. Grant full control to your user account. Still in the Security tab, click Edit. Select your username, check “Full control” under Allow, click Apply, then OK. If your username isn’t listed, click Add, type it, and follow the same steps.
  6. Use Disk Management to check the drive’s status. Right-click the Start button and select Disk Management. Find your USB drive (it will be labeled Removable). If it shows as RAW or unallocated, you may need to format it (see step 8). If it’s healthy, right-click the partition and select Change Drive Letter and Paths to assign a new letter—this can sometimes resolve permission glitches.
  7. Run a command to reset permissions. Open Command Prompt as administrator (search “cmd,” right-click, “Run as administrator”). Type diskpart, then list volume. Note the volume number for your USB drive. Then type select volume X (replace X with the number), and finally attributes volume clear readonly. This removes the read-only attribute, which often causes access denied.
  8. Format the drive (last resort). If nothing else works and you don’t need the data, format the drive. In File Explorer, right-click the drive, select Format, choose a file system (FAT32 for compatibility, NTFS for large files), and click Start. This will erase all data, so back up anything you can first.

Common Mistakes

  • Skipping the physical lock check. That tiny switch is easy to miss, but it’s the simplest cause of access denied.
  • Not running as administrator. Permission changes and diskpart require admin rights. If you’re not an admin, you’ll just get the same error.
  • Formatting too quickly. Formatting wipes everything. Always try the other steps first, and back up what you can.
  • Using the wrong file system. If you format to NTFS and later use the drive with a Mac or older TV, it may not work. Choose FAT32 or exFAT for cross-device use.

Tips

  • Always eject the USB drive safely before unplugging it. This prevents file system corruption that can lead to access issues.
  • Keep your USB drive free of malware—scan it with Windows Defender if you suspect it’s infected.
  • If you’re on a shared computer, make sure the drive isn’t encrypted with BitLocker or similar. You’ll need the password to access it.
  • Consider using a USB drive with a physical write-protect switch if you often carry sensitive data.

Troubleshooting

If the steps above don’t resolve the issue, try these additional checks:

  • Check Device Manager. Right-click the Start button, select Device Manager, expand “Disk drives,” right-click your USB drive, and select Uninstall device. Then unplug and replug the drive—Windows will reinstall the driver.
  • Try a different USB cable or adapter. If you’re using a USB hub or extension cable, it might not provide enough power. Connect directly to the PC.
  • Use a live Linux USB. Boot from a Linux live USB (like Ubuntu) and see if you can access the drive there. If you can, the problem is Windows-specific, and you might need to reinstall the USB controller drivers.
  • Check for malware. Some malware sets file permissions to deny access. Run a full Windows Defender scan.
  • If the drive still fails, it may be physically damaged. If you hear clicking sounds or the drive isn’t recognized at all, professional data recovery may be the only option—but that’s expensive and not guaranteed.

Frequently Asked Questions

Why do I get “Access is denied” when trying to open my USB drive?

This usually means your user account doesn’t have the necessary permissions, or the drive has a read-only attribute set. The steps above (taking ownership and clearing the read-only attribute) fix most cases.

Can I fix this without formatting?

Yes, in most cases. Try the permission changes and the diskpart command first. Formatting is only a last resort if the file system is corrupted beyond repair.

What does “You need to format the disk before you can use it” mean?

This error appears when the file system is corrupted or the drive is RAW. It means Windows can’t read the drive’s structure. If you have important data, stop using the drive immediately and try recovery tools.

Will taking ownership of the USB drive erase my files?

No, taking ownership only changes the permissions metadata. Your files remain intact. It’s a safe operation.

How do I remove the write protection from my USB drive?

First check for a physical switch. If there isn’t one, use the diskpart command attributes volume clear readonly as described in step 7. This removes the software-based read-only flag.

What file system should I use for a USB drive?

FAT32 is most compatible but limits file size to 4GB. exFAT is better for large files and works with modern devices. NTFS is Windows-only but supports large files and permissions. Choose based on where you’ll use the drive.

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 →