Last Updated May 15, 2023
If a drive enters a read-only mode, first check it's SMART attributes for any pre-fail conditions. The drive could be in read-only mode to protect your data, this is expected when an SSD has reached the end of life.
Otherwise, it may be possible to remove the write protection from the SSD using Diskpart. Follow these steps:
1.Open Command Prompt as Administrator.
2.Run the command "diskpart"
3.Run the command "list disk"
4.Run the command "select disk <index_number>"
5.Run the command "attributes disk clear read only" to clear the read-only status.