From owner-freebsd-usb@FreeBSD.ORG Sat Sep 8 18:02:06 2012 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 6D8C8106564A for ; Sat, 8 Sep 2012 18:02:06 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id 14A228FC12 for ; Sat, 8 Sep 2012 18:02:06 +0000 (UTC) Received: (qmail 28197 invoked by uid 0); 8 Sep 2012 18:02:05 -0000 Received: from 67.206.186.149 by rms-us004 with HTTP Content-Type: text/plain; charset="utf-8" Date: Sat, 08 Sep 2012 14:02:03 -0400 From: "Dieter BSD" Message-ID: <20120908180204.165830@gmx.com> MIME-Version: 1.0 To: freebsd-usb@freebsd.org X-Authenticated: #74169980 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: S+05cKMh3zOlNR3dAHAhDRx+IGRvb0Ae Subject: Re: Disks are 1 sector smaller with USB bridge 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: Sat, 08 Sep 2012 18:02:06 -0000 [ ml didn't get cc-ed ] > ----- Original Message ----- > From: Dieter BSD > Sent: 09/07/12 11:28 AM > To: Warner Losh > Subject: Re: Disks are 1 sector smaller with USB bridge > > > ----- Original Message ----- > > From: Warner Losh > > Sent: 09/06/12 08:27 PM > > To: Dieter BSD > > Subject: Re: Disks are 1 sector smaller with USB bridge > > > > On Sep 6, 2012, at 12:41 PM, Dieter BSD wrote: > > > FreeBSD reports that disks are 1 sector smaller when connected via > > > a usb-to-sata bridge than when connected to a sata controller. > > > This creates a problem when migrating a disk from a sata controller > > > to a usb bridge, the data in the last sector is no longer accessable. > > > > > > How do I access the disk's last sector when connected via usb? > > > > Which version? I fixed this exact bug years ago, I thought... > > > > Warner > > FreeBSD 8.2 amd64 > Disk is recent Seagate 3TB external, the bridge provides 4KiB > sectors, but I recall seeing the same off-by-one problem > with an older bridge with 512 byte sectors. (Don't recall offhand > what version of FreeBSD I was running at the time.) > If it matters, bridge is usb3 but host is only usb2.