https://qa.mandrakesoft.com/show_bug.cgi?id=1191
------- Additional Comments From [EMAIL PROTECTED] 2003-02-21 06:17 -------
This bug still remains.
Tonight, I plugged a usb card reader in and a /dev/sda entry was created.
After I had unplugged the device, I looked at the logs and saw a message stating
that the device had been unplugged.
However, the /dev/sda entry still remained.
I then tried to run diskdrake, and it obviously believed that the device
formerly connected to /dev/sda still was connected as it asked me:
"I can't read the partition table of device sda, it's too corrupted for me :(
I can try to go on, erasing over bad partitions (ALL DATA will be lost!).
The other solution is to not allow DrakX to modify the partition table.
(the error is unknown partition table format on disk /dev/sda.)
Do you agree to loose all the partitions? [Y/N]"
Thierry, if you don't think this is a mistake in devfsd, where do you think it
is? In the kernel? In hotplug? Work with me, I gave all the information I could
think of in the original bug report: lspci, logs, /proc/bus/usb/devices and a
listing of relevant entries in /dev. What more can I do in order to facilitate
this problem being solved?
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: UNCONFIRMED
creation_date:
description:
I have a CD-RW which I sometimes access using a IDE->USB2.0 case enclosure.
When I connected it, it was recognized and a /dev/ entry was created.
When I disconnected it, the /dev/ entry remained and harddrake2 still displayed
the outdated drive information.
What I expected: The /dev entries to be removed when I disconnected the device.
This is on a fresh cooker install from yesterday. Kernel is 2.4.21.0.pre4.1
Given below: The appropriate lines from the kernel log, /proc/bus/usb/devices,
lspvi -v, the /dev listing and the harddrake2 output.
#
############################
#
Here are the log messages from connecting:
Feb 1 10:37:01 localhost kernel: hub.c: new USB device 00:02.2-1, assigned
address 8
Feb 1 10:37:01 localhost kernel: usb.c: USB device not accepting new address=8
(error=-71)
Feb 1 10:37:01 localhost kernel: hub.c: new USB device 00:02.2-1, assigned
address 9
Feb 1 10:37:01 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage
devices
Feb 1 10:37:03 localhost kernel: Vendor: HP Model: CD-Writer+ 9100
Rev: 1.0c
Feb 1 10:37:03 localhost kernel: Type: CD-ROM
ANSI SCSI revision: 02
Feb 1 10:37:03 localhost kernel: Attached scsi CD-ROM sr0 at scsi1, channel 0,
id 0, lun 0
Feb 1 10:37:03 localhost kernel: sr0: scsi-1 drive
Feb 1 10:37:06 localhost /etc/hotplug/usb.agent: Setup usb-storage for USB product
#
############################
#
The log message from disconnecting:
Feb 1 11:44:57 localhost kernel: usb.c: USB disconnect on device 00:02.2-1
address 9
#
############################
#
The results from cat /proc/bus/usb/devices with the CD drive connected show
that it is indeed registered:
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.04
S: Manufacturer=Linux 2.4.21pre4-1mdk ehci-hcd
S: Product=PCI device 10de:0068 (nVidia Corporation)
S: SerialNumber=00:02.2
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 9 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0c0b ProdID=b001 Rev=11.10
S: Manufacturer=DMI
S: Product=USB 2.0 Storage Adaptor
S: SerialNumber=0B02011C04E7EA44
C:* #Ifs= 1 Cfg#= 2 Atr=c0 MxPwr= 98mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=125us
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 2 Ivl=32ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=e0840000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=e083e000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
#
############################
#
Here's the state of the /dev entries after I have disconnected the device:
[root@localhost root]# ls -l /dev/scd0
lr-xr-xr-x 1 root root 31 Feb 1 10:37 /dev/scd0 ->
scsi/host1/bus0/target0/lun0/cd
[root@localhost root]# ls -l /dev/scsi/host1/bus0/target0/lun0/
total 0
brw------- 1 english1 root 11, 0 Dec 31 1969 cd
crw-rw---- 1 english1 root 21, 0 Dec 31 1969 generic
[root@localhost root]#
#
############################
#
Harddrake2 still shows the old information after the device has been
disconnected. It lists scd0 as a drive and gives the following
information about it:
Bus: SCSI
Location on the bus: 0:0
Channel: 00
New devfs device: scsi/host1/bus0/target0/lun0/cd
Old device file: /dev/scd0
Floppy format: HP CD-Writer+ 9100
Media class: cdrom
#
############################
#
If we look at /proc/bus/usb/devices, we see that the device has indeed
disappeared from the bus:
[english1@localhost english1]$ cat /proc/bus/usb/devices
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.04
S: Manufacturer=Linux 2.4.21pre4-1mdk ehci-hcd
S: Product=PCI device 10de:0068 (nVidia Corporation)
S: SerialNumber=00:02.2
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=e0840000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=e083e000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
#
############################
#
lspci -v gives:
00:02.0 USB Controller: nVidia Corporation: Unknown device 0067 (rev a3)
(prog-if 10 [OHCI])
Subsystem: Asustek Computer, Inc.: Unknown device 0c11
Flags: bus master, 66Mhz, fast devsel, latency 0, IRQ 5
Memory at e0080000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2
00:02.1 USB Controller: nVidia Corporation: Unknown device 0067 (rev a3)
(prog-if 10 [OHCI])
Subsystem: Asustek Computer, Inc.: Unknown device 0c11
Flags: bus master, 66Mhz, fast devsel, latency 0, IRQ 11
Memory at e0083000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2
00:02.2 USB Controller: nVidia Corporation: Unknown device 0068 (rev a3)
(prog-if 20 [EHCI])
Subsystem: Asustek Computer, Inc.: Unknown device 0c11
Flags: bus master, 66Mhz, fast devsel, latency 0, IRQ 5
Memory at e0084000 (32-bit, non-prefetchable) [size=256]
Capabilities: [44] #0a [2080]
Capabilities: [80] Power Management version 2