LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old Today, 02:46 PM   #1
exerceo
Member
 
Registered: Oct 2022
Posts: 155

Rep: Reputation: 31
Question USB stick refuses to leave read-only mode. How to make it writable again?


[Log in to get rid of this advertisement]
dmesg:
Code:
[2304237.356095] scsi 5:0:0:0: Direct-Access      USB      SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
[2304237.356396] sd 5:0:0:0: Attached scsi generic sg4 type 0
[2304237.356778] sd 5:0:0:0: [sdd] 60063744 512-byte logical blocks: (30.8 GB/28.6 GiB)
[2304237.359283] sd 5:0:0:0: [sdd] Write Protect is on
[2304237.359287] sd 5:0:0:0: [sdd] Mode Sense: 43 00 80 00
[2304237.359617] sd 5:0:0:0: [sdd] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
hdparm:
Code:
# hdparm -r0 /dev/sdd

/dev/sdd:
 setting readonly to 0 (off)
 readonly      =  1 (on)
It's a SanDisk Ultra USB stick. It's fully readable and no data is corrupted.

It is also write-protected on a different computer, so the issue is with the USB stick.

If there is no way to get it writing again, it's not that big of a loss, but it would be nice to have it working again.
 
  


Reply

Tags
usb stick



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Multiple config file not writable: Configuration file "home/$USER/.config/consolerc" not writable. Please contact your system administrator. andrewysk Linux - Newbie 8 05-16-2021 02:01 PM
How do I make read-only file system writable? Glenn D. Linux - Newbie 14 02-27-2017 09:41 AM
How to make read-only root partition writable again? aranea.network Linux - Desktop 2 09-13-2016 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration