From owner-freebsd-questions@FreeBSD.ORG Wed May 7 19:37:50 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 8907E37B401 for ; Wed, 7 May 2003 19:37:50 -0700 (PDT) Received: from ns5.eds.com (ns5.eds.com [207.169.189.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id C026043FBF for ; Wed, 7 May 2003 19:37:46 -0700 (PDT) (envelope-from siegfried.pietralla@eds.com) Received: from nnsy.eds.com (nnsy.eds.com [192.85.216.78]) by ns5.eds.com (8.11.6p2/8.11.1) with ESMTP id h482bbO25472; Thu, 8 May 2003 12:37:37 +1000 (EST) Received: from nnsy.eds.com (localhost [127.0.0.1]) by nnsy.eds.com (8.11.6p2/8.11.6) with ESMTP id h482bXh19047; Thu, 8 May 2003 12:37:34 +1000 (EST) Received: from ausym000.exau01.exch.eds.com ([134.251.177.117]) by nnsy.eds.com (8.11.6p2/8.11.6) with ESMTP id h482bW619024; Thu, 8 May 2003 12:37:32 +1000 (EST) Received: by ausym000.exau01.exch.eds.com with Internet Mail Service (5.5.2656.59) id <2Y7R2XXV>; Thu, 8 May 2003 12:37:31 +1000 Message-ID: <16649A8D5C73D51183B80008C728EEB7CC0CCC@AUSYM103> From: "Pietralla, Siegfried P" To: "'Paul English'" , freebsd-questions@freebsd.org Date: Thu, 8 May 2003 12:37:41 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="ISO-8859-1" 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 02:37:50 -0000 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. regards, siegfried. -----Original Message----- From: Paul English [mailto:penglish@hydro.washington.edu] Sent: Wednesday, 7 May 2003 3:30 To: freebsd-questions@freebsd.org Subject: Back/restore with dd So in the process of trying to recover my files, I made a backup copy of a partition using dd. I did: dd if=/dev/ad1s2e of=ad1s2e So I created a file, the size of the partition sitting on another disk area. Now I want to copy that back to another disk partition. I tried just using dd, but that didn't work: dd if=ad1s2e of=/dev/ad1s1e dd if=ad1s2e of=/dev/ad1s1e dd: /dev/ad1s1e: Read-only file system 2+0 records in 1+0 records out 512 bytes transferred in 0.026033 secs (19667 bytes/sec) I have created ad1s1e (which is a different physical disk) as a partition with the same block count as ad1s2e. I used /stand/sysinstall, so it should have had the same defaults for everything, correct? What am I missing? Why would it say read-only file system, and then proceed to transfer only a couple of bytes? Thanks, Paul _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"