If CHKDSK cannot fix the drive, or reports it is in RAW format, you may need to use advanced disk management tools.
"The drive is write-protected"Ensure the drive doesn't have a physical write-protect switch. If it doesn't, the drive may have entered "Read Only" mode because it is failing physically. chkdsk on external drive fix
chkdsk X: /r