From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 00:21:40 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 6113616A433 for ; Tue, 28 Mar 2006 00:21:40 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers.102a7e@mired.org) Received: from outbound7.internet-mail-service.net (outbound7.internet-mail-service.net [216.240.47.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id C759343D45 for ; Tue, 28 Mar 2006 00:21:39 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers.102a7e@mired.org) Received: from idiom.com (idiom.com [216.240.32.1]) by outbound.internet-mail-service.net (Postfix) with ESMTP id 0D3AB242A47 for ; Fri, 24 Mar 2006 10:12:34 -0800 (PST) Received: from mired.org (mwm@idiom [216.240.32.1]) by idiom.com (8.12.11/8.12.11) with SMTP id k2OICWqY089035 for ; Fri, 24 Mar 2006 10:12:33 -0800 (PST) (envelope-from mwm-keyword-freebsdhackers.102a7e@mired.org) Received: (qmail 53972 invoked by uid 1001); 24 Mar 2006 18:12:32 -0000 Received: by localhost.mired.org (tmda-sendmail, from uid 1001); Fri, 24 Mar 2006 13:12:32 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17444.13967.998120.314837@bhuda.mired.org> Date: Fri, 24 Mar 2006 13:12:31 -0500 To: vd@freebsd.org In-Reply-To: <20060324174235.GA58111@qlovarnika.bg.datamax> References: <200603241719.k2OHJDbh012213@sora.hank.home> <20060324174235.GA58111@qlovarnika.bg.datamax> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: FreeBSD Hackers , Khaled Hussain , Dirk GOUDERS 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, 28 Mar 2006 00:21:40 -0000 In <20060324174235.GA58111@qlovarnika.bg.datamax>, Vasil Dimov typed: > On Fri, Mar 24, 2006 at 06:19:13PM +0100, Dirk GOUDERS wrote: > Without reading it, I would first try this, it's quite straightforward > > * boot into single user mode (enter "boot -s" at loader prompt) > * make sure filesystems are mounted readonly (mount) > dd if=/dev/ad0 of=/dev/ad1 bs=1m > (where ad0 is your disk with data and ad1 is your new disk, make sure > you do not swap them :) Doesn't really matter in single user mode - you'll just copy the swap over. But yeah, this procedure works fine for me in the past. One thing: 1m is a bit small for modern systems. Or for not-so-modern systems. Since nothing else is running, you might as well use all the memory you've got, or as big as you can get a process to be. 128m or more is perfectly reasonable. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.