Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47923 - Udev-0.24-1 causes "no medium found"error on flash card reader
Summary: Udev-0.24-1 causes "no medium found"error on flash card reader
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-15 06:59 UTC by AlterEgo
Modified: 2004-05-15 01:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AlterEgo 2004-04-15 06:59:05 UTC
kernel 2.6.5 udev-024-r1 , and a muti-card reader, identified as:
Bus 002 Device 002: ID 0dda:0001 Integrated Circuit Solution, Inc.
and named Sweex USB (1.1) 6in1 card reader.
The last time I used it, it was working properly, and the CF card I use is tested OK.

All my USB devices work properly, including digital camera and USB stick.

When I plug in my Multi-card-reader, this happens:
Code:

Apr 15 14:30:42 gentoo usb 2-1: new full speed USB device using address 2
Apr 15 14:30:42 gentoo SCSI subsystem initialized
Apr 15 14:30:42 gentoo Initializing USB Mass Storage driver...
Apr 15 14:30:42 gentoo scsi0 : SCSI emulation for USB Mass Storage devices
Apr 15 14:30:42 gentoo Vendor: ICSI      Model: IC1100        CF  Rev: 2.9C
Apr 15 14:30:42 gentoo Type:   Direct-Access                      ANSI SCSI revision: 02
Apr 15 14:30:42 gentoo Vendor: ICSI      Model: IC1100        MS  Rev: 2.9C
Apr 15 14:30:42 gentoo Type:   Direct-Access                      ANSI SCSI revision: 02
Apr 15 14:30:42 gentoo scsi.agent[9467]: disk at /devices/pci0000:00/0000:00:10.1/usb2/2-1/2-1:1.0/host0/0:0:0:1
Apr 15 14:30:42 gentoo scsi.agent[9456]: disk at /devices/pci0000:00/0000:00:10.1/usb2/2-1/2-1:1.0/host0/0:0:0:0
Apr 15 14:30:42 gentoo Vendor: ICSI      Model: IC1100    MMC/SD  Rev: 2.9C
Apr 15 14:30:42 gentoo Type:   Direct-Access                      ANSI SCSI revision: 02
Apr 15 14:30:42 gentoo SCSI device sda: 31232 512-byte hdwr sectors (16 MB)
Apr 15 14:30:42 gentoo sda: assuming Write Enabled
Apr 15 14:30:42 gentoo sda: assuming drive cache: write through
Apr 15 14:30:42 gentoo sda: sda1
Apr 15 14:30:42 gentoo Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Apr 15 14:30:42 gentoo Attached scsi removable disk sdb at scsi0, channel 0, id 0, lun 1
Apr 15 14:30:42 gentoo Attached scsi removable disk sdc at scsi0, channel 0, id 0, lun 2
Apr 15 14:30:42 gentoo Vendor: ICSI      Model: IC1100        SM  Rev: 2.9C
Apr 15 14:30:42 gentoo Type:   Direct-Access                      ANSI SCSI revision: 02
Apr 15 14:30:42 gentoo Attached scsi removable disk sdd at scsi0, channel 0, id 0, lun 3
Apr 15 14:30:42 gentoo USB Mass Storage device found at 2
Apr 15 14:30:42 gentoo drivers/usb/core/usb.c: registered new driver usb-storage
Apr 15 14:30:42 gentoo USB Mass Storage support registered.
Apr 15 14:30:43 gentoo scsi.agent[9490]: disk at /devices/pci0000:00/0000:00:10.1/usb2/2-1/2-1:1.0/host0/0:0:0:2
Apr 15 14:30:43 gentoo scsi.agent[9529]: disk at /devices/pci0000:00/0000:00:10.1/usb2/2-1/2-1:1.0/host0/0:0:0:3


and the proper device are created:
Code:

ls -la /dev/sd*
brw-rw----    1 root     disk       8,   0 Apr 15 14:30 /dev/sda
brw-rw----    1 root     disk       8,   1 Apr 15 14:30 /dev/sda1
brw-rw----    1 root     disk       8,  16 Apr 15 14:30 /dev/sdb
brw-rw----    1 root     disk       8,  32 Apr 15 14:30 /dev/sdc
brw-rw----    1 root     disk       8,  48 Apr 15 14:30 /dev/sdd

Permissions are OK.

However:
Code:

mount /dev/sda1 /mnt/CF
mount: No medium found

If I revert to udev-0.232-r1, the card reader works as it has always done before.

If you need more info, just tell what info.
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-04-21 08:54:44 UTC
What is the output of 'ls -l /dev/sd*' when using version 23 of udev?
Comment 2 AlterEgo 2004-04-21 10:00:17 UTC
Udev-0.23-r1:
> No reader attached:
ls -l /dev/sd*
ls: /dev/sd*: No such file or directory
> Reader attached; no card inserted:
ls -l /dev/sd*
brw-rw----    1 root     disk       8,   0 Apr 21 18:57 /dev/sda
brw-rw----    1 root     disk       8,  16 Apr 21 18:57 /dev/sdb
brw-rw----    1 root     disk       8,  32 Apr 21 18:57 /dev/sdc
brw-rw----    1 root     disk       8,  48 Apr 21 18:57 /dev/sdd
> Reader attached and CF card inserted:
ls -l /dev/sd*
brw-rw----    1 root     disk       8,   0 Apr 21 18:58 /dev/sda
brw-rw----    1 root     disk       8,   1 Apr 21 18:58 /dev/sda1
brw-rw----    1 root     disk       8,  16 Apr 21 18:58 /dev/sdb
brw-rw----    1 root     disk       8,  32 Apr 21 18:58 /dev/sdc
brw-rw----    1 root     disk       8,  48 Apr 21 18:58 /dev/sdd
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-04-21 17:00:29 UTC
Hm, udev created the same permissions, and the same nodes.

So this isn't a udev issue at all, sorry.
Hm, there is no release "udev-0.232-r1"  what are you meaning there?
Comment 4 AlterEgo 2004-04-22 01:05:47 UTC
Greg, I know the permissions on /dev/sd* are identiccal.
The version I meant was udev-0.23-r1, that's why I corrected the text.
With this version the card reader works well. 
By ONLY upgrading to sys-fs/udev-024-r1 it will stop working as described: "no medium found".
Thus it is udev-related in my humble opinion, and not resolved.
Comment 5 AlterEgo 2004-04-22 01:53:06 UTC
Greg, 

I have some further info that pinpoints the error. 
I'll describe this step by step, because it is pretty weird ;)

I upgraded to udev-0.24-r1 again and ran etc-update, blindly overwriting my personalised /etc/udev/udev.rules.

To my surprise, my CF reader, and everything works perfectly afterwards.

Now I modify udev.rules in order to get my printer functioning properly. 
I add the following two lines to udev.rules:

# Epson C82
BUS="usb", SYSFS_serial="0HS550304210308460", NAME="lp_epson"

Printer works beautifully.
Now comes the weird bit: after adding this line, I can no longer use the CF reader: the "no medium found"- error strikes again.

When I comment (#) the line:
# BUS="usb", SYSFS_serial="0HS550304210308460", NAME="lp_epson"

the CF reader works properly again..

I can reproduce this as often as I want. 

The devices created by udev are (of course) identical with or without the line:
BUS="usb", SYSFS_serial="0HS550304210308460", NAME="lp_epson"
in my  udev.rules.

As stated before: in udev-0.23-r1, this issue did not occur.

I hope this makes sense to you.
Regards, AE
Comment 6 AlterEgo 2004-04-29 04:08:22 UTC
I updated to sys-fs/udev-025-r1
I experience the same problem as described above.
I am sure this is a udev issue and it is not resolved.
Comment 7 AlterEgo 2004-05-02 02:59:50 UTC
By avoiding
Code:

BUS="usb", SYSFS_serial="0HS50304210308460", NAME="lp_epson" , SYMLINK="lp_epson"

and using
Code:

BUS="usb", KERNEL="lp[0-9]*",   NAME="usb/%k", SYMLINK="lp_epson"


the printer works and the "no medium found" problem with my card reader no longer occurs.

Thanks to dsd's suggestion:
http://forums.gentoo.org/viewtopic.php?p=1097907#1097907

I still think this is a udev bug though.
Comment 8 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-05-14 14:12:46 UTC
I really do not see how this is a udev issue.

Anyway, it looks to be fixed...
Comment 9 AlterEgo 2004-05-15 01:58:30 UTC
Well Greg, 
I do consider this to be a udev issue:
If I apply a valid udev rule and this rule caused direct problems, I would say this is a udev-related problem. 
If I apply another udev-rule, I am able to circumvent the problem, not fix it.

/me signing out