Bug#357858: udev removes pcmcia ide devices immediately before mounting
Package: udev Version: 0.087-2 Severity: normal Using a compact flash card in the card slot in my laptop, which is presented as pcmcia-ide, while udev creates the device node correctly, it apparently removes and recreates the device on any attempt to mount it. This makes mounting impossible without stopping udev. Example: redline:~# ls -l /dev/hde1 brw-rw 1 root floppy 33, 1 2006-03-19 23:25 /dev/hde1 redline:~# mount /dev/hde1 /mnt/flash/ mount: special device /dev/hde1 does not exist redline:~# ls -l /dev/hde1 brw-rw 1 root floppy 33, 1 2006-03-19 23:26 /dev/hde1 -- Package-specific info: -- /etc/udev/rules.d/: /etc/udev/rules.d/: total 0 lrwxrwxrwx 1 root root 20 2006-03-19 23:19 020_permissions.rules -> ../permissions.rules lrwxrwxrwx 1 root root 15 2006-03-09 19:51 85-pcmcia.rules -> ../pcmcia.rules lrwxrwxrwx 1 root root 19 2006-03-19 23:19 cd-aliases.rules -> ../cd-aliases.rules lrwxrwxrwx 1 root root 13 2006-03-19 23:19 udev.rules -> ../udev.rules lrwxrwxrwx 1 root root 19 2006-03-19 23:19 z20_persistent.rules -> ../persistent.rules lrwxrwxrwx 1 root root 12 2006-03-19 23:19 z50_run.rules -> ../run.rules lrwxrwxrwx 1 root root 16 2006-03-19 23:19 z55_hotplug.rules -> ../hotplug.rules lrwxrwxrwx 1 root root 19 2006-03-10 01:41 z60_alsa-utils.rules -> ../alsa-utils.rules lrwxrwxrwx 1 root root 15 2006-03-11 23:39 z60_hdparm.rules -> ../hdparm.rules lrwxrwxrwx 1 root root 17 2006-03-19 23:19 z70_hotplugd.rules -> ../hotplugd.rules -- /sys/: /sys/block/hda/dev /sys/block/hda/hda1/dev /sys/block/hda/hda2/dev /sys/block/hda/hda3/dev /sys/block/hda/hda4/dev /sys/block/hda/hda5/dev /sys/block/hdc/dev /sys/block/hde/dev /sys/block/hde/hde1/dev /sys/class/drm/card0/dev /sys/class/drm/card1/dev /sys/class/drm/card2/dev /sys/class/drm/card3/dev /sys/class/graphics/fb0/dev /sys/class/input/input0/event0/dev /sys/class/input/input1/event1/dev /sys/class/input/input1/mouse0/dev /sys/class/input/mice/dev /sys/class/misc/agpgart/dev /sys/class/misc/nvram/dev /sys/class/misc/pktcdvd/dev /sys/class/misc/psaux/dev /sys/class/misc/rtc/dev /sys/class/misc/toshiba/dev /sys/class/misc/tun/dev /sys/class/sound/controlC0/dev /sys/class/sound/pcmC0D0c/dev /sys/class/sound/pcmC0D0p/dev /sys/class/sound/pcmC0D1c/dev /sys/class/sound/pcmC0D2c/dev /sys/class/sound/pcmC0D3c/dev /sys/class/sound/pcmC0D4p/dev /sys/class/sound/timer/dev /sys/class/usb_device/usbdev1.1/dev /sys/class/usb_device/usbdev2.1/dev /sys/class/usb_device/usbdev3.1/dev /sys/class/usb_device/usbdev4.1/dev /sys/class/zft/nqft0/dev /sys/class/zft/nqft1/dev /sys/class/zft/nqft2/dev /sys/class/zft/nqft3/dev /sys/class/zft/nrawrawqft0/dev /sys/class/zft/nrawrawqft1/dev /sys/class/zft/nrawrawqft2/dev /sys/class/zft/nrawrawqft3/dev /sys/class/zft/nzqft0/dev /sys/class/zft/nzqft1/dev /sys/class/zft/nzqft2/dev /sys/class/zft/nzqft3/dev /sys/class/zft/qft0/dev /sys/class/zft/qft1/dev /sys/class/zft/qft2/dev /sys/class/zft/qft3/dev /sys/class/zft/rawqft0/dev /sys/class/zft/rawqft1/dev /sys/class/zft/rawqft2/dev /sys/class/zft/rawqft3/dev /sys/class/zft/zqft0/dev /sys/class/zft/zqft1/dev /sys/class/zft/zqft2/dev /sys/class/zft/zqft3/dev -- Kernel configuration: isapnp_init not present. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15.6rt Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages udev depends on: ii initscripts 2.86.ds1-12 Scripts for initializing and shutt ii libc62.3.5-13GNU C Library: Shared libraries an ii libselinux1 1.28-4 SELinux shared libraries ii lsb-base 3.0-15 Linux Standard Base 3.0 init scrip ii makedev 2.3.1-80creates device files in /dev ii sed 4.1.4-5 The GNU sed stream editor udev recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#357858: udev removes pcmcia ide devices immediately before mounting
reassign 357858 linux-2.6 thanks On Mar 20, Richard Thrippleton <[EMAIL PROTECTED]> wrote: > Using a compact flash card in the card slot in my laptop, which is presented > as > pcmcia-ide, while udev creates the device node correctly, it apparently > removes > and recreates the device on any attempt to mount it. This makes mounting > impossible without stopping udev. Unless it's #350235/#355441 again (and it should not be, since that happens even before you can try using the device) then it's some similar kernel-related problem. Anyway, udev just creates or deletes whatever the kernel tells it to create or delete. -- ciao, Marco signature.asc Description: Digital signature
Bug#357858: udev removes pcmcia ide devices immediately before mounting
On Mon, Mar 20, 2006 at 01:20:50AM +0100, Marco d'Itri wrote: > reassign 357858 linux-2.6 > thanks > > Unless it's #350235/#355441 again (and it should not be, since that > happens even before you can try using the device) then it's some similar > kernel-related problem. > Anyway, udev just creates or deletes whatever the kernel tells it to > create or delete. I checked with udevmonitor - you're correct, it's the kernel that's wrong. http://groups.google.com/group/linux.kernel/browse_thread/thread/76b6e9e72539cbcf/f1df76d875bc6920?lnk=st&q=group%3Alinux.kernel+is_flash&rnum=2#f1df76d875bc6920 sheds a bit more light on this. I've applied the patch, and it works in my situation - a far saner number of udev events get generated. Although if I'm still using a mounted filesystem on the card when it ejects, there are usually kernel oopses rendering the whole ide system a bit unusable - I'll save this for another bug about making ide more robust :-) I'm slightly curious as to why this fairly old patch didn't make it into the kernel. Richard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]