From owner-freebsd-usb@FreeBSD.ORG Sun May 29 17:15:18 2011 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 404F4106564A for ; Sun, 29 May 2011 17:15:18 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 8DB088FC0C for ; Sun, 29 May 2011 17:15:16 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=PvOwS0pD1JWuCk2fMyCiv7x8TRi/oBifOus6FmFACNc= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=yUhmhmwYHtkA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=pGLkceISAAAA:8 a=ZB5LerlCAAAA:8 a=6I5d2MoRAAAA:8 a=LDFoPj9JVhm876QIXScA:9 a=w29AcMPwINq_yB8kPkEA:7 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=Nuq3ByQcxgxoZltA:21 a=YnoduxtkD0z-rUip:21 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 133322295; Sun, 29 May 2011 19:15:14 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, utisoft@gmail.com Date: Sun, 29 May 2011 19:13:55 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq,NwSZ4V" =?iso-8859-1?q?=7CLR=2E+tj=7Dg5=0A=09=25V?=,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( =?iso-8859-1?q?=0A=09=3AAuzV9=3A=2EhESm-x4h240C=609=3Dw?= MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105291913.55786.hselasky@c2i.net> Cc: Subject: Re: USB hard drive g_vfs_done() error=5 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: Sun, 29 May 2011 17:15:18 -0000 On Sunday 29 May 2011 16:56:50 Chris Rees wrote: > On 29 May 2011 15:52, Chris Rees wrote: > > Hi all, > > > > I'm afraid I've also got the infamous error 5 problem on my Macbook. > > > > USB hard drive seems to work fine as it's newfs'd a couple of times, > > but after a little while (using USB hard drive as backup destination > > with rsync) it gives me these: > > > > [crees@zeus]~% dmesg |tail > > g_vfs_done():da0s1[WRITE(offset=41748480, length=2048)]error = 5 > > g_vfs_done():da0s1[WRITE(offset=41750528, length=2048)]error = 5 > > g_vfs_done():da0s1[WRITE(offset=41752576, length=2048)]error = 5 > > g_vfs_done():da0s1[WRITE(offset=41754624, length=2048)]error = 5 > > g_vfs_done():da0s1[WRITE(offset=41756672, length=2048)]error = 5 > > g_vfs_done():da0s1[WRITE(offset=41758720, length=2048)]error = 5 > > g_vfs_done():da0s1[WRITE(offset=41760768, length=2048)]error = 5 > > g_vfs_done():da0s1[WRITE(offset=41762816, length=12288)]error = 5 > > g_vfs_done():da0s1[WRITE(offset=41775104, length=2048)]error = 5 > > g_vfs_done():da0s1[WRITE(offset=41777152, length=2048)]error = 5 > > > > Unfortunately I can't seem to stop it doing this, and every time I've > > just unplugged the drive in the past the system panics... I'd really > > rather avoid that since it's my main server. > > > > [crees@zeus]~% uname -a > > FreeBSD zeus.bayofrum.net 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #0: > > Sat Apr 30 15:09:06 BST 2011 > > root@zeus.bayofrum.net:/usr/obj/usr/src/sys/ZEUS i386 > > > > Kernel config file is at [1]. > > > > I've tried the patch from [2], and this stops the AutoSense failed > > messages I used to get, but not these. > > > > Perhaps oddly related, when these messages start tab-completion in > > tcsh sometimes hangs -- even for unrelated directories such as % ls > > /roo^VTAB causes a hang. > > > > Any ideas/patches/information I've missed? The drive works perfectly > > in 'Windows', and I also tried it on my Ubuntu netbook. > > > > Chris > > > > > > [1] http://www.bayofrum.net/~crees/ZEUS (diff to GENERIC at > > http://www.bayofrum.net/~crees/ZEUS.diff) > > [2] http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/150401 > > Sorry to reply to my own post. > > I should clarify that I have only tried enabling some USB quirks > _after_ the problem has started, but my main problem is now that the > disk is 'stuck' in the computer. > > Is there a trick to removing that drive now without causing a panic? > > I've tried umount -f (hangs, but now mount doesn't show it mounted, > although newfs can't open for writing), followed by camcontrol eject > da0 (fails). Hi, Does your device have sufficient power? --HPS