From owner-freebsd-questions Fri Mar 10 8:58:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by hub.freebsd.org (Postfix) with ESMTP id 3113037BA58 for ; Fri, 10 Mar 2000 08:58:30 -0800 (PST) (envelope-from oberman@ptavv.es.net) Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (8.9.3/8.8.8) with ESMTP id IAA31252 for ; Fri, 10 Mar 2000 08:58:26 -0800 (PST) Message-Id: <200003101658.IAA31252@ptavv.es.net> To: freebsd-questions@freebsd.org Subject: Cloning the root partition Date: Fri, 10 Mar 2000 08:58:26 -0800 From: "Kevin Oberman" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Warning: I'm probably doing something really dumb! I am trying to clone the root partition on my 3.4-Stable system and I don't seem to be able to get it to work. The 'a' partitions are the same size on both disks. Both start a block 0 of the slice and both are 102400 long. Running standalone I use the command: # dd bs=1024 if=/dev/rwd0s1a of=/dev/rwd1s1a I assumed using the raw devices would exactly clone the partition, including the file system. Perhaps I simply don't understand how things work. The man page was not too helpful. If the output partition is not mounted, I got an error that the output is read-only. If I mount the device, I got a message that the input device is busy. What combination of partition status and command syntax might work? Thanks, 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message