I have a USB-flash device (SanDisk SDCZ33 BM120423519D
) with no hardware switch, which is stuck in readonly mode:
# hdparm /dev/sdf
/dev/sdf:
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 14 00 00 00 00 20 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
multcount = 0 (off)
readonly = 1 (on)
readahead = 256 (on)
geometry = 30532/64/32, sectors = 62530624, start = 0
I've tried to clear its r/o mode with:
# hdparm -r0 /dev/sdf
Then tried to format it with gparted
, but it fails with error messages:
The files system is availabe only for read
After reinstertion the flash device is still stucked in the r/o mode.
The problem with r/o mode is risen after the one of halts of the host device (Raspberry PI
). So the question is how to REALLY clear the readonly flag?