SD-Cardreader does not get automounted
Some people have SD-Cardreaders in their Notebooks which are PCI-Devices internally.
An example is mine here, lspci says:
15:00.2 Generic system peripheral : Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 18)
Well, when i put in an SD-Card, just nothing happens. Normally it should work just like it does with USB-Sticks or even USB-Cardreaders.
I know my System sees the cardreader because lsmod lists the modules "mmc_core" and "sdhci".
Well, as describes above, it does not automount how it should, this is due to a BUG.
The workaround is simple, put the card in, unload the modules, and load them again while the card is inserted.
This can easily be scripted like this:
modprobe -r sdhci mmc_block mmc_core
put this in a file, for example "sdscript" and make it executeable.
To be able to use this as mormal user you can either use "sudo" or make it "setuid" and simply make a shortcut on your desktop.
ok, its not that convenient like an usb-stick, you still have to cklick on the desktop-icon after inserting the card, but it is a quite simple workaround until the bug is fixed!
Laptop Cardreader automount
lspci | grep MMC
00:0a.2 Generic system peripheral : Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
An example !, here is the Controller Adess "00:0a.2"
OK KANOTIX has found the Controller, test it for Hotplug:
setpci -s 00:0a.2 4c=0x22
plugin your SD/MMC card
your desk looks on, Hotplug is working? Yes?
Test this output:
dmesg | grep mmc
mmc0?: SDHCI at 0xfebfa400? irq 201 DMA mmcblk0?: mmc0?:0001 498176KiB?
establishing permanently (boot)
mcedit /etc/modules-$(uname -r)
adding this 3 Lines:
save the File.
umount the SD/MMC Card (RMB ...)
remove the Card