From owner-freebsd-usb@FreeBSD.ORG Fri Jul 10 13:41:38 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B24AF106564A; Fri, 10 Jul 2009 13:41:38 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swip.net [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id 197B88FC1D; Fri, 10 Jul 2009 13:41:37 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=W4yUWwPuJRMA:10 a=gg2W7PyvkLb8p4ie143lBA==:17 a=6I5d2MoRAAAA:8 a=CoTBo_Zjxy5KCONG29UA:9 a=w2JCi8v50dWtrkD0lxoA:7 a=SV94tEyFvL4lw_EyKiQKwkPS-NsA:4 a=SV7veod9ZcQA:10 Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1106224194; Fri, 10 Jul 2009 15:41:36 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, freebsd-current@freebsd.org Date: Fri, 10 Jul 2009 15:41:15 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA1; KDE/4.2.4; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907101541.16698.hselasky@c2i.net> Cc: Alexander Best Subject: Re: detaching usb device without unmounting it X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jul 2009 13:41:39 -0000 This is not an USB issue. Try -current. --HPS On Friday 10 July 2009 11:05:48 Alexander Best wrote: > since the usb2 stack allows one to detach a mounted usb device without the > kernel panic'ing i'd like to know which steps are necessary to be taken > after detaching a device? because i tried the following: > > 1. attach device > 2. mount device > 3. detach device > > when i tried to unmount the device i got the follwing error message: > > g_vfs_done():label/usb[WRITE(offset=19456, length=4096)]error = 6 > > and the console got locked up (ctr+c didn't work). so i tried to reboot > using ctrl+alt+del. however after the message: "All buffers synced" there > was no reboot. so i had to do a hard reset. however after the reset freebsd > fsck'ed my harddrives. so they didn't unmount properly. > > should i have used `umount -f`? or just plug the device back in again? or > isn't it possible to unmount a device that has already been detached? > > i'm running r195476 btw. > > alex > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"