From owner-freebsd-usb@FreeBSD.ORG Sat Nov 20 00:43:04 2010 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 2F2F1106564A for ; Sat, 20 Nov 2010 00:43:04 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id DF84C8FC13 for ; Sat, 20 Nov 2010 00:43:03 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id oAK0gvfm097017; Fri, 19 Nov 2010 17:42:57 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id oAK0gvQ0097014; Fri, 19 Nov 2010 17:42:57 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Fri, 19 Nov 2010 17:42:57 -0700 (MST) From: Warren Block To: Matthias Apitz In-Reply-To: <20101119204639.GA1521@tiny.Sisis.de> Message-ID: References: <20101119143337.GA3023@current.Sisis.de> <201011191821.09308.hselasky@c2i.net> <20101119173519.GA3933@current.Sisis.de> <201011191916.53655.hselasky@c2i.net> <20101119183900.GA1221@tiny.Sisis.de> <20101119204639.GA1521@tiny.Sisis.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Fri, 19 Nov 2010 17:42:58 -0700 (MST) Cc: freebsd-usb@freebsd.org Subject: Re: copying /dev/da0 with dd(1) to file: output differs 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, 20 Nov 2010 00:43:04 -0000 On Fri, 19 Nov 2010, Matthias Apitz wrote: > El d?a Friday, November 19, 2010 a las 12:39:13PM -0700, Warren Block escribi?: > >>> Should I overwrite the full USB key from /dev/zero? >> >> Possibly there would still be differences. Filesystem metadata like >> date last mounted, for example. If you want a block-by-block duplicate, >> the brute-force method is to just dd the whole drive. Use bs=64k or >> bs=1m to help reduce overhead. > > Warren, perhaps you missed my point. I have a prepared boot-able key and > I want to give away a copy of it as a file on DVD. So I dd(1)'ed the key > to disk and did this twice to ensure that the copy was fine, but the two > files differ. How can I make sure that the file on disk (or DVD) is a > exact copy of the key? Okay, that makes more sense. Did you mount the key in between the two times it was dd-ed?