Weird usb memorystick problem



Hi,


I recently noticed weird behaviour with my USB memorystick. This is on
AMD64 unstable, with:

linux-image-2.6.22-2-amd64
udev 0.114-2


I have defined the following udev rule:

ATTRS{idVendor}=="13e0", ATTRS{idProduct}=="2517", KERNEL=="sd*",
SYMLINK+="usb/stick%n", OPTIONS+="all_partitions"

The memorystick has one primary partition (vfat).

When the stick is inserted while booting, udev correctly creates the
desired symlinks:

# ls -l /dev/usb
lrwxrwxrwx 1 root root 6 2007-09-30 17:30 stick -> ../sda
lrwxrwxrwx 1 root root 6 2007-09-30 17:30 stick1 -> ../sda1

However, when I insert the same memorystick after the computer is booted, only
the symlink to /dev/sda is created.

Also, the kernel messages are quit different in these two cases.

When I insert the stick after booting, the kernel log shows the following:

Sep 30 17:54:15 casper kernel: usb 1-5: new high speed USB device using ehci_hcd and address 10
Sep 30 17:54:15 casper kernel: usb 1-5: configuration #1 chosen from 1 choice
Sep 30 17:54:15 casper kernel: hub 1-5:1.0: USB hub found
Sep 30 17:54:15 casper kernel: hub 1-5:1.0: 1 port detected
Sep 30 17:54:15 casper kernel: usb 1-5.1: new high speed USB device using ehci_hcd and address 11
Sep 30 17:54:15 casper kernel: usb 1-5.1: configuration #1 chosen from 1 choice
Sep 30 17:54:15 casper kernel: scsi6 : SCSI emulation for USB Mass Storage devices
Sep 30 17:54:15 casper kernel: usb-storage: device found at 11
Sep 30 17:54:15 casper kernel: usb-storage: waiting for device to settle before scanning
Sep 30 17:54:20 casper kernel: usb-storage: device scan complete
Sep 30 17:54:20 casper kernel: scsi scan: INQUIRY result too short (5), using 36
Sep 30 17:54:20 casper kernel: scsi 6:0:0:: Direct-Access USB 2.0 Flash Drive 1.00 PQ: 0 ANSI: 0
Sep 30 17:54:20 casper kernel: sd 6:0:0:0: [sda] Attached SCSI disk


However, looking back in the kernel boot log (that is, with the
memorystick inserted), I see:

[snip]
Sep 30 17:03:15 casper kernel: usb-storage: device scan complete
Sep 30 17:03:15 casper kernel: scsi scan: INQUIRY result too short (5), using 36
Sep 30 17:03:15 casper kernel: scsi 4:0:0:0: Direct-Access USB 2.0 Flash Drive 1.00 PQ: 0 ANSI: 0
Sep 30 17:03:15 casper kernel: sd 4:0:0:0: [sda] 256000 512-byte hardware sectors (131 MB)
Sep 30 17:03:15 casper kernel: sd 4:0:0:0: [sda] Write Protect is off
Sep 30 17:03:15 casper kernel: sd 4:0:0:0: [sda] Mode Sense: 03 00 00 00
Sep 30 17:03:15 casper kernel: sd 4:0:0:0: [sda] Assuming drive cache: write through
Sep 30 17:03:15 casper kernel: sd 4:0:0:0: [sda] 256000 512-byte hardware sectors (131 MB)
Sep 30 17:03:15 casper kernel: sd 4:0:0:0: [sda] Write Protect is off
Sep 30 17:03:15 casper kernel: sd 4:0:0:0: [sda] Mode Sense: 03 00 00 00
Sep 30 17:03:15 casper kernel: sd 4:0:0:0: [sda] Assuming drive cache: write through
Sep 30 17:03:15 casper kernel: sda: sda1
Sep 30 17:03:15 casper kernel: sd 4:0:0:0: [sda] Attached SCSI disk


Does this problem sound familiar to anyone on this list?


Thanks,

Iwan


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: set up Xserver for etch upgrade
    ... CD version 2.78 runing on 2.4.27 kernel. ... does not make it work then you might have a problem with udev. ... but its configuration files are still ... To UNSUBSCRIBE, email to debian-user-REQU...@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Udev. Problems with ordering hardware using /dev/video
    ... Sarge is not a problem, as it's using the 2.4.27, or 2.6.8 kernel, and Udev is not in the equation. ... The problem is with the 2.6.17 kernel that uses Udev. ... My TV card was set as /dev/video0, and some time later the webcam was set as /dev/video1. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Kernel 2.6.14-2-k7 and Nforce2 audio problems
    ... >> have a recent enough kernel for udev. ... >> before I could start learning udev, I found the 2.6.14 kernel isn't ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: udev doesnt creat /dev/audio
    ... and also the alsa-package for my sound ... how to tell the udev to creat the device ?? ... more recent kernel, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Base printer package
    ... I'm running a recently setup etch system (debootstrapped, amd64, 2.6 kernel, udev etc.), and have just noticed that /dev/lp0 wasn't present (I'd installed lpr, and was getting errors to that effect). ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)