On Mon, 2004-01-05 at 02:40, Andrew Wafula wrote: > I think I have found the problem. I did 'tail -f /var/log/messages' then I > plugged in the USB HDD. I got the following: Bear in mind that your entire USB bus will reset when you hotplug a device. Meaning that the USB drivers may be reloaded by the hotplug daemon. So you may suddenly see messages for every attached USB device and not specifically the one you just attached. Do you have any attach messages? # grep Attach /var/log/messages Jan 3 07:05:08 Daneel kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 Jan 3 07:05:08 Daneel kernel: Attached scsi disk sda at scsi1, channel 0, id 0, lun 0 Jan 3 07:05:08 Daneel kernel: Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0 Jan 3 07:05:08 Daneel kernel: Attached scsi removable disk sdc at scsi3, channel 0, id 0, lun 0 Jan 3 07:05:08 Daneel kernel: Attached scsi removable disk sdd at scsi5, channel 0, id 0, lun 0 Jan 3 07:05:08 Daneel kernel: Attached scsi generic sg4 at scsi4, channel 0, id 0, lun 0, type 6 Jan 3 07:05:34 Daneel kernel: Attached scsi removable disk sde at scsi2, channel 0, id 0, lun 1 Jan 3 07:05:34 Daneel kernel: Attached scsi removable disk sdf at scsi2, channel 0, id 0, lun 2 Jan 3 07:05:34 Daneel kernel: Attached scsi removable disk sdg at scsi2, channel 0, id 0, lun 3 > Jan 4 18:18:24 wert kernel: sda: Unit Not Ready, sense: > Jan 4 18:18:24 wert kernel: Current 00:00: sense key Not Ready > Jan 4 18:18:24 wert kernel: Additional sense indicates Medium not present > Jan 4 18:18:24 wert kernel: sda : READ CAPACITY failed. > Jan 4 18:18:24 wert kernel: sda : status = 1, message = 00, host = 0, > driver = 08 Do you have any other USB devices connected? That may not be your hard disk. Just for reference, my USB hard disk generates these messages when it is attached: Jan 3 07:05:08 Daneel kernel: Attached scsi disk sda at scsi1, channel 0, id 0, lun 0 Jan 3 07:05:08 Daneel kernel: SCSI device sda: 16992864 512-byte hdwr sectors (8700 MB) Jan 3 07:05:08 Daneel kernel: sda: sda1 My USB card readers and floppy drive periodically generate these messages until I insert media: Jan 3 07:05:08 Daneel kernel: sdb: Unit Not Ready, sense: Jan 3 07:05:08 Daneel kernel: Current 00:00: sense key Not Ready Jan 3 07:05:08 Daneel kernel: Additional sense indicates Medium not present Jan 3 07:05:08 Daneel kernel: sdb : READ CAPACITY failed. Jan 3 07:05:08 Daneel kernel: sdb : status = 1, message = 00, host = 0, driver = 08 Jan 3 07:05:08 Daneel kernel: Current sd00:00: sense key Not Ready Jan 3 07:05:08 Daneel kernel: Additional sense indicates Medium not present Jan 3 07:05:08 Daneel kernel: sdb : block size assumed to be 512 bytes, disk size 1GB. Jan 3 07:05:08 Daneel kernel: sdb: I/O error: dev 08:10, sector 0 Jan 3 07:05:08 Daneel kernel: I/O error: dev 08:10, sector 0 Jan 3 07:05:08 Daneel kernel: unable to read partition table > Jan 4 18:18:23 wert usb.agent[4454]: missing kernel or user mode driver > usb-storage I have that same entry in my messages but all of my USB devices work perfectly. I'm not really sure what it means. It may or may not be relevant. > After that everything bombs out. Interestingly, it works when I use a 128MB > flash disk which uses the same usb-storage driver. Did you try what I suggested in the previous email? The USB storage device information will tell you exactly which storage devices are attached and working: $ grep Product /proc/scsi/usb-storage-*/* /proc/scsi/usb-storage-0/0: Product: USB 2.0 Storage Device /proc/scsi/usb-storage-1/1: Product: USB 2.0 Storage Device /proc/scsi/usb-storage-2/2: Product: USB Storage Device /proc/scsi/usb-storage-3/3: Product: USB FDC GOLD-1.30 /proc/scsi/usb-storage-4/5: Product: ImageMate CompactFlash USB Also, usbview will highlight entries in red if a device driver is missing. -- David Norris http://www.webaugur.com/dave/ ICQ - 412039
Attachment:
signature.asc
Description: This is a digitally signed message part