From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 4 15:43:28 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB74D16A41F for ; Tue, 4 Apr 2006 15:43:28 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4E7243D5A for ; Tue, 4 Apr 2006 15:43:20 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k34Fgfi3037237; Tue, 4 Apr 2006 09:42:45 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 04 Apr 2006 09:43:37 -0600 (MDT) Message-Id: <20060404.094337.08320851.imp@bsdimp.com> To: khaled@ipbill.com From: "M. Warner Losh" In-Reply-To: References: <20060328.210412.18287651.imp@bsdimp.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: cloning a FreeBSD HDD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 15:43:28 -0000 In message: "Khaled Hussain" writes: : Why does everyone talk about dump+restore as a pair? I thought it was : possible just to dump a filesystem to a different hard disk i.e. : dump -0a -f /dev/ad2 / because that will create a dump file on ad2, not a filesystem that can be read by the kernel. : Also, how can I find out which /boot/boot# file a freebsd system is using by : default? I don't understand that question. Warner : Kind Regards : : Khaled : : > -----Original Message----- : > From: owner-freebsd-hackers@freebsd.org : > [mailto:owner-freebsd-hackers@freebsd.org]On Behalf Of M. Warner Losh : > Sent: 29 March 2006 05:04 : > To: eksffa@freebsdbrasil.com.br : > Cc: freebsd-hackers@freebsd.org : > Subject: Re: cloning a FreeBSD HDD : > : > : > In message: <4429972C.5030806@freebsdbrasil.com.br> : > Patrick Tracanelli writes: : > : : > : >> I heard its faster if you use two dd's; i.e: : > : >> : > : >> # dd if=/dev/ad0 bs=64k | dd of=/dev/ad1 bs=64k : > : >> : > : >> allowing read and write to proceed in parallel. : > : > : > : > : > : > that's what ddd and 'team' are for. : > : > I don't know if ddd is in the ports as it may clash inname with teh : > : > debugger ddd : > : > They internally fork and use several processes synchronised : > in some manner. : > : : > : Isn't dump+restore and a couple of fdisk+bsdlabel trick to copy the : > : source partitioning a better choice to "clone" this HDD? : > : > Yes. That's what I *ALWAYS* do, because hard drives are never the : > exact same size. : > : > fdisk -I makes the fdisk part easy. bsdlabel -R makes the disklabel : > cloning relatively painless. : > : > dump + restore is slow but reliabe. : > : > Warner : > _______________________________________________ : > freebsd-hackers@freebsd.org mailing list : > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers : > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" : > : > ______________________________________________________________________ : > This email has been scanned by the MessageLabs Email Security System. : > For more information please visit http://www.messagelabs.com/email : > ______________________________________________________________________ : > : :