From owner-freebsd-stable@FreeBSD.ORG Thu Jul 19 15:01:18 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB90616A400 for ; Thu, 19 Jul 2007 15:01:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A94CE13C4A5 for ; Thu, 19 Jul 2007 15:01:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6JF0Ic1085449; Thu, 19 Jul 2007 09:00:18 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 19 Jul 2007 09:00:24 -0600 (MDT) Message-Id: <20070719.090024.-1548242272.imp@bsdimp.com> To: LoN_Kamikaze@gmx.de From: "M. Warner Losh" In-Reply-To: <469F0B93.9020409@gmx.de> References: <200707181541.l6IFf4ht051775@lurza.secnetix.de> <469F0B93.9020409@gmx.de> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 19 Jul 2007 09:00:18 -0600 (MDT) Cc: josh@tcbug.org, freebsd-stable@freebsd.org, idiotbg@gmail.com 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: Thu, 19 Jul 2007 15:01:19 -0000 In message: <469F0B93.9020409@gmx.de> "[LoN]Kamikaze" writes: : Oliver Fromme wrote: : > Momchil Ivanov wrote: : > > On Wednesday 18 July 2007 15:52:42 [LoN]Kamikaze wrote: : > > > Josh Paetzel wrote: : > > > > Yes, it's expected behavior. The workaround is to not unplug mounted : > > > > devices. (There's nothing special about USB here, if you unplugged an : > > > > IDE drive you'd get the same behavior) : > > > : > > > Wouldn't it make some sense not to panic if mounted devices that are in : > > > sync get removed? A few applications might get in trouble, but that's : > > > hardly a reason to bring a whole system down. : > > : > > I don`t know how things work, but shutting down the system when some : > > mounted fs is no longer present seems like the wrong thing to me. : > : > As Josh wrote, it's expected. The problem is known : > to exist for a long time already (probably as long : > as FreeBSD itself exists), and if there was an easy : > solution, certainly someone would have fixed it. : : I remember on 5.3 I removed a mounted USB stick. The system did not panic, all : I had to do was to plug the stick back in to be able to unmount it. So the : behaviour has been more tolerant, in the past. I'm pretty sure that 5.3 panics when you do this. At least my 5.3 machine at work did last time I tried it, which was just last week. Warner