0

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.enter image description here As you see in image there is a lock icon beside derive name. I tried for formatting and even deleting. All actions get error.

K7AAY
  • 17,202
Mahdi
  • 101
  • 3
    The "lock" just means it's mounted, you can't delete partitions of a drive while it's mounted. – schrodingerscatcuriosity Oct 22 '19 at 14:44
  • 4
    The permanent read only state may well be a sign of malfunction, as detected by the controller inside the usb-device - assuming it is FLASH-memory based. – Hannu Oct 22 '19 at 15:21
  • @guillermochamorro. Deleting was one of my tries. So what do you recommend? How i can reformat it? – Mahdi Oct 22 '19 at 17:12
  • @Hannu Suddenly it changed to read only mode. – Mahdi Oct 22 '19 at 17:13
  • @K7AAY No I did not boot from the flash. – Mahdi Oct 22 '19 at 17:14
  • 1
    @Kenji Please open a terminal, run 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
  • @Kenji Do you mean, with gparted and the USB unmounted you couldn't delete the partition? Some error appeared? – schrodingerscatcuriosity Oct 22 '19 at 17:24
  • This link can help you analyze the problem, and if you are lucky, solve it. – sudodus Oct 22 '19 at 19:43
  • This has happened to me a few times, in each case the drive was dead. It is a nice feature that the drive sometimes remains readable, if not writable. First case used Persistent SD as a server, It became useless after 6 months, second time used another SD card as a server, this time booting into RAM, it became read only in 6 months but still works fine as a server. – C.S.Cameron Oct 23 '19 at 02:51

0 Answers0