Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 106025

Summary: udev-0.68 fails to link plugged CF card under /dev/disk
Product: Gentoo Linux Reporter: Kalin KOZHUHAROV <kalin>
Component: [OLD] Core systemAssignee: Greg Kroah-Hartman (RETIRED) <gregkh>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kalin KOZHUHAROV 2005-09-14 21:33:56 UTC
I was trying to get more persistent mapping for my CF cards on my laptop.

Reproducible: Always
Steps to Reproduce:
1. Plug in a CF memory card
2. ls -l /dev/disk


Actual Results:  
not linked, although accesible via /dev/hde*

Expected Results:  
link it under the various categories.

Runnig stock udev-0.68 on almost vanilla-2.6.12.2 (about to upgrade).

: After plugging in:

ss ip-fw # tree /dev/disk/
/dev/disk/
|-- by-id
|   |-- ata-TOSHIBA_MK2003GAH_92P27957T -> ../../hda
|   |-- ata-TOSHIBA_MK2003GAH_92P27957T-part1 -> ../../hda1
|   |-- ata-TOSHIBA_MK2003GAH_92P27957T-part2 -> ../../hda2
|   |-- ata-TOSHIBA_MK2003GAH_92P27957T-part3 -> ../../hda3
|   |-- ata-TOSHIBA_MK2003GAH_92P27957T-part4 -> ../../hda4
|   |-- ata-TOSHIBA_MK2003GAH_92P27957T-part5 -> ../../hda5
|   |-- ata-TOSHIBA_MK2003GAH_92P27957T-part6 -> ../../hda6
|   `-- ata-TOSHIBA_MK2003GAH_92P27957T-part7 -> ../../hda7
|-- by-label
|   |-- ss:boot -> ../../hda3
|   |-- ss:mntWinXP -> ../../hda1
|   `-- ss:mntstor -> ../../hda6
|-- by-path
|   |-- pci-0000:00:04.0-ide-0:0 -> ../../hda
|   |-- pci-0000:00:04.0-ide-0:0-part1 -> ../../hda1
|   |-- pci-0000:00:04.0-ide-0:0-part2 -> ../../hda2
|   |-- pci-0000:00:04.0-ide-0:0-part3 -> ../../hda3
|   |-- pci-0000:00:04.0-ide-0:0-part4 -> ../../hda4
|   |-- pci-0000:00:04.0-ide-0:0-part5 -> ../../hda5
|   |-- pci-0000:00:04.0-ide-0:0-part6 -> ../../hda6
|   `-- pci-0000:00:04.0-ide-0:0-part7 -> ../../hda7
`-- by-uuid
    |-- 1de6cef8-6f87-4408-bdb3-6fee1eab9ca4 -> ../../hda6
    |-- 44378644-f9ed-4cb4-8727-41f3b9ce32da -> ../../hda7
    |-- 723b767e-00fa-4e36-b0d5-ce75eca1b515 -> ../../hda5
    |-- 7C8434918434503E -> ../../hda1
    `-- cc8cad88-db1a-4dc6-b32e-23e51a6504c0 -> ../../hda3

4 directories, 24 files
ss ip-fw # ls -l /dev/hde*
brw-rw----  1 root disk 33, 0 Sep 15 13:13 /dev/hde
brw-rw----  1 root disk 33, 1 Sep 15 13:24 /dev/hde1
ss ip-fw # /sbin/ata_id /dev/hde --export
ID_TYPE=generic
ID_MODEL=LEXAR_ATA_FLASH
ID_SERIAL=11014102039199092060
ID_REVISION=V1.00
ID_BUS=ata
ss ip-fw # dmesg 
cs: memory probe 0xa0000000-0xa0ffffff: clean.
Probing IDE interface ide2...
hde: LEXAR ATA FLASH, CFA DISK drive
ide2 at 0x100-0x107,0x10e on irq 3
hde: max request size: 128KiB
hde: 2014992 sectors (1031 MB) w/1KiB Cache, CHS=1999/16/63
hde: cache flushes not supported
 /dev/ide/host2/bus0/target0/lun0: p1
ide-cs: hde: Vcc = 3.3, Vpp = 0.0
 /dev/ide/host2/bus0/target0/lun0: p1
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-12-07 13:19:10 UTC
cf memory cards can't show up in /dev/disk/ until the kernel is changed
to properly handle hotplug events with these devices.

Hopefully upstream will work on this soon.

So, until then, udev can't do this, sorry.