From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 16:33:03 2003 Return-Path: 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 37E6537B401 for ; Thu, 24 Jul 2003 16:33:03 -0700 (PDT) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3179F43F3F for ; Thu, 24 Jul 2003 16:33:02 -0700 (PDT) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242])h6ONX0Ds060434; Fri, 25 Jul 2003 09:33:01 +1000 (EST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [172.22.2.1])h6ONWxXY093175; Fri, 25 Jul 2003 09:33:00 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Fri, 25 Jul 2003 09:32:59 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: mbaki@whywire.net In-Reply-To: <200307242141.h6OLfZg4003447@nebula.whywire.net> Message-ID: <20030725093210.P92896-100000@hewey.af.speednet.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: dd syntax X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2003 23:33:03 -0000 On Thu, 24 Jul 2003 mbaki@whywire.net wrote: > I have a freebsd 5.1 machine with 2 harddrives ad0 and ad2. I need to duplicate ad2 to a 3rd > hardrive so what I did is the following: > > dd if=/dev/ad2 of=freebsd5.1.bin > > Now when I'm done dd'ing, I can replace ad2 with the harddrive and issue the command > dd if=freebsd5.1.bin of=/dev/ad2 > > Both harddrives are exactly the same, so hopefully the following steps should work, correct? Yep, thats exactly what you do. Add a 'bs=64k' to the dd command line for better copying efficiency. -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/