On Thu, 2006-12-28 at 11:30 -0800, Matthew Dharm wrote: > The whole "wait a few minutes" thing bothers me. I wonder if you have > something like hald running in the background which is causing the > problems. > > Can you repeat the test in single user mode? > > Matt
Hi Matt, This was done in single-user mode. Udev was running, but no hald. Cheers, Carlos > > On Wed, Dec 27, 2006 at 09:09:21PM -0500, Carlos Moffat wrote: > > On Wed, 2006-12-27 at 17:55 -0800, Matthew Dharm wrote: > > > Please clarify -- > > > > > > Are you saying that this sequence generates and error: > > > > > > 1) Attach iPod > > > 2) eject /dev/sda > > > > > > Whereas this one does NOT generate errors: > > > > > > 1) Attach iPod > > > 2) fdisk -l > > > 3) eject /dev/sda > > > > > > Matt > > > > > > > That's it. In either situation, though, if I eject right after attaching > > the ipod, eject works. If I wait a few minutes, the first situation > > generates an error. > > > > Cheers, > > Carlos > > > > > On Wed, Dec 27, 2006 at 08:07:28PM -0500, Carlos Moffat wrote: > > > > Hi, > > > > > > > > I'm seeing an strange problem when trying to eject my ipod. To try to > > > > isolate the problem, I've done the following in single-mode and with > > > > USB_STORAGE_DEBUG (dmesg attached). I couldn't figure out how to start > > > > the logging, so the attached is the latest output I got. > > > > > > > > Anyways, I'm trying to simply connect the iPod and then eject it, > > > > without even mounting it. When I connect it, it correctly shows up > > > > in /dev/sda1 and /dev/sda2 (the second being the important one). If I > > > > do: > > > > > > > > eject /dev/sda > > > > > > > > immediately, or within a minute or so, the iPod is ejected correctly (at > > > > least it thinks so :) ). If I wait a few minutes, a get 4 or so > > > > > > > > usb 4-4: reset high speed USB device using ehci_hcd and address 4 > > > > > > > > before > > > > > > > > sd 2:0:0:0: scsi: Device offlined - not ready after error recovery > > > > > > > > Now, if after waiting a few minutes, I don't do eject immediately but > > > > instead do 'fdisk -l' first, the iPod is ejected properly. > > > > > > > > Any ideas? > > > > Thanks, > > > > Carlos > > > > > > > usb-storage: queuecommand called > > > > usb-storage: *** thread awakened. > > > > usb-storage: Command TEST_UNIT_READY (6 bytes) > > > > usb-storage: 00 00 00 00 00 00 > > > > usb-storage: Bulk Command S 0x43425355 T 0x42 L 0 F 0 Trg 0 LUN 0 CL 6 > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes > > > > usb-storage: Status code 0; transferred 31/31 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk command transfer result=0 > > > > usb-storage: Attempting to get CSW... > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes > > > > usb-storage: Status code 0; transferred 13/13 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk status result = 0 > > > > usb-storage: Bulk Status S 0x53425355 T 0x42 R 0 Stat 0x0 > > > > usb-storage: scsi cmd done, result=0x0 > > > > usb-storage: *** thread sleeping. > > > > usb-storage: queuecommand called > > > > usb-storage: *** thread awakened. > > > > usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes) > > > > usb-storage: 1e 00 00 00 01 00 > > > > usb-storage: Bulk Command S 0x43425355 T 0x43 L 0 F 0 Trg 0 LUN 0 CL 6 > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes > > > > usb-storage: Status code 0; transferred 31/31 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk command transfer result=0 > > > > usb-storage: Attempting to get CSW... > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes > > > > usb-storage: Status code 0; transferred 13/13 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk status result = 0 > > > > usb-storage: Bulk Status S 0x53425355 T 0x43 R 0 Stat 0x0 > > > > usb-storage: scsi cmd done, result=0x0 > > > > usb-storage: *** thread sleeping. > > > > usb-storage: queuecommand called > > > > usb-storage: *** thread awakened. > > > > usb-storage: Command START_STOP (6 bytes) > > > > usb-storage: 1b 00 00 00 02 00 > > > > usb-storage: Bulk Command S 0x43425355 T 0x44 L 0 F 0 Trg 0 LUN 0 CL 6 > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes > > > > usb-storage: Status code 0; transferred 31/31 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk command transfer result=0 > > > > usb-storage: Attempting to get CSW... > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes > > > > usb-storage: Status code 0; transferred 13/13 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk status result = 0 > > > > usb-storage: Bulk Status S 0x53425355 T 0x44 R 0 Stat 0x1 > > > > usb-storage: -- transport indicates command failure > > > > usb-storage: Issuing auto-REQUEST_SENSE > > > > usb-storage: Bulk Command S 0x43425355 T 0x45 L 18 F 128 Trg 0 LUN 0 CL > > > > 6 > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes > > > > usb-storage: Status code 0; transferred 31/31 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk command transfer result=0 > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 18 bytes > > > > usb-storage: Status code 0; transferred 18/18 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk data transfer result 0x0 > > > > usb-storage: Attempting to get CSW... > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes > > > > usb-storage: Status code 0; transferred 13/13 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk status result = 0 > > > > usb-storage: Bulk Status S 0x53425355 T 0x45 R 0 Stat 0x0 > > > > usb-storage: -- Result from auto-sense is 0 > > > > usb-storage: -- code: 0xf0, key: 0x5, ASC: 0x53, ASCQ: 0x2 > > > > usb-storage: Illegal Request: Medium removal prevented > > > > usb-storage: scsi cmd done, result=0x2 > > > > usb-storage: *** thread sleeping. > > > > usb-storage: queuecommand called > > > > usb-storage: *** thread awakened. > > > > usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes) > > > > usb-storage: 1e 00 00 00 00 00 > > > > usb-storage: Bulk Command S 0x43425355 T 0x46 L 0 F 0 Trg 0 LUN 0 CL 6 > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes > > > > usb-storage: Status code 0; transferred 31/31 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk command transfer result=0 > > > > usb-storage: Attempting to get CSW... > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes > > > > usb-storage: Status code 0; transferred 13/13 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk status result = 0 > > > > usb-storage: Bulk Status S 0x53425355 T 0x46 R 0 Stat 0x0 > > > > usb-storage: scsi cmd done, result=0x0 > > > > usb-storage: *** thread sleeping. > > > > usb-storage: queuecommand called > > > > usb-storage: *** thread awakened. > > > > usb-storage: Command START_STOP (6 bytes) > > > > usb-storage: 1b 00 00 00 01 00 > > > > usb-storage: Bulk Command S 0x43425355 T 0x47 L 0 F 0 Trg 0 LUN 0 CL 6 > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes > > > > usb-storage: Status code 0; transferred 31/31 > > > > usb-storage: -- transfer complete > > > > usb-storage: Bulk command transfer result=0 > > > > usb-storage: Attempting to get CSW... > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes > > > > usb-storage: command_abort called > > > > usb-storage: usb_stor_stop_transport called > > > > usb-storage: -- cancelling URB > > > > usb-storage: Status code -104; transferred 0/13 > > > > usb-storage: -- transfer cancelled > > > > usb-storage: Bulk status result = 4 > > > > usb-storage: -- command was aborted > > > > usb-storage: storage_pre_reset > > > > usb 4-4: reset high speed USB device using ehci_hcd and address 4 > > > > usb-storage: storage_post_reset > > > > usb-storage: usb_reset_composite_device returns 0 > > > > usb-storage: scsi command aborted > > > > usb-storage: *** thread sleeping. > > > > usb-storage: queuecommand called > > > > usb-storage: *** thread awakened. > > > > usb-storage: Command TEST_UNIT_READY (6 bytes) > > > > usb-storage: 00 00 00 00 00 00 > > > > usb-storage: Bulk Command S 0x43425355 T 0x48 L 0 F 0 Trg 0 LUN 0 CL 6 > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes > > > > usb-storage: command_abort called > > > > usb-storage: usb_stor_stop_transport called > > > > usb-storage: -- cancelling URB > > > > usb-storage: Status code -104; transferred 0/31 > > > > usb-storage: -- transfer cancelled > > > > usb-storage: Bulk command transfer result=4 > > > > usb-storage: -- command was aborted > > > > usb-storage: storage_pre_reset > > > > usb 4-4: reset high speed USB device using ehci_hcd and address 4 > > > > usb-storage: storage_post_reset > > > > usb-storage: usb_reset_composite_device returns 0 > > > > usb-storage: scsi command aborted > > > > usb-storage: *** thread sleeping. > > > > usb-storage: device_reset called > > > > usb-storage: usb_stor_Bulk_reset called > > > > usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 > > > > len=0 > > > > usb-storage: Soft reset: clearing bulk-in endpoint halt > > > > usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=82 > > > > len=0 > > > > usb-storage: usb_stor_clear_halt: result = 0 > > > > usb-storage: Soft reset: clearing bulk-out endpoint halt > > > > usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=01 > > > > len=0 > > > > usb-storage: usb_stor_clear_halt: result = 0 > > > > usb-storage: Soft reset done > > > > usb-storage: queuecommand called > > > > usb-storage: *** thread awakened. > > > > usb-storage: Command TEST_UNIT_READY (6 bytes) > > > > usb-storage: 00 00 00 00 00 00 > > > > usb-storage: Bulk Command S 0x43425355 T 0x49 L 0 F 0 Trg 0 LUN 0 CL 6 > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes > > > > usb-storage: command_abort called > > > > usb-storage: usb_stor_stop_transport called > > > > usb-storage: -- cancelling URB > > > > usb-storage: Status code -104; transferred 0/31 > > > > usb-storage: -- transfer cancelled > > > > usb-storage: Bulk command transfer result=4 > > > > usb-storage: -- command was aborted > > > > usb-storage: storage_pre_reset > > > > usb 4-4: reset high speed USB device using ehci_hcd and address 4 > > > > usb-storage: storage_post_reset > > > > usb-storage: usb_reset_composite_device returns 0 > > > > usb-storage: scsi command aborted > > > > usb-storage: *** thread sleeping. > > > > usb-storage: bus_reset called > > > > usb-storage: storage_pre_reset > > > > usb 4-4: reset high speed USB device using ehci_hcd and address 4 > > > > usb-storage: storage_post_reset > > > > usb-storage: usb_reset_composite_device returns 0 > > > > usb-storage: queuecommand called > > > > usb-storage: *** thread awakened. > > > > usb-storage: Command TEST_UNIT_READY (6 bytes) > > > > usb-storage: 00 00 00 00 00 00 > > > > usb-storage: Bulk Command S 0x43425355 T 0x4a L 0 F 0 Trg 0 LUN 0 CL 6 > > > > usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes > > > > usb-storage: command_abort called > > > > usb-storage: usb_stor_stop_transport called > > > > usb-storage: -- cancelling URB > > > > usb-storage: Status code -104; transferred 0/31 > > > > usb-storage: -- transfer cancelled > > > > usb-storage: Bulk command transfer result=4 > > > > usb-storage: -- command was aborted > > > > usb-storage: storage_pre_reset > > > > usb 4-4: reset high speed USB device using ehci_hcd and address 4 > > > > usb-storage: storage_post_reset > > > > usb-storage: usb_reset_composite_device returns 0 > > > > usb-storage: scsi command aborted > > > > usb-storage: *** thread sleeping. > > > > sd 2:0:0:0: scsi: Device offlined - not ready after error recovery > > > > > > > ------------------------------------------------------------------------- > > > > Take Surveys. Earn Cash. Influence the Future of IT > > > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > > > your > > > > opinions on IT & business topics through brief surveys - and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > _______________________________________________ > > > > linux-usb-devel@lists.sourceforge.net > > > > To unsubscribe, use the last form field at: > > > > https://lists.sourceforge.net/lists/listinfo/linux-usb-devel > > > > > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel