This forum has been archived. All content is frozen. Please use KDE Discuss instead.

SD Card Becomes Read-Only

Tags: None
(comma "," separated)
User avatar
mercurial
Registered Member
Posts
91
Karma
0
OS

SD Card Becomes Read-Only

Sun May 30, 2021 12:43 am
Every now and then one of my SD cards loses write functionality and becomes read-only. I have no idea what prompts this and the only way to get write functionality back is to format the disk.

I have tried

- rebooting

- fiddling with the lock/ unlock tab on the SD card.
https://h30434.www3.hp.com/t5/Desktops- ... d-p/200852.

- various remount commands via Terminal
https://askubuntu.com/questions/698169/ ... -read-only

Surely there's a quicker way to fix this? I feel that the system falsely flags the card as read-only and if I could change that flag then all would be good.

Thanks.

Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-73-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520


KDE neon 5.24
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-39-generic (64-bit)
X11
4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
7.7 GiB of RAM
Graphics: Mesa Intel® HD Graphics 520
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: SD Card Becomes Read-Only

Mon May 31, 2021 12:44 am
Did you test the integrity of the disk?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
pvzh
Registered Member
Posts
24
Karma
1
OS

Re: SD Card Becomes Read-Only

Tue Jun 01, 2021 12:31 pm
It is useful to look at the dmesg output immediately after connecting the SD card and after trying to read or write. There may be lines like this:
Code: Select all
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 6:0:0:0: [sdb] tag#0 Sense Key : Aborted Command [current]
sd 6:0:0:0: [sdb] tag#0 Add. Sense: Incompatible medium installed
blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev sdb, logical block 0, async page read
ldm_validate_partition_table(): Disk read failed.
User avatar
mercurial
Registered Member
Posts
91
Karma
0
OS

Re: SD Card Becomes Read-Only

Mon Jun 21, 2021 10:07 pm
Mamarok wrote:Did you test the integrity of the disk?


How do I do that?

If I can format the card, then wouldn't that mean there are no integrity issues? It's not just one card that gets affected.

Thanks.


KDE neon 5.24
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-39-generic (64-bit)
X11
4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
7.7 GiB of RAM
Graphics: Mesa Intel® HD Graphics 520
User avatar
mercurial
Registered Member
Posts
91
Karma
0
OS

Re: SD Card Becomes Read-Only

Mon Jun 21, 2021 10:09 pm
pvzh wrote:It is useful to look at the dmesg output immediately after connecting the SD card and after trying to read or write. There may be lines like this:
Code: Select all
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 6:0:0:0: [sdb] tag#0 Sense Key : Aborted Command [current]
sd 6:0:0:0: [sdb] tag#0 Add. Sense: Incompatible medium installed
blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev sdb, logical block 0, async page read
ldm_validate_partition_table(): Disk read failed.


I'll try that next time. What would be the solution here? To format? And why is it happening in the first place...?

Thanks.


KDE neon 5.24
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-39-generic (64-bit)
X11
4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
7.7 GiB of RAM
Graphics: Mesa Intel® HD Graphics 520
User avatar
mercurial
Registered Member
Posts
91
Karma
0
OS

Re: SD Card Becomes Read-Only

Sat Jul 17, 2021 12:49 am
Yet to 100% confirm, but I think it has something to do with deleting files from the SD card, whether that's a permanent delete or to .Trash-1000. If I cut and paste the files from the SD card to Desktop (for example), then delete from my hard drive it seems to be OK. It's a finnicky workaround, however. I'm always hesitant to delete from external media now...


KDE neon 5.24
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-39-generic (64-bit)
X11
4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
7.7 GiB of RAM
Graphics: Mesa Intel® HD Graphics 520
User avatar
mercurial
Registered Member
Posts
91
Karma
0
OS

Re: SD Card Becomes Read-Only

Thu Jul 22, 2021 9:08 am
Still happening, even with above attempted workaround. I'm always having to format external media...


KDE neon 5.24
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-39-generic (64-bit)
X11
4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
7.7 GiB of RAM
Graphics: Mesa Intel® HD Graphics 520
User avatar
mercurial
Registered Member
Posts
91
Karma
0
OS

Re: SD Card Becomes Read-Only  Topic is solved

Sat Jan 14, 2023 9:03 am
mercurial wrote:Still happening, even with above attempted workaround. I'm always having to format external media...


I installed a fresh version of KDE on a fresh SSD and the system is nice and fresh! ;D I haven't had the same SD card problems since.


KDE neon 5.24
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-39-generic (64-bit)
X11
4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
7.7 GiB of RAM
Graphics: Mesa Intel® HD Graphics 520


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]