I'm trying to get my internal SD card reader to work on a Lenovo Thinkpad T15p. It's this model, therefor uses the Realtek RTS525A PCI Express Card Reader. It seems like this particular card reader has been giving the community headaches ever since.
I have confirmed this chipset via lspci, the correct kernel modules are loaded and SD cards are correctly identified and mounted. So far so good.
The issue is that ALL SD cards are mounted readonly (ro), regardless of what I try. What I have tried so far:
- Letting the OS do it's thing and automount the SD card. Can read but not write (nautilus).
- As root manually mount it with RW access:
Get's answered by a friendly but firm (translated from German, could be slightly different in English):mount -o rw /dev/mmcblk0 /tmp/sd
mount: /tmp/sd: WARNING: the device is write-protected, mounted read-only.
- As root overwrite the readonly-bit:
Simply doesn't seem to do anything:hdparm -r0 /dev/mmcblk0p1
/dev/mmcblk0p1: setting readonly to 0 (off) readonly = 1 (on)
- chmod'ing the whole directory where the SD card is mounted to
Works neither as/for root nor as/for user. Simply get's answered by a (freely translated):chmod a+rw sd
chmod: When setting permissions for 'sd': The file system is read-only.
- Just for completeness: The physical write-protection is of course not set.
What is going on here? This happens with all SD cards I can test with. Even a brand new one. I can also confirm that those same SD cards are absolutely writeable in my cheapo ISY USB multi card reader, so it's not an issue of the cards itself.
My whole first G**gle page is already full with purple links, I'm running out of ideas. I'm running Ubuntu 20.04 with 5.15 kernel and have tested on SD cards with Ext4 and FAT32 file systems.
sudo mount /dev/sdx /mnt
. – sudodus Oct 02 '23 at 20:21-o gid=myuser,pid=myuser
. It simply yields the same results as described in my original question. – password is password Oct 02 '23 at 21:03