As shown here, make sure the disk is offline AND NOT MARKED AS READ-ONLY:
--> clearing read-only attribute with diskpart ```
select disk 0 //or the one needed
attributes disk clear readonly