From owner-freebsd-stable@FreeBSD.ORG Thu Aug 16 15:18:38 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 92C9E16A417 for ; Thu, 16 Aug 2007 15:18:38 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id F03AA13C45A for ; Thu, 16 Aug 2007 15:18:36 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with SMTP id BAA09314; Fri, 17 Aug 2007 01:18:17 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Fri, 17 Aug 2007 01:18:16 +1000 (EST) From: Ian Smith To: Oliver Fromme In-Reply-To: <200708161437.l7GEb2KV006533@lurza.secnetix.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-stable@freebsd.org Subject: Re: panic after removing usb flash disk 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, 16 Aug 2007 15:18:38 -0000 On Thu, 16 Aug 2007, Oliver Fromme wrote: > Roman Bogorodskiy wrote: > > Artem Kuchin wrote: > > > [FreeBSD crashes when a mounted device disappears] > > > > It's not a bug, it's a feature. > > I certainly wouldn't call it a feature. As others have > noted, it is a known shortcoming in FreeBSD, and fixing > it is non-trivial. > > Always remember to umount devices before removing them. And don't ever allow a laptop with mounted (uhci, at least) USB device to suspend; daX won't be accessible when it resumes, and not unloading then reloading usb in rc.{suspend,resume} fails too. umount panics. > Using amd(8) with a short timeout can help somewhat. Will try next time; it might help with the suspend/resume issue if it's been auto-unmounted, especially for idle timeout suspension. Thanks, Ian