From owner-freebsd-questions@FreeBSD.ORG Thu Feb 9 21:24:22 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 79A5E16A420 for ; Thu, 9 Feb 2006 21:24:22 +0000 (GMT) (envelope-from mj001@rogers.com) Received: from smtp108.rog.mail.re2.yahoo.com (smtp108.rog.mail.re2.yahoo.com [68.142.225.206]) by mx1.FreeBSD.org (Postfix) with SMTP id BCC8B43D49 for ; Thu, 9 Feb 2006 21:24:21 +0000 (GMT) (envelope-from mj001@rogers.com) Received: (qmail 47583 invoked from network); 9 Feb 2006 21:24:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=ReqqgDM1FazpmsDaZ5EXQFu/cSOO7Tpyhi8+3wmE/MKYLS278/m66j7F0TD37DWzloOZmpY3gYenc7W8+QBQIBqDa1G/xBwnrs3Psn4pysOr9cpcjof7X7jxTzaU0fP5mtqV4+LIfDIkr4HFOPdy0OQWCoEiE8b+2cwqvkucgPE= ; Received: from unknown (HELO chaucer.jeays.ca) (mj001@rogers.com@72.139.51.96 with plain) by smtp108.rog.mail.re2.yahoo.com with SMTP; 9 Feb 2006 21:24:20 -0000 From: Mike Jeays To: Martin McCormick In-Reply-To: <200602092036.k19KaIhn086956@dc.cis.okstate.edu> References: <200602092036.k19KaIhn086956@dc.cis.okstate.edu> Content-Type: text/plain Date: Thu, 09 Feb 2006 16:24:19 -0500 Message-Id: <1139520259.4288.32.camel@chaucer.jeays.ca> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Using dd to Make a Clone of a Drive 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, 09 Feb 2006 21:24:22 -0000 On Thu, 2006-02-09 at 14:36 -0600, Martin McCormick wrote: > After installing FreeBSD5.4, the ISC dhcp server and ISC bind > on a hard drive, I wanted to clone that drive to a second drive so as > to generate a second server, using what I had already installed as a > template. I used the following command: > > dd if=/dev/da0 of=/dev/da1 bs=512 > > It turns out that dd defaults to 512-byte blocks so I didn't > really need the bs=512, but I am not sure I haven't made some other > type of mistake. The dd command has been running for about 4 hours on > a very fast system, with a 1-gig processor, 1 gig of RAM and two 31-GB > drives. One would think it should have finished by now, but it is > still running. Is this a valid method of copying the entire contents > of one drive to another? Thank you. > > > Martin McCormick WB5AGZ Stillwater, OK > Systems Engineer > OSU Information Technology Department Network Operations Group > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Mike Jeays http://ca.geocities.com/mike.jeays@rogers.com You can use a much bigger block size, and the job will take significantly less time to run. I have successfully used a blocksize of 512000. Keep it to a multiple of 512. I haven't tried even larger block sizes, but I think they would work fine.