From owner-freebsd-stable@FreeBSD.ORG Wed Jul 18 15:21:27 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 A439216A404 for ; Wed, 18 Jul 2007 15:21:27 +0000 (UTC) (envelope-from baldur@foo.is) Received: from gremlin.foo.is (gremlin.foo.is [194.105.250.10]) by mx1.freebsd.org (Postfix) with ESMTP id 5ED8613C4A3 for ; Wed, 18 Jul 2007 15:21:27 +0000 (UTC) (envelope-from baldur@foo.is) Received: from 127.0.0.1 (localhost.foo.is [127.0.0.1]) by injector.foo.is (Postfix) with SMTP id 99A59DA851 for ; Wed, 18 Jul 2007 14:59:57 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on gremlin.foo.is X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.7 Received: by gremlin.foo.is (Postfix, from userid 1000) id 14102DA843; Wed, 18 Jul 2007 14:59:54 +0000 (GMT) Date: Wed, 18 Jul 2007 14:59:54 +0000 From: Baldur Gislason To: freebsd-stable@freebsd.org Message-ID: <20070718145954.GX36311@gremlin.foo.is> References: <200707181142.27240.idiotbg@gmail.com> <200707180839.50113.josh@tcbug.org> In-Reply-To: <200707180839.50113.josh@tcbug.org> User-Agent: Mutt/1.4.2.2i X-Sanitizer: Foo MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline 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: Wed, 18 Jul 2007 15:21:27 -0000 I vaguely remember being able to yank out USB drives in 5.x and just make usbd execute a forced umount without any problems. FAT32 drives mind you. On 6.2 I haven't even been able to unplug a USB drive even if I unmount it first, always results in a kernel panic. Baldur On Wed, Jul 18, 2007 at 08:39:46AM -0500, Josh Paetzel wrote: > On Wednesday 18 July 2007, Momchil Ivanov wrote: > > Hi, > > > > I am running FreeBSD 6.2-STABLE #11: Sat Jul 14 16:27:12 CEST 2007 > > and accidently unplugged the USB hub to which my external hdd > > together with a mouse were connected and this caused my machine to > > freeze for some seconds and then reboot. At that moment the hdd was > > mounted and I was playing music out of it. > > After that I tried to reproduce it :) so just plugged only the hdd > > directly, mounted it and started playing music files from it. When > > I unplugged the USB cable the same thing happened: short freeze, > > and then reboot. Is this expected behaviour? And is there some way > > to avoid the freeze and reboot? > > > > Thanks. > > 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) > > -- > Thanks, > > Josh Paetzel