-   Linux - Laptop and Netbook (
-   -   cant read sd memory card in ubuntu (

JET-33 10-21-2010 10:53 PM

cant read sd memory card in ubuntu
ive just installed ubuntu 10.04 x86 on my netbook and everything is working a treat except for the SD card reader

unlike the usb ports, when i insert an sd card it is not mounted or detected

do i need to install anything to enable this?

EDIT: using an acer aspire one netbook

theNbomr 10-21-2010 11:39 PM

How do you know it is not detected? What is the output of (as root):

/sbin/fdisk -l

--- rod

JET-33 10-21-2010 11:53 PM

sudo /sbin/fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xec5d5240

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 96256 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 4268 34180096 83 Linux
/dev/sda3 4268 29799 205078528 83 Linux
/dev/sda4 29799 30402 4841472 82 Linux swap / Solaris

/dev/sda2 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
/dev/sda1 on /boot type ext3 (rw)
/dev/sda3 on /home type ext3 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/xxxxxxxxxxx/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=xxxxxxxxxxx)

theNbomr 10-22-2010 08:35 AM

Okay, it is not being detected as a removable media. IFAIK, most flash card readers are implemented as part of the USB subsystem. If you run (as root):

tail -f /var/log/messages
and then plug the card into the reader, do you see any new messages appear as the card is inserted and removed? Also, observe output of dmesg before and after inserting/removing the card. That may reveal something. Has the card reader ever worked, either in the present Linux installation, or under any other OS? Is it possible that the reader has been disabled at the BIOS level?

--- rod.

halcyonz 11-27-2010 11:01 PM

me too!
Not to jump in your thread but I am having what I think is the same problem. Here is my output of

dmesg | tail

[  170.960031] usb 4-1: reset full speed USB device using uhci_hcd and address 2
[  181.224022] usb 4-1: reset full speed USB device using uhci_hcd and address 2
[  197.492019] usb 4-1: reset full speed USB device using uhci_hcd and address 2
[  197.760017] usb 4-1: reset full speed USB device using uhci_hcd and address 2
[  208.024019] usb 4-1: reset full speed USB device using uhci_hcd and address 2
[  208.178082] sd 6:0:0:0: Device offlined - not ready after error recovery

I recently attached a internal SD reader to the motherboard on one of the usb pin stacks. The device is detected in disk utility but will not detect the media inserted. Whenever I restart with media in the reader it hangs at the bios screen, I thought it was because it was attempting to boot from the empty media, however my HDD is set as my first boot device. Updated my kernel and headers to the latest update which install something with apparmour that screwed with the output of dmesg | tail, so I removed every apparmour entry and its back to the output listed above. I do however plan to reinstall apparmour after I figure out this SD problem.

I restarted without the drive attached then inserted it attached it again while powered on after installing usb-modules via synaptic. the new dmesg | tail is this:

[ 262.223047] sd 6:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 262.223053] sd 6:0:0:0: [sdb] Sense not available.
[ 262.223061] sd 6:0:0:0: rejecting I/O to offline device
[ 262.223068] sd 6:0:0:0: [sdb] Write Protect is off
[ 262.223072] sd 6:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 262.223076] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 262.223265] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[ 262.276042] sd 6:0:0:1: [sdc] Attached SCSI removable disk
[ 262.281032] sd 6:0:0:3: [sde] Attached SCSI removable disk
[ 262.363070] sd 6:0:0:2: [sdd] Attached SCSI removable disk

I have officially spent way too much time working on this, but this is what I have so far...
*kernel bug (upgraded to latest)
*usb 2.0 problems (uhci_hcd removal suggested, but that will set everything back to usb 1.1 which is no bueno)
*lack of power (power lines are good, checked continuity with multimeter and led turns on when media is inserted)
*running tail -f /var/log/messages (inserting then removing media did not register i the log)

All times are GMT -5. The time now is 01:03 AM.