From owner-freebsd-usb@FreeBSD.ORG Sun Apr 20 13:44:33 2014 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CC11397B for ; Sun, 20 Apr 2014 13:44:33 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8F79D110A for ; Sun, 20 Apr 2014 13:44:33 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 6584B1FE029; Sun, 20 Apr 2014 15:44:32 +0200 (CEST) Message-ID: <5353CF78.1080406@selasky.org> Date: Sun, 20 Apr 2014 15:45:28 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Wes Morgan , freebsd-usb@freebsd.org Subject: Re: LBA Error on 128GB Flash Drive References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2014 13:44:33 -0000 On 04/20/14 12:54, Wes Morgan wrote: > I've got an ADATA 128gb USB3 flash drive ( > http://www.newegg.com/Product/Product.aspx?Item=N82E16820211819) that is > giving me LBA errors. It appears that the drive is being mis-identified and > reporting the wrong number of sectors. Camcontrol says the last block > is 246960127, which I believe to be correct because any attempt to write to > a block after that fails. However, the kernel thinks that the device > has 247484416 sectors and pretty much everything fails to use the device > properly because partition tables and filesystems like to store things at > the end of devices. This is the second one of these I've had and both have > the same error. My laptop is fairly old and USB2 only, but I've got some > newer machines with USB3 ports and they have the same problem. Attaching > the drive to a Linux machine reports the correct number of blocks. > > All my FreeBSD machines are running 10-stable. > > Camcontrol output: > [morganw@mercury:~$]: camcontrol readcap da0 > Last Block: 246960127, Block Length: 512 bytes Does the device have a bad disk label ? gpart show da0 vs diskinfo da0 --HPS