From owner-freebsd-questions@FreeBSD.ORG Tue Sep 29 00:39:20 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 B00D11065670 for ; Tue, 29 Sep 2009 00:39:20 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by mx1.freebsd.org (Postfix) with ESMTP id 30F7A8FC0C for ; Tue, 29 Sep 2009 00:39:19 +0000 (UTC) Received: by bwz27 with SMTP id 27so3567599bwz.43 for ; Mon, 28 Sep 2009 17:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=XTYPlEaIRLBrcrQSIyV42szOd/K9Yw8xtLsdMtlTV0w=; b=H0+PBGpL7QnuHdp2ivO+lM0hfhWxZ/3XtWc+58HsxUoCcOooCffG2FYZrHJRTKdxHG hlf2Z24t455kIcmzcNpNE2/ciDICD+C9lPgpuYptyfYg2RULtXV3ERutxi0F7XM2ASfc 6wSooSIVBr0KNTUiOTk2/q37fVHI0wagvVygg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=s8Bsl2YjtB734MfTJRYsg230Xkdsj7TEmeWxcFu3clH1xi8O45UhIesArxliw3EfnB 0eK/f7a9A1Fwc5zOtRP91U2KJBl+kBvs80FK3s8meU31Xmf7OaYeO/67AcrPVPFc81+j 98d670sSW81pUJk/Xtzb3nynLgaHpXnFnJla0= MIME-Version: 1.0 Received: by 10.239.145.136 with SMTP id s8mr329969hba.46.1254184758855; Mon, 28 Sep 2009 17:39:18 -0700 (PDT) In-Reply-To: <20090929022231.9a92783f.freebsd@edvax.de> References: <20090928011444.29110022@chris.makeworld.com> <20090928213703.ecf59a9d.freebsd@edvax.de> <20090929022231.9a92783f.freebsd@edvax.de> Date: Tue, 29 Sep 2009 01:39:18 +0100 Message-ID: From: krad To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Chris , freebsd-questions@freebsd.org Subject: Re: Disk Cloning X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2009 00:39:20 -0000 2009/9/29 Polytropon > 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, ... > On a side note. Anyone building new systems manually from the shell I would recommend using GPT labels if you can. Apart from not having the 8 fs limit (128 iirc) gpart is a dam sight nicer to use than bsdlabel, and scripting it is a doddle. Especially the gpart from 8.0 as its a bit less clunky than the one in 7.x at the moment