Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting SD card from card reader [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
oneself
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2005
Posts: 107
Location: New York, NY

PostPosted: Sun Apr 15, 2012 11:39 pm    Post subject: Mounting SD card from card reader [solved] Reply with quote

Hi,

My laptop has a built-in SD card reader. When I insert a card I see the following in the system logs:

Code:
Apr 15 19:37:18 lapself kernel: usb 2-6: new high-speed USB device number 3 using ehci_hcd
Apr 15 19:37:18 lapself kernel: usb 2-6: New USB device found, idVendor=05ca, idProduct=1880
Apr 15 19:37:18 lapself kernel: usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 15 19:37:18 lapself kernel: usb 2-6: Product: USB2.0-FLASH Media   
Apr 15 19:37:18 lapself kernel: usb 2-6: Manufacturer: RICOH             
Apr 15 19:37:18 lapself kernel: usb 2-6: SerialNumber: R5U880-00003


However, I don't think any new /dev is created, and I'm not sure how to mount this. It would be even better if the system auto mounted it. How can this be done?

Thank you.
_________________
There are 10 types of people, those who know binary and those who don't.


Last edited by oneself on Fri Jul 06, 2012 7:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Mon Apr 16, 2012 12:47 am    Post subject: Reply with quote

oneself,

I noticed that ricoh had kernel config settings - not sure if you have them set or if they're for your device or not.

CONFIG_MMC_RICOH_MMC
CONFIG_MMC_SDRICOH_CS

mount will show if it's mounted.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
oneself
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2005
Posts: 107
Location: New York, NY

PostPosted: Mon Apr 16, 2012 1:05 am    Post subject: Reply with quote

Hi, thank you for your reply,

I've added those modules but it doesn't seem to change anything.
_________________
There are 10 types of people, those who know binary and those who don't.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Mon Apr 16, 2012 1:22 am    Post subject: Reply with quote

Another setting to check is CONFIG_SCSI_MULTI_LUN=y - mine didn't work until I set it.

Do you happen to fall into this category :?:

https://forums.gentoo.org/viewtopic-t-918232.html

https://forums.gentoo.org/viewtopic-t-917420.html

As far as I know, they were never resolved :(
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Mon Apr 16, 2012 10:01 am    Post subject: Reply with quote

From what I read around, this thing should work out-of-the-box. It's an USB device, so the cards should show up as regular disks, like usb-sticks do. So /dev/sdb, /dev/sdc or similar.

Have you tried other distros? If it works on them, it's a kernel config issue. BillWho's MULTI_LUN advice is very good in this regard, make sure you have that.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9593
Location: beyond the rim

PostPosted: Mon Apr 16, 2012 10:45 am    Post subject: Reply with quote

memory cards typically show up as /dev/mmc* devices (at least on card readers I've used so far).
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Mon Apr 16, 2012 1:37 pm    Post subject: Reply with quote

Genone wrote:
memory cards typically show up as /dev/mmc* devices (at least on card readers I've used so far).

Yes, with PCI card-readers. But this is an USB card-reader. Cards don't show up as, well, cards, but as mass storage devices.
Back to top
View user's profile Send private message
oneself
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2005
Posts: 107
Location: New York, NY

PostPosted: Mon Apr 16, 2012 3:05 pm    Post subject: Reply with quote

So, does that mean that they should show up as /dav/sd*?

Will the /dev be created automatically or do you need to create it manually?
Is this just a kernel issue still?
_________________
There are 10 types of people, those who know binary and those who don't.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Mon Apr 16, 2012 3:47 pm    Post subject: Reply with quote

If I plug in my USB card reader, and load it with a card, I get a complaint "Only root can mount
/dev/sda1 on /media/usb", since I have permissions set wrong. If I then mount the card as root
it looks like an ordinary file-system.

I don't have any special drivers in the kernel - just USB_STORAGE and USB_LIBUSUAL,
and the UHCI / OHCI / EHCI drivers. I don't think LIBUSUAL is necessary, since I don't
have any of the specific drivers configured; and I don't have MULTI_LUN set.

Will
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54538
Location: 56N 3W

PostPosted: Mon Apr 16, 2012 6:53 pm    Post subject: Reply with quote

MULTI_LUN is required for card readers that support more than one card type or you only get LUN 0, whatever that happens to be.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
oneself
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2005
Posts: 107
Location: New York, NY

PostPosted: Tue Apr 17, 2012 2:59 pm    Post subject: Mounting SD card from card reader [solved] Reply with quote

I was missing:

Code:
CONFIG_USB_STORAGE=m


Thank you all.
_________________
There are 10 types of people, those who know binary and those who don't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum