28.03.2024, 18:40 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

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 [0805]: 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:

#!/bin/bash

modprobe -r sdhci mmc_block mmc_core
modprobe mmc_core
modprobe mmc_block

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!

have fun.

Ge0rgy?

Laptop Cardreader automount


open console
lspci | grep MMC
00:0a.2 Generic system peripheral [0805]: 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:

su ...
modprobe mmc_block
modprobe mmc_core
modprobe sdhci
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?
mmcblk0?: p1


establishing permanently (boot)

mcedit /etc/modules-$(uname -r)
adding this 3 Lines:

mmc_block
mmc_core
sdhci

save the File.

umount the SD/MMC Card (RMB ...)
remove the Card
reboot




tested successfully:
  • Asus
  • HP
  • Samsung
XML Revisions of $tag
Seiten-History :: Letzter Editor : kt :: Eigentümer : Georgy ::
Powered by pnWikka 1.0
 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.