Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jul 2007 23:22:31 +1000
From:      Norberto Meijome <freebsd@meijome.net>
To:        Stefan Esser <se@FreeBSD.org>
Cc:        "\[LoN\]Kamikaze" <LoN_Kamikaze@gmx.de>, freebsd-stable@freebsd.org, baldur@foo.is
Subject:   Re: removing external usb hdd without unmounting causes reboot?
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 21 Jul 2007 17:19:51 +0200
Stefan Esser <se@FreeBSD.org> wrote:

> Norberto Meijome schrieb:
> > On Thu, 19 Jul 2007 17:38:14 +0200
> > "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070722232231.1e2749b1>