From owner-freebsd-questions@FreeBSD.ORG Tue Sep 29 00:22:35 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15243106566C for ; Tue, 29 Sep 2009 00:22:35 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id C98D78FC14 for ; Tue, 29 Sep 2009 00:22:34 +0000 (UTC) Received: from r55.edvax.de (port-92-195-71-245.dynamic.qsc.de [92.195.71.245]) by mx01.qsc.de (Postfix) with ESMTP id 5BB8E3E457; Tue, 29 Sep 2009 02:22:33 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n8T0MVq1002682; Tue, 29 Sep 2009 02:22:31 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 29 Sep 2009 02:22:31 +0200 From: Polytropon To: krad Message-Id: <20090929022231.9a92783f.freebsd@edvax.de> In-Reply-To: References: <20090928011444.29110022@chris.makeworld.com> <20090928213703.ecf59a9d.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Chris , freebsd-questions@freebsd.org Subject: Re: Disk Cloning X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2009 00:22:35 -0000 On Tue, 29 Sep 2009 01:07:31 +0100, krad wrote: > If your going to do all the partitoning manually its not to much more work > to newfs them as well. Partitioning can be automated, as well as newfs, which does take only seconds on a TB-sized disk. If you want to avoid this, doing 1:1 copies with dd is always possible and will keep content identically; remember to copy the MBR separately with bs=512 and count=1 from the /dev/ad{source} device. If cloning is just a "do once" action, even partitioning the target disk manually is a matter of seconds. If you're going to to it many times, scripting should give a good solution to automate it. > You can then use rsync which is fast. If partitions do already exist, rsync is an excellent tool, too, I agree. Another tool that comes into mind is cpdup which works fine with locally available and NFS mounted drives. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...