From owner-freebsd-current@FreeBSD.ORG Mon Jan 12 16:11:17 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E18A16A4CE for ; Mon, 12 Jan 2004 16:11:17 -0800 (PST) Received: from postal2.es.net (proxy.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20AC143D39 for ; Mon, 12 Jan 2004 16:11:16 -0800 (PST) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465 for ; Mon, 12 Jan 2004 16:11:14 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id A72825D07 for ; Mon, 12 Jan 2004 16:11:14 -0800 (PST) To: current@freebsd.org Date: Mon, 12 Jan 2004 16:11:14 -0800 From: "Kevin Oberman" Message-Id: <20040113001114.A72825D07@ptavv.es.net> Subject: Serious dd breakage in current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2004 00:11:17 -0000 Today I bit the bullet and re-sized some partitions on my laptop's disk. One think I planned to do was copy the unchanged partitions from my backup disk to the primary with dd(1). This was a BAD idea and I suspect GEOM changes are at the root of it. I used fdisk to create new slices and then bsdlabel to make new partitions in ad0s2. Everything seemed to be fine. Then I ran dd to copy the root partition over: dd bs=32k if=/dev/ad2s3a of=/dev/ad0s2a For some reason it labeled the disk with the first partition starting at almost the end of the physical partition, over 30 million blocks into the slice. bsdlabel generated a stream of errors including that every partition extended past the physical partition. After that, I re-did it all using dump | restore and everything went fine, if a bit slower. I don't recall seeing any reports of this, but it was very unpleasant. Any ideas on what might be the culprit? -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634