From owner-freebsd-stable@FreeBSD.ORG Sun Jul 22 13:22:37 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9305D16A420 for ; Sun, 22 Jul 2007 13:22:37 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id 5A5CB13C48D for ; Sun, 22 Jul 2007 13:22:37 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 20686 invoked from network); 22 Jul 2007 08:22:36 -0500 Received: from 203-206-233-219.dyn.iinet.net.au (HELO localhost) (203.206.233.219) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 22 Jul 2007 08:22:36 -0500 Date: Sun, 22 Jul 2007 23:22:31 +1000 From: Norberto Meijome To: Stefan Esser Message-ID: <20070722232231.1e2749b1@localhost> In-Reply-To: <46A22417.6030204@FreeBSD.org> References: <200707181142.27240.idiotbg@gmail.com> <200707180839.50113.josh@tcbug.org> <20070718145954.GX36311@gremlin.foo.is> <20070719.084336.-749249732.imp@bsdimp.com> <469F8566.7030905@gmx.de> <20070721110000.5dbf45b2@localhost> <46A22417.6030204@FreeBSD.org> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "\[LoN\]Kamikaze" , freebsd-stable@freebsd.org, baldur@foo.is Subject: Re: removing external usb hdd without unmounting causes reboot? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jul 2007 13:22:37 -0000 On Sat, 21 Jul 2007 17:19:51 +0200 Stefan Esser wrote: > Norberto Meijome schrieb: > > On Thu, 19 Jul 2007 17:38:14 +0200 > > "[LoN]Kamikaze" wrote: > > > >> As I mentioned earlier I remember it working during the 5.3 era on Stable, at > >> some point it worked. I even remember removing my CD-Rom drive from my Thinkpad > >> without running atacontrol detach. The system just took it and the drive just > >> continued working after I put it back in. > > > > on 6.2-STABLE (of a few days ago), i have this happening a couple of times with no adverse effect at all. > > Burn DVD/Cd, when finished, hald detects the disk, mounts it, /dev/cd0 in /media/whatever. > > > > i can eject the disk just fine (which in itself is weird, i think).... the device is still there... > > umount /dev/cd0 > > > > works fine and off it goes. other than that, no, i havent tried to access the device in question > > In that case the device has been mounted R/O before, and if > you don't remove it in the middle of a transaction, there > is nothing the kernel might want to do with the physical > device to unmount it (and even within a transfer, this ought > to be caught by the driver). For that reason I had suggested > to have a soft-R/O mode for removable devices, which together > with a very short flush delay might allow such a device to > be mounted R/O "nearly all the time" (tm) ;-) This is not > a perfect solution, but it is similar to the way USB sticks > are used with Windows/XP: Wait a second or two and remove it. > While not perfect this covers the case of MP3 players or > digicams that are mounted as USB storage devices, and many > other cases. To make this a perfect solution is much harder, > but even a simple implementation would be a big step forward. Yes, I agree it would be a good interim solution. thx! _________________________ {Beto|Norberto|Numard} Meijome "It is a lesson which all history teaches wise men, to put trust in ideas, and not in circumstances." Emerson I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.