From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Dharm Date: Thu, 21 Oct 2004 08:05:59 +0000 Subject: Re: do not disconnect Message-Id: <20041021080559.GA2357@one-eyed-alien.net> MIME-Version: 1 Content-Type: multipart/mixed; boundary="0F1p//8PRICkK4MW" List-Id: References: <1097995104.3180.18.camel@rivendell.home.local> In-Reply-To: <1097995104.3180.18.camel@rivendell.home.local> To: linux-hotplug@vger.kernel.org --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 umo= unt > > > it. > > >=20 > > > It looks like it gets attached to the SCSI subsystem somehow: > > >=20 > > > So, how can i kick it out? Is there a way to tell the 1394 bus to det= ach > > > this node, or?... > >=20 > > You may try "eject". >=20 > 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. >=20 > I'm open to suggestions. >=20 > Some dmesg output: >=20 > sda: Spinning up > disk.....................................................................= ...........not responding... > sda : READ CAPACITY failed. > sda : status=3D1, message=3D00, host=3D0, driver=3D08 > 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 --=20 Matthew Dharm Home: mdharm-usb@one-eyed-alien.= net=20 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 --0F1p//8PRICkK4MW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBd23nIjReC7bSPZARAvyjAKCiioDctOMZdEOUzXBxO/J9dr8e/gCfeZ9b RWnbGxB3R46s2b2I3hfwtPA= =gk5T -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW-- ------------------------------------------------------- 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