Have you ever tried to copy, delete, or move a file from your hard drive or SSD only to see an error saying the drive is read-only? Don’t worry — this is a common issue and it’s usually easy to fix using built-in Windows tools. Whether you’re dealing with an internal hard drive, external SSD, or a USB storage device, this step-by-step blog post will help you remove the read-only attribute and regain full access.

So, grab a coffee and let’s walk through the solution together!
🧐 What Does “Read-Only” Mean for a Drive?
A read-only drive means you can view and copy files from it, but you can’t write, delete, or modify anything on it. This can happen due to:
- Improper shutdowns or disconnections
- File system corruption
- Group policies or permissions
- Disk attribute settings in Windows
In most cases, the issue is due to a simple disk attribute that can be removed using the Command Prompt. But sometimes, the issue goes deeper — permissions or corrupted attributes may also be to blame. Don’t worry, we’ll cover both solutions in this guide.
🔧 Solution 1: Remove Read-Only Using DiskPart
We’ll be using the DiskPart tool — a powerful command-line utility built into Windows that lets you manage storage devices.
Let’s begin!
✅ Step 1: Open Command Prompt as Administrator
First, we need administrative access to change disk attributes.
- Press Windows + S
- Type cmd
- Right-click on Command Prompt and choose Run as Administrator
This will launch a black command window with elevated privileges.
✅ Step 2: Launch Disk Management (Optional Visual Check)
Before changing anything, it’s helpful to see the visual layout of your disks.
- Press Windows + R
- Type:
diskmgmt.msc - Press Enter
Here, you’ll be able to identify which disk is affected by the read-only issue (e.g., Disk 0, Disk 1, Disk 2). Look for the drive letter or capacity that matches your problem device.
Once you identify the right disk, let’s move to the command part.
✅ Step 3: Open DiskPart and List All Disks
Now back to the command window. Type:
diskpart
This will enter the DiskPart mode, and your command prompt will change accordingly.
Next, type:
list disk
You’ll now see a list of all disks connected to your system, like:
Disk 0 Online 500 GB
Disk 1 Online 1 TB
Now you need to select the disk that has the read-only issue.
✅ Step 4: Select the Target Disk
For example, if you identified Disk 0 as the problematic one, type:
select disk 0
Replace 0 with the correct disk number for your case.
Once selected, you’ll see a message like:
Disk 0 is now the selected disk.
✅ Step 5: Remove the Read-Only Attribute
Now it’s time to clear the read-only flag.
Type the following command:
attributes disk clear readonly
Then press Enter.
✅ If everything went well, you should see:
Disk attributes cleared successfully.
This means the disk is no longer read-only!
🔄 Step 6: Check If the Issue Is Resolved
Let’s verify it now:
- Open File Explorer
- Navigate to the drive
- Try to create a folder, delete a file, or paste something
If you’re now able to do these actions — congratulations! Your drive is back to normal.
🛠 Solution 2: Fix Folder Permissions and Stubborn Read-Only Attributes
Sometimes, even after using DiskPart, you’ll notice that all folders show a black box in the “Read-only” property, and some files (like videos) refuse to open. This is because the problem isn’t always the drive attribute — it could be file/folder permissions or corrupted attributes.
Here’s how to tackle this:
✅ Step 1: Check and Fix NTFS Permissions
- Right-click on the drive → Properties → Security tab.
- Click Advanced.
- Make sure your current user (and SYSTEM) has Full Control.
- If not:
- Click Change Owner → enter your username → check Replace owner on subcontainers and objects.
- Apply changes and give yourself Full Control.
This ensures you have full access to files and folders.
✅ Step 2: Reset Attributes via Command Prompt
If permissions look fine but folders still appear stuck, try resetting attributes in bulk.
Open Command Prompt as Administrator and run:
attrib -r -s D:\*.* /s /d
-rremoves Read-only.-sremoves System attribute./s /dapplies to all files and subfolders.
(ReplaceD:with your drive letter.)
This clears unwanted flags across the entire drive.
✅ Step 3: Check File System Integrity
Corrupted sectors or metadata may also cause this. Run:
chkdsk D: /f /r
/ffixes file system errors./rscans and repairs bad sectors.
⚠️ On large drives (like 8TB), this may take hours, but it’s worth doing once.
✅ Step 4: If Nothing Works — Backup and Reformat
If after all this, folders remain unchangeable, the NTFS permission table may be corrupted. The cleanest solution is:
- Backup important files (copy works fine).
- Reformat the drive to NTFS (or exFAT if you need Mac compatibility).
- Copy the files back.
This resets everything and guarantees a fresh start.
❓ Frequently Asked Questions (FAQs)
Q1: What if the command doesn’t work?
- Make sure you’re running Command Prompt as Administrator.
- Check if your device has a physical write-protection switch (common in SD cards/USBs).
- Ensure the drive isn’t encrypted with BitLocker or third-party tools.
Q2: Can I apply this to USB flash drives?
Yes! Both solutions (DiskPart + Permissions reset) work for USBs, SD cards, and external SSDs.
Q3: Does this delete my data?
- No, clearing attributes or fixing permissions won’t delete files.
- But running
chkdsk /ror reformatting will take time and may reorganize sectors, so always keep backups.
Q4: Why do folders still show a black Read-only box?
That’s normal in Windows. A black box means “indeterminate,” not that the folder is actually locked. The real problem is usually permissions, not that box.
Q5: My files play after copying to internal drive but not on external. Why?
That’s because copying rewrites file metadata and permissions. The external drive likely has corrupted attributes or permissions, which Solution 2 fixes.
🎯 Final Thoughts
You did it! If you followed both solutions, you’ve covered all common causes of the “read-only” issue.
- Solution 1 (DiskPart) works when the drive attribute itself is locked.
- Solution 2 (Permissions + attrib reset + chkdsk) handles the cases where files and folders remain stubborn even after DiskPart.
So far, we’ve done a good job identifying the problem, removing restrictions, and ensuring data integrity. If your drive still misbehaves, a clean reformat is the ultimate reset.
Keep this guide bookmarked — next time Windows throws a “read-only” tantrum, you’ll know exactly what to do.
🧷 Tags:
read-only fix, diskpart windows, external hard drive access, SSD not writable, fix USB read-only, windows disk error, cmd disk command, remove write protection, file access error, NTFS permissions, attrib command, chkdsk repair
🔖 Hashtags:
#DiskPart #ReadOnlyFix #Windows11 #HardDriveIssue #SSDProblem #CommandPrompt #TechTips #WindowsTroubleshooting #ExternalStorage #DataAccess #NTFS
Disclaimer:
This article provides safe methods to remove read-only restrictions using Windows’ built-in tools. However, if your drive is hardware write-protected or encrypted, these methods may not work. Always back up important data before running disk-level commands like diskpart, attrib, or chkdsk.
I did list disk, select disk, list volume, select volume, detail disk. On both my external drives the read only attribute is ‘NO’. Yet all my folders on the drive the read only box in properties is blacked out (not a check mark). I clear the box, apply to save the new setting and exit. yet when I come right back and look at the folder properties nothing has changed. The read only box is still black. Any files when this problem first appeared are affected and cannot be changed. Movie files affected will not play in VLC — “Your input can’t be opened:
VLC is unable to open the MRL ‘file://?/D%3A/Movies/……..__…..mp4’. Check the log for details.”. Yet I have copied a file to my internal drive and been able to change the name and save it back and it works fine (including movie files). I have an 8tb drive so not practical to change each file individually). I am still googling my specific problem. It seems the read-only attribute on the drive is similar but not the problem for me. I am still looking for a solution to all folders on an external drive being read only with a black box and not a check mark. I will keep looking. If you have a link that is more specific to my problem please, please send it to me. I will be most grateful. thanks!
Hi Perry, sometimes dispart alone does not work the way we want as in your case A black (filled) box means “indeterminate”—it’s not truly read-only, it’s just marking that some sub-files or special folder attributes exist. So i have added the next solution I hope should work for you:
🛠 Solution 2: Fix Folder Permissions and Stubborn Read-Only Attributes , i have added this section try this and let me know.
Thanka
Ahoyz Perry, what you typed down “read” like you were writing a witness statement about my external drive. When you stated that the files and folders are there on the drive but no matter what file type they were before as some you cant access or they just dont play on any windows apps or anything actually – i even tried to convert the strange file type back/revert them to previous version was my shot in the dark but my legal converter of everything just said this is not the file, the OG. The other guy who replied to this was on the money as I tried everything to get all my music files which i use for work + its a hassle. I own this laptop, I am the only one who has a profile on it under the title of admin (this is the devious part from windows 10) as no message popped up saying I need admin rights to complet or open what I was doing. So through a bit of trial and tribulation when I clicked run as Administrator when I right clicked on the file it would go further down the process that it did before, i was not going to do that for every file and folder. You have to go to your Privacy settings + change on the file by adding your name and what your title is and that sorted out my issue. Blessed Be. 🙂