From owner-freebsd-questions@FreeBSD.ORG Thu Jun 19 19:39:07 2008 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 34F001065675 for ; Thu, 19 Jun 2008 19:39:07 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 9EAB38FC19 for ; Thu, 19 Jun 2008 19:39:06 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from [212.86.226.226] (account mav@alkar.net HELO [192.168.3.2]) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPA id 150829244; Thu, 19 Jun 2008 22:39:05 +0300 Message-ID: <485AB5D1.50004@FreeBSD.org> Date: Thu, 19 Jun 2008 22:38:57 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Brad Mettee References: <1213903395.00086544.1213891805@10.7.7.3> In-Reply-To: <1213903395.00086544.1213891805@10.7.7.3> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: clone a drive, no raid involved 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: Thu, 19 Jun 2008 19:39:07 -0000 Brad Mettee wrote: > I'm setting up a pair of machines with almost identical OS config, and > completely identical hardware. One is a primary DNS server, the other is > secondary. NS1 will also serve web, NS2 will be a mail server. Both are > low volume/loads. > > It looks like I can use DD to copy an entire drive, but it's a 500G > drive and that's going to take a really long time (especially since it's > brand new with no data besides base OS). > > My question: Is there a better way to duplicate a drive including boot > info? Partition second drive (I usually prefer sysinstall which also installs loaders), mount it and use dump/restore: cd /mnt dump -aLf - -C32 / | restore -rf - -- Alexander Motin