From owner-freebsd-questions@FreeBSD.ORG Thu May 8 16:27:15 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2ABF37B404 for ; Thu, 8 May 2003 16:27:15 -0700 (PDT) Received: from dynamic.hydro.washington.edu (dynamic.hydro.washington.edu [128.95.246.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id D305243F75 for ; Thu, 8 May 2003 16:27:14 -0700 (PDT) (envelope-from penglish@hydro.washington.edu) Received: from dynamic.hydro.washington.edu (localhost [127.0.0.1]) h48NR6TP030539; Thu, 8 May 2003 16:27:06 -0700 (PDT) (envelope-from penglish@hydro.washington.edu) Received: from localhost (penglish@localhost)h48NR656030536; Thu, 8 May 2003 16:27:06 -0700 (PDT) (envelope-from penglish@hydro.washington.edu) X-Authentication-Warning: dynamic.hydro.washington.edu: penglish owned process doing -bs Date: Thu, 8 May 2003 16:27:06 -0700 (PDT) From: Paul English To: "Pietralla, Siegfried P" In-Reply-To: <16649A8D5C73D51183B80008C728EEB7CC0CCC@AUSYM103> Message-ID: <20030508162459.A29407-100000@dynamic.hydro.washington.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: RE: Back/restore with dd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2003 23:27:16 -0000 On Thu, 8 May 2003, Pietralla, Siegfried P wrote: > paul, > > i've noticed the same thing. i was trying to duplicate my installation from > ad0s1 to ad0s2 by copying each partition and had the same problem. i worked > around this by using 'of=/dev/ad0' and VERY careful use of the 'seek' > parameter ( e.g. " dd if=/dev/ad0 count=10 skip=nnnnn | od -c > /tmp/001 " > and match this with " dd if=/dev/ad0s1e count=10 | od -c > /tmp/002 " using > " sdiff /tmp/001 /tmp/002 " to validate the value for seek ). > > is there someone out there who knows how we can do this? fwiw, i think it > used to work previously ( v 2.2.8 ? ) but it fails at 4.6 ( ? ) . i'm > running 4.8 now so i'll give it another go on the weekend. Hmm.. I did now get it to work, and unfortunately I can't remember how I did it exactly. I believe it was along the lines of taking the output from the original disklabel (which I had printed out) and creating a disklabel file from it, then using that to install a new disklabel. This created the device with the exact same parameters, then dd if=ad1s2e of=/dev/ad1s2e worked perfectly (ad1s2e was the flat file dd copy of the original device using dd if=/dev/ad1s2e of=ad1s2e). Paul