From owner-freebsd-usb@FreeBSD.ORG Mon Apr 27 10:26:01 2015 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 32696B35 for ; Mon, 27 Apr 2015 10:26:01 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E99181F17 for ; Mon, 27 Apr 2015 10:26:00 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CFF851FE023; Mon, 27 Apr 2015 12:25:51 +0200 (CEST) Message-ID: <553E0EE0.60701@selasky.org> Date: Mon, 27 Apr 2015 12:26:40 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: kott , freebsd-usb@freebsd.org Subject: Re: usb write error References: <1430118496759-6007874.post@n5.nabble.com> In-Reply-To: <1430118496759-6007874.post@n5.nabble.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 10:26:01 -0000 On 04/27/15 09:08, kott via freebsd-usb wrote: > Hello > I am using a fixed storage usb on my board, and see this errors Write,This > is a 2GB storage device, and on decoding the Write command the transfer > length shows as 00 01, would this be correct ? > > (da0:umass-sim0:0:0:0)WRITE(10). CDB: 2a 00 00 3b af ff 00 00 01 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 3b af ff 00 00 01 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > > ..Retries exhausted and comes out > > using FreeBSD 11, > Any idea why this error occurs? Appreciate suggestions > Hi, At SCSI level the length is number of blocks of 512 bytes typically. Maybe a write error. Can you DD that sector? Sector = 0x3bafff * 512 bytes; Size = 1 * 512 bytes; --HPS