From owner-freebsd-questions@FreeBSD.ORG Sat Mar 11 22:43:48 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 2120D16A41F for ; Sat, 11 Mar 2006 22:43:48 +0000 (GMT) (envelope-from wojtek@tensor.3miasto.net) Received: from chylonia.3miasto.net (chylonia.3miasto.net [213.192.74.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0153D43D7B for ; Sat, 11 Mar 2006 22:43:36 +0000 (GMT) (envelope-from wojtek@tensor.3miasto.net) Received: from chylonia.3miasto.net (localhost [127.0.0.1]) by chylonia.3miasto.net (8.13.4/8.13.4) with ESMTP id k2BMhVU5068976; Sat, 11 Mar 2006 23:43:31 +0100 (CET) (envelope-from wojtek@tensor.3miasto.net) Received: from localhost (wojtek@localhost) by chylonia.3miasto.net (8.13.4/8.13.4/Submit) with ESMTP id k2BMhUpi068970; Sat, 11 Mar 2006 23:43:31 +0100 (CET) (envelope-from wojtek@tensor.3miasto.net) X-Authentication-Warning: chylonia.3miasto.net: wojtek owned process doing -bs Date: Sat, 11 Mar 2006 23:43:30 +0100 (CET) From: Wojciech Puchar X-X-Sender: wojtek@chylonia.3miasto.net To: Grant Peel In-Reply-To: <001901c64517$9d891950$6701a8c0@GRANT> Message-ID: <20060311234213.N68417@chylonia.3miasto.net> References: <001901c64517$9d891950$6701a8c0@GRANT> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: dd - cloning a disk. 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: Sat, 11 Mar 2006 22:43:48 -0000 > > Here is a simple (I think!) question for the I/O savy among you: > > If I had two identical disks, say, 73 GB Seagate 10K SCSIs, one completely > operational fully setup FreeBSD with all the trimmings, and the other blank, > or perhaps loaded but no longer usable, is 'dd' and appropriate tool to > completely clone the Good disk to the not so good disk....therefor making the > second disk identical to the first? Bootable and all? yes dd if=/dev/firstdisk of=/dev/seconddisk bs=64k and yes it is bootable, but if you boot from second disk, FreeBSD kernel will mount root from first disk anyway, unless you will reconfigure it. so for booting from 2-nd disk, swap SCSI IDs