I have an ASUS laptop with Realtek Card Reader RTL8411B. I must install Debian with kernel version 4.15.3 - there is no any other option.
The first problem was in standard rtsx_pci driver which seems to ignore this card reader at all. Connecting SD card to laptop didn't cause appearance of any device in /dev directory or any new records in syslog and other logs too.
After reading some forums I understood that this problem in driver and there are two possible options to solve it:
Change kernel version with all kernel modules.
Build new driver for current kernel.
So I choose the second one and build custom driver form https://github.com/M0Rf30/rts_bpp. Driver problem was solved. And now I get a new device /dev/sdb:
brw-rw---- 1 root disk 8, 16 may 13 13:47 /dev/sdb
But when the common user from disk group is trying to mount /dev/sdb to his own directory he recieves an error.
$ mount /dev/sdb /home/user/media mount: /dev/sdb: Operation not permitted
I also created udev rule to set MODE="0666" for /dev/sdb device and now I have a device with permissions:
brw-rw-rw- 1 root disk 8, 16 may 13 13:53 /dev/sdb
But mount is still finishes with error. And not only mount.
$ mount /dev/sdb /home/user/media mount: /dev/sdb: Operation not permitted $ ls -l /dev/sdb ls: can't get access to '/dev/sdb': Operation not permitted
Using this device with 'sudo' perfectly works but reading and writing data to/from SD card is available only for superuser.
So what I need to change to give access for all users to card reader device?