usb-storage kills lilo (2.6-test[67])
(sorry for the flashy subject, but I could not come up with another one :-)
Hi, I got problems with usb-storage and linux-2.6-test[67]. AFAICS, test5 works fine (still have to retest to make sure).
Problem is that inserting my USB flash memory disk makes /dev/sda (and /dev/sda1) appear in /proc/partitions, but removing it does not remove the entries from /proc/partitions. lilo is reading /proc/partitions (verified trough strace) and dies because /dev/sda is gone.
Possibly related to that is the next time I insert the flash disk, is shows up as /dev/sdb1 (and adds this to /proc/partiotions, too).
System is a Debian-sid updated today morning (see below for details).
Please CC (I read the kernel list but not the USB one).
so long
Norbert
defiant% cat /proc/version
Linux version 2.6.0-test7 (nkiesel@defiant) (gcc version 3.3.2 20031005 (Debian prerelease)) #8 Wed Oct 8 18:11:11 PDT 2003
defiant% ls '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-2/1-2.4/1-2.4.2/1-2.4.2:1.0/host1/1:0:0:0'
block detach_state model queue_depth rev type delete device_blocked online rescan scsi_level vendor
defiant% cat '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-2/1-2.4/1-2.4.2/1-2.4.2:1.0/host1/1:0:0:0/type' 0
defiant% cat '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-2/1-2.4/1-2.4.2/1-2.4.2:1.0/host1/1:0:0:0/model' DIGITAL FILM
defiant% grep -E 'USB|IDE' .config | grep -v '^#'CONFIG_IDE=yCONFIG_BLK_DEV_IDE=yCONFIG_BLK_DEV_IDEDISK=yCONFIG_BLK_DEV_IDECD=yCONFIG_BLK_DEV_IDEFLOPPY=mCONFIG_BLK_DEV_IDESCSI=yCONFIG_IDE_TASKFILE_IO=yCONFIG_BLK_DEV_IDEPCI=yCONFIG_IDEPCI_SHARE_IRQ=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_IDEDMA_PCI_AUTO=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_IDEDMA_AUTO=yCONFIG_VIDEO_SELECT=yCONFIG_USB=mCONFIG_USB_DEVICEFS=yCONFIG_USB_UHCI_HCD=mCONFIG_USB_STORAGE=mCONFIG_USB_STORAGE_DEBUG=yCONFIG_USB_STORAGE_JUMPSHOT=yCONFIG_USB_HID=mCONFIG_USB_HIDINPUT=yCONFIG_USB_SERIAL=mCONFIG_USB_SERIAL_VISOR=m
defiant% /usr/sbin/lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 006: ID 05dc:0080 Lexar Media, Inc.
Bus 001 Device 004: ID 058f:9254 Alcor Micro Corp. Hub
Bus 001 Device 003: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub Bus 001 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical Bus 001 Device 001: ID 0000:0000
defiant% cat /proc/partitions
major minor #blocks name
22 64 11255328 hdd 22 65 3583912 hdd1 22 66 1 hdd2 22 69 255496 hdd5 22 70 3840448 hdd6 22 71 1024096 hdd7 22 72 2551216 hdd8 33 64 8901720 hdf 33 65 8901616 hdf1 34 64 20066251 hdh 34 65 1 hdh1 34 66 976752 hdh2 34 69 12287961 hdh5 34 70 6800944 hdh6 8 0 125952 sda 8 1 125296 sda1 8 16 125952 sdb 8 17 125296 sdb1
defiant% mount
rootfs on / type rootfs (rw)/dev/root on / type ext3 (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)/dev/hdd6 on /usr type ext3 (rw)/dev/hdd8 on /var type ext3 (rw)/dev/hdd7 on /tmp type ext3 (rw)/dev/hdh5 on /home type ext3 (rw)/dev/hdf1 on /ogg type ext3 (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
dev:/a on /a type nfs (rw,nosuid,nodev,v3,rsize=8192,wsize=8192,hard,intr,udp,lock,addr=dev) dev:/b on /b type nfs (rw,nosuid,nodev,v3,rsize=8192,wsize=8192,hard,intr,udp,lock,addr=dev) dev:/space on /space type nfs (ro,nosuid,nodev,v3,rsize=8192,wsize=8192,hard,intr,udp,lock,addr=dev) dev:/local on /local type nfs (rw,nosuid,nodev,v3,rsize=8192,wsize=8192,hard,intr,udp,lock,addr=dev) //iota/repository on /iota type smbfs (rw,uid=511,gid=511,file_mode=0744,dir_mode=0755) automount(pid792) on /var/autofs/misc type autofs (rw)
automount(pid808) on /var/autofs/net type autofs (rw)
defiant% tail -n 30 /var/log/messages
Oct 11 21:09:31 defiant kernel: hub 1-2.4:1.0: new USB device on port 2, assigned address 5 Oct 11 21:09:31 defiant kernel: Initializing USB Mass Storage driver... Oct 11 21:09:31 defiant kernel: scsi0 : SCSI emulation for USB Mass Storage devices Oct 11 21:09:31 defiant kernel: Vendor: LEXAR Model: DIGITAL FILM Rev: /W1. Oct 11 21:09:31 defiant kernel: Type: Direct-Access ANSI SCSI revision: 02 Oct 11 21:09:31 defiant kernel: SCSI device sda: 251904 512-byte hdwr sectors (129 MB) Oct 11 21:09:31 defiant scsi.agent[1219]: how to add device type= at /devices/pci0000:00/0000:00:07.2/usb1/1-2/1-2.4/1-2.4.2/1-2.4.2:1.0/host0/0:0:0:0 ?? Oct 11 21:09:31 defiant kernel: sda: Write Protect is off Oct 11 21:09:31 defiant kernel: sda: cache data unavailable Oct 11 21:09:31 defiant kernel: sda:<7>usb-storage: queuecommand called Oct 11 21:09:31 defiant kernel: sda1 Oct 11 21:09:31 defiant kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 Oct 11 21:09:31 defiant kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 Oct 11 21:09:31 defiant kernel: drivers/usb/core/usb.c: registered new driver usb-storage Oct 11 21:09:31 defiant kernel: USB Mass Storage support registered. Oct 11 21:11:18 defiant kernel: usb 1-2.4.2: USB disconnect, address 5 Oct 11 21:11:28 defiant kernel: hub 1-2.4:1.0: new USB device on port 2, assigned address 6 Oct 11 21:11:28 defiant kernel: scsi1 : SCSI emulation for USB Mass Storage devices Oct 11 21:11:28 defiant kernel: Vendor: LEXAR Model: DIGITAL FILM Rev: /W1. Oct 11 21:11:28 defiant kernel: Type: Direct-Access ANSI SCSI revision: 02 Oct 11 21:11:28 defiant kernel: SCSI device sdb: 251904 512-byte hdwr sectors (129 MB) Oct 11 21:11:28 defiant kernel: sdb: Write Protect is off Oct 11 21:11:28 defiant kernel: sdb: cache data unavailable Oct 11 21:11:28 defiant kernel: sdb:<7>usb-storage: queuecommand called Oct 11 21:11:28 defiant kernel: sdb1 Oct 11 21:11:28 defiant kernel: Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0 Oct 11 21:11:28 defiant kernel: Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0, type 0 Oct 11 21:11:28 defiant scsi.agent[1321]: how to add device type= at /devices/pci0000:00/0000:00:07.2/usb1/1-2/1-2.4/1-2.4.2/1-2.4.2:1.0/host1/1:0:0:0 ??
In article <20031012051107.GA1881@defiant>,
Norbert Kiesel <[email protected]> wrote:
| (sorry for the flashy subject, but I could not come up with another one | :-) | | Hi, I got problems with usb-storage and linux-2.6-test[67]. AFAICS, | test5 works fine (still have to retest to make sure). | | Problem is that inserting my USB flash memory disk makes /dev/sda (and | /dev/sda1) appear in /proc/partitions, but removing it does not remove | the entries from /proc/partitions. lilo is reading /proc/partitions | (verified trough strace) and dies because /dev/sda is gone. | | Possibly related to that is the next time I insert the flash disk, is | shows up as /dev/sdb1 (and adds this to /proc/partiotions, too).
I have seen similar behaviour with flash readers. I have CF and memstick readers, and after a photo session I'm likely to have a bunch of each to unload. If I do the CF first, the device is sda. Even changing media, still sda. But when I unplug and connect the memstick reader, that becomes sdb, and sda is shown as missing in action.
I didn't report it because I lack time to characterize it properly and I can live with it. But since you report the problem, I'll throw this info out in case it helps someone else understand exactly what's happening.
I *believe* I first saw it in test4, I haven't been running 2.6 kernels lately on that machine, so I can't say if it's still an issue.
Signature · 3 lines
bill davidsen <[email protected]> CTO, TMR Associates, Inc Doing interesting things with little computers since 1979.