Re: A USB memory stick became Read only, can it be reversed to writable ?

From: Julian H. Stacey <jhs_at_berklix.com>
Date: Mon, 15 Dec 2025 01:08:29 UTC
Thanks Bertrand, Warner, & Tomek,

I wonder if we might append hints somewhere, maybe in man camcontrol ?, eg

  If USB memory media goes from read-only, without a physical switch, eg dmesg:
    (da0:umass-sim0:0:0:0): SCSI sense: DATA PROTECT asc:27,0 (Write protected)
  it has probably been written too often, worn out, &
  all spares exhausteare d in the Flash translation layer (FTL)
    https://en.wikipedia.org/wiki/Flash_memory_controller#Flash_translation_layer_(FTL)_and_mapping

  camcontrol defects da[0-9] -f block 
	# Old 32-bit block list is not implemented in Flash drives

Cheers,
-- 
Julian Stacey  http://berklix.org/jhs/mail/  gmail & yahoo block replies.
Arm Ukraine.  Contraception & plain text email V. global warming.