SSD Locked to Read-Only? Here's How to Fix It
In this article
An SSD that suddenly refuses to accept writes and reports itself as read-only is usually not dead. In most cases the drive has entered a protective state: the firmware detected a problem (often an unclean shutdown, a failing connection, or a worn-out flash cell) and locked itself to prevent data loss. The fix is to identify why the lock engaged and then clear it — either by resetting the controller, repairing the file system, or, if the drive is genuinely failing, backing up immediately and replacing it. Before you start, back up any data you can still read from the drive. Read-only mode still lets you copy files off, and that is the most important thing to do first.
What You'll Need
- The affected SSD, either installed internally or in a USB-to-SATA/NVMe enclosure
- A working Windows PC (steps below are for Windows; macOS and Linux notes are included where they differ)
- Administrator access on that PC
- A spare drive with enough free space for a full backup
- Optional: the SSD manufacturer's own diagnostic tool (Samsung Magician, Crucial Storage Executive, WD Dashboard, Kingston SSD Manager) if one exists for your model
Step-by-Step
- Back up everything you can still read. Copy important files to another drive or cloud storage before doing anything else. If the drive is failing, every write attempt or diagnostic scan adds wear.
- Check the physical connection. Power off, reseat the SATA data and power cables (or reseat the M.2 card in its slot), and try a different SATA port or cable. A loose or failing cable can make a healthy SSD appear read-only. For USB enclosures, try a different port and cable, and avoid unpowered hubs.
- Restart the PC and check Disk Management. Open Disk Management (right-click Start > Disk Management). If the drive shows as Read-only in the volume list, continue. If it shows RAW or Unallocated, the file system is damaged rather than the drive being locked — skip to step 6.
- Clear the read-only attribute with DiskPart. Open Command Prompt as administrator and type
diskpart, thenlist disk. Identify the correct disk number by its size — getting this wrong can wipe the wrong drive. Typeselect disk N(replace N), thenattributes disk clear readonly. Typeexitto leave DiskPart. If the command reports success, restart and test whether you can write to the drive. - Check the volume with CHKDSK. In an administrator Command Prompt, run
chkdsk X: /f(replace X with the drive letter). This repairs file-system errors that can make Windows mount the volume read-only. If CHKDSK cannot run because the volume is locked, schedule it for the next restart and reboot. - Run the manufacturer's diagnostic tool. Install the official tool for your SSD brand from the manufacturer's website and run a health scan. It will report wear level, bad sectors, and whether the firmware has flagged the drive. If the tool reports the drive as failing or end-of-life, stop here — the read-only lock is a hardware safety measure and cannot be safely reversed.
- Update the SSD firmware. The same manufacturer tool usually offers a firmware update. A firmware bug can leave a drive stuck in read-only mode; updating and power-cycling can clear it. Do not power off during the update.
- Try a secure erase or sanitize. If the drive is healthy but still locked, the manufacturer tool's Secure Erase or Sanitize function resets the controller and clears the lock. This erases all data on the drive — only do it after your backup is complete and verified.
- Test in another system. If none of the above works, connect the SSD to a different PC. If it is writable there, the problem is your original system's storage driver or motherboard port, not the drive. If it is still read-only, the drive's controller has likely entered a permanent failure state.
Common Mistakes
- Running DiskPart on the wrong disk. Always confirm the disk number by size and model before selecting it. Selecting the boot disk and clearing attributes can make Windows unbootable.
- Skipping the backup. A read-only SSD is often a dying SSD. Copy your data first; diagnostics and repairs come second.
- Assuming the drive is dead too early. Cable faults, file-system corruption, and firmware bugs all mimic a hardware lock and are fixable.
- Using third-party "SSD repair" utilities from unknown sources. Stick to the manufacturer's official tool and built-in Windows commands.
- Ignoring SMART warnings. If the health tool shows reallocated sectors or a low wear level, replacing the drive is the correct fix, not unlocking it.
Tips
- Keep the SSD firmware current — most brands release updates through their own dashboard app.
- Use a UPS or at least shut down cleanly; sudden power loss is a common trigger for the read-only protective state.
- Leave 10–15% of the SSD's capacity free so the controller has room for wear levelling.
- On macOS, Disk Utility's First Aid can repair some volume errors, but a firmware-level lock usually requires the manufacturer's tool or a Windows PC.
- On Linux, check
dmesgfor I/O errors and tryhdparm -r0 /dev/sdXto clear a software read-only flag — but only if you are comfortable with device names.
Troubleshooting
If DiskPart says the attribute was cleared but the drive is still read-only after a restart, the lock is coming from the drive's firmware, not Windows. Run the manufacturer's health tool: if it reports the drive as failed or end-of-life, no software fix will restore writes, and you should replace it. If CHKDSK reports "cannot lock drive," close any program using the drive, or schedule the check at boot. If the drive disappears entirely after a failed firmware update, try the manufacturer's recovery instructions (usually a bootable USB tool) before assuming it is dead. If the drive works in another PC but not yours, update your motherboard's storage drivers and check the SATA mode in BIOS (AHCI vs RAID) — a mismatch can cause read-only behaviour. Finally, if the SSD is under warranty, contact the manufacturer before attempting a secure erase; some warranties are voided by it.
Frequently Asked Questions
Can a read-only SSD be fixed permanently?
If the cause is a cable, file-system error, or firmware bug, yes — the fix is permanent. If the controller has locked the drive because of worn flash, no; the drive is at end of life and should be replaced.
Will clearing the read-only attribute delete my data?
No. The DiskPart attributes disk clear readonly command only changes the flag. However, a secure erase or sanitize will wipe the drive, so back up first.
Why does my SSD become read-only after a power cut?
Many controllers enter a protective read-only state after an unclean shutdown to prevent further corruption. A restart, CHKDSK, and a firmware check usually clear it.
Does a read-only SSD mean it is dying?
Not always. It is a warning sign. Check the manufacturer's health tool for wear level and bad sectors before deciding to replace it.
Can I fix a read-only SSD on a Mac?
Partially. Disk Utility's First Aid can repair volume errors. For firmware-level locks, you generally need a Windows PC or the manufacturer's own tool.
Is it safe to keep using a read-only SSD?
Only as a temporary backup source. Once you have copied your data off, replace it — a drive stuck in read-only mode can fail completely without further warning.