From owner-freebsd-questions@FreeBSD.ORG Tue May 6 10:30:30 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 4C61A37B401 for ; Tue, 6 May 2003 10:30:30 -0700 (PDT) Received: from dynamic.hydro.washington.edu (dynamic.hydro.washington.edu [128.95.246.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6834943F93 for ; Tue, 6 May 2003 10:30:29 -0700 (PDT) (envelope-from penglish@hydro.washington.edu) Received: from dynamic.hydro.washington.edu (localhost [127.0.0.1]) h46HUMTP019448 for ; Tue, 6 May 2003 10:30:22 -0700 (PDT) (envelope-from penglish@hydro.washington.edu) Received: from localhost (penglish@localhost)h46HUMpE019445 for ; Tue, 6 May 2003 10:30:22 -0700 (PDT) (envelope-from penglish@hydro.washington.edu) X-Authentication-Warning: dynamic.hydro.washington.edu: penglish owned process doing -bs Date: Tue, 6 May 2003 10:30:22 -0700 (PDT) From: Paul English To: freebsd-questions@freebsd.org Message-ID: <20030506102653.E19184-100000@dynamic.hydro.washington.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: 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: Tue, 06 May 2003 17:30:30 -0000 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