My USB drive spontaneously changed to read only mode. I can't do any thing with it, even though I did not boot from it. I tried to change from read only mode by this command:
sudo hdparm -r0 /media/mahdi/1C4F-0BFD
And I get this error:
setting readonly to 0 (off)
BLKROSET failed: Inappropriate ioctl for device
BLKROGET failed: Inappropriate ioctl for device
I also tried with change sudo chmod 777 /dev/sdc1
It seems successfully done without any error but result is nothing. My disk is still read-only.
I googled and fin Gparted. Any change format or delete partition gets error.
As you see in image there is a lock icon beside derive name.
I tried for formatting and even deleting. All actions get error.
sudo umount /dev/sdc
because, as you can see in the Mount Point column of gparted, the drive is mounted. You have to unmount it to change it. If you are not able to change it after unmounting it, please click [edit] and let us know. Please Do Not use Add Comment; instead, please use -----> [edit] <------- – K7AAY Oct 22 '19 at 17:23