linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* do not disconnect
@ 2004-10-17  6:38 Florin Andrei
  2004-10-17 11:06 ` Kay Sievers
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Florin Andrei @ 2004-10-17  6:38 UTC (permalink / raw)
  To: linux-hotplug

I keep my iPod hooked up to the computer via a 1394 cable, in order to
recharge the battery. Once i hook it up, the iPod displays the "Do Not
Disconnect" message.
However, the iPod is not mounted. So, how can i put it in the correct
state to disconnect it? If it was mounted, i think i could simply umount
it.

It looks like it gets attached to the SCSI subsystem somehow:

==========================
# dmesg
[...]
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[5] 
MMIO=[cff7b800-cff7bfff]  Max Packet=[2048]
ieee1394: Node added: ID:BUS[0-00:1023]  GUID[000a2700026b5718]
ieee1394: Host added: ID:BUS[0-01:1023]  GUID[00023c0091010e52]
SCSI subsystem initialized
sbp2: $Rev: 1219 $ Ben Collins <bcollins@debian.org>
scsi0 : SCSI emulation for IEEE-1394 SBP-2 Devices
[...]
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
  Vendor: Apple     Model: iPod              Rev: 1.51
  Type:   Direct-Access                      ANSI SCSI revision: 02
[...]
# cdrecord -scanbus
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg
Schilling
[...]
scsibus0:
        0,0,0     0) 'Apple   ' 'iPod            ' '1.51' Removable Disk
[...]
==========================

So, how can i kick it out? Is there a way to tell the 1394 bus to detach
this node, or?...

-- 
Florin Andrei

http://florin.myip.org/



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: do not disconnect
  2004-10-17  6:38 do not disconnect Florin Andrei
@ 2004-10-17 11:06 ` Kay Sievers
  2004-10-21  7:13 ` Florin Andrei
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2004-10-17 11:06 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Oct 16, 2004 at 11:38:24PM -0700, Florin Andrei wrote:
> I keep my iPod hooked up to the computer via a 1394 cable, in order to
> recharge the battery. Once i hook it up, the iPod displays the "Do Not
> Disconnect" message.
> However, the iPod is not mounted. So, how can i put it in the correct
> state to disconnect it? If it was mounted, i think i could simply umount
> it.
> 
> It looks like it gets attached to the SCSI subsystem somehow:
> 
> So, how can i kick it out? Is there a way to tell the 1394 bus to detach
> this node, or?...

You may try "eject".

Kay


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: do not disconnect
  2004-10-17  6:38 do not disconnect Florin Andrei
  2004-10-17 11:06 ` Kay Sievers
@ 2004-10-21  7:13 ` Florin Andrei
  2004-10-21  8:05 ` Matthew Dharm
  2004-10-21 13:09 ` Kay Sievers
  3 siblings, 0 replies; 5+ messages in thread
From: Florin Andrei @ 2004-10-21  7:13 UTC (permalink / raw)
  To: linux-hotplug

On Sun, 2004-10-17 at 04:06, Kay Sievers wrote:
> On Sat, Oct 16, 2004 at 11:38:24PM -0700, Florin Andrei wrote:
> > I keep my iPod hooked up to the computer via a 1394 cable, in order to
> > recharge the battery. Once i hook it up, the iPod displays the "Do Not
> > Disconnect" message.
> > However, the iPod is not mounted. So, how can i put it in the correct
> > state to disconnect it? If it was mounted, i think i could simply umount
> > it.
> > 
> > It looks like it gets attached to the SCSI subsystem somehow:
> > 
> > So, how can i kick it out? Is there a way to tell the 1394 bus to detach
> > this node, or?...
> 
> You may try "eject".

eject -s /dev/sda indeed turns the iPod into the "OK to disconnect"
state, but the command itself hangs and does not respond to CTRL-C. I
had to kill the xterm in order to kill eject.

I'm open to suggestions.

Some dmesg output:

sda: Spinning up
disk................................................................................not responding...
sda : READ CAPACITY failed.
sda : status=1, message\0, host=0, driver\b
Current sd: sense key Not Ready
Additional sense: Logical unit not ready, cause not reportable
sda: test WP failed, assume Write Enabled
sda: asking for cache data failed
sda: assuming drive cache: write through
 sda:<3>Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 3662189
Buffer I/O error on device sda, logical block 3662189
Buffer I/O error on device sda, logical block 0
 unable to read partition table

-- 
Florin Andrei

http://florin.myip.org/



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: do not disconnect
  2004-10-17  6:38 do not disconnect Florin Andrei
  2004-10-17 11:06 ` Kay Sievers
  2004-10-21  7:13 ` Florin Andrei
@ 2004-10-21  8:05 ` Matthew Dharm
  2004-10-21 13:09 ` Kay Sievers
  3 siblings, 0 replies; 5+ messages in thread
From: Matthew Dharm @ 2004-10-21  8:05 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 2320 bytes --]

On Thu, Oct 21, 2004 at 12:13:57AM -0700, Florin Andrei wrote:
> On Sun, 2004-10-17 at 04:06, Kay Sievers wrote:
> > On Sat, Oct 16, 2004 at 11:38:24PM -0700, Florin Andrei wrote:
> > > I keep my iPod hooked up to the computer via a 1394 cable, in order to
> > > recharge the battery. Once i hook it up, the iPod displays the "Do Not
> > > Disconnect" message.
> > > However, the iPod is not mounted. So, how can i put it in the correct
> > > state to disconnect it? If it was mounted, i think i could simply umount
> > > it.
> > > 
> > > It looks like it gets attached to the SCSI subsystem somehow:
> > > 
> > > So, how can i kick it out? Is there a way to tell the 1394 bus to detach
> > > this node, or?...
> > 
> > You may try "eject".
> 
> eject -s /dev/sda indeed turns the iPod into the "OK to disconnect"
> state, but the command itself hangs and does not respond to CTRL-C. I
> had to kill the xterm in order to kill eject.
> 
> I'm open to suggestions.
> 
> Some dmesg output:
> 
> sda: Spinning up
> disk................................................................................not responding...
> sda : READ CAPACITY failed.
> sda : status=1, message=00, host=0, driver=08
> Current sd: sense key Not Ready
> Additional sense: Logical unit not ready, cause not reportable
> sda: test WP failed, assume Write Enabled
> sda: asking for cache data failed
> sda: assuming drive cache: write through
>  sda:<3>Buffer I/O error on device sda, logical block 0
> Buffer I/O error on device sda, logical block 0
> Buffer I/O error on device sda, logical block 3662189
> Buffer I/O error on device sda, logical block 3662189
> Buffer I/O error on device sda, logical block 0
>  unable to read partition table

These messages happened _after_ you used the eject command?

This looks like SCSI is trying to revalidate the device immediately.  It
shouldn't do that -- it should only revalidate on the next open.  Or, at
least, that's what I think it used to do....

Matt

-- 
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.net 
Maintainer, Linux USB Mass Storage Driver

E:  You run this ship with Windows?!  YOU IDIOT!
L:  Give me a break, it came bundled with the computer!
					-- ESR and Lan Solaris
User Friendly, 12/8/1998

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: do not disconnect
  2004-10-17  6:38 do not disconnect Florin Andrei
                   ` (2 preceding siblings ...)
  2004-10-21  8:05 ` Matthew Dharm
@ 2004-10-21 13:09 ` Kay Sievers
  3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2004-10-21 13:09 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Oct 21, 2004 at 01:05:59AM -0700, Matthew Dharm wrote:
> On Thu, Oct 21, 2004 at 12:13:57AM -0700, Florin Andrei wrote:
> > On Sun, 2004-10-17 at 04:06, Kay Sievers wrote:
> > > On Sat, Oct 16, 2004 at 11:38:24PM -0700, Florin Andrei wrote:
> > > > I keep my iPod hooked up to the computer via a 1394 cable, in order to
> > > > recharge the battery. Once i hook it up, the iPod displays the "Do Not
> > > > Disconnect" message.
> > > > 
> > > > So, how can i kick it out? Is there a way to tell the 1394 bus to detach
> > > > this node, or?...
> > > 
> > > You may try "eject".
> > 
> > eject -s /dev/sda indeed turns the iPod into the "OK to disconnect"
> > state, but the command itself hangs and does not respond to CTRL-C. I
> > had to kill the xterm in order to kill eject.
> > 
> > Buffer I/O error on device sda, logical block 3662189
> > Buffer I/O error on device sda, logical block 0
> >  unable to read partition table
> 
> These messages happened _after_ you used the eject command?
> 
> This looks like SCSI is trying to revalidate the device immediately.  It
> shouldn't do that -- it should only revalidate on the next open.  Or, at
> least, that's what I think it used to do....

Good point.
Florin, please look if you have some daemon running, that opens the
device continiously. Something like an automounter or famd, which keeps
the device busy. Just try it again with everything suspicious shut down.

Thanks,
Kay



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-21 13:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-17  6:38 do not disconnect Florin Andrei
2004-10-17 11:06 ` Kay Sievers
2004-10-21  7:13 ` Florin Andrei
2004-10-21  8:05 ` Matthew Dharm
2004-10-21 13:09 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).