From owner-freebsd-questions@FreeBSD.ORG Wed May 3 20:52:12 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 9353316A4E7 for ; Wed, 3 May 2006 20:52:12 +0000 (UTC) (envelope-from mhunter@malcolm.berkeley.edu) Received: from malcolm.berkeley.edu (malcolm.Berkeley.EDU [128.32.206.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AC8E43D45 for ; Wed, 3 May 2006 20:52:12 +0000 (GMT) (envelope-from mhunter@malcolm.berkeley.edu) Received: from malcolm.berkeley.edu (localhost [127.0.0.1]) by malcolm.berkeley.edu (8.13.6/8.13.3) with ESMTP id k43KqCvh072221 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 May 2006 13:52:12 -0700 (PDT) (envelope-from mhunter@malcolm.berkeley.edu) Received: (from mhunter@localhost) by malcolm.berkeley.edu (8.13.6/8.13.3/Submit) id k43KqCtt072220; Wed, 3 May 2006 13:52:12 -0700 (PDT) (envelope-from mhunter) Date: Wed, 3 May 2006 13:52:12 -0700 From: Mike Hunter To: "Chad Leigh -- Shire.Net LLC" Message-ID: <20060503205211.GB71839@malcolm.berkeley.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (malcolm.berkeley.edu [127.0.0.1]); Wed, 03 May 2006 13:52:12 -0700 (PDT) Cc: FreeBSD Questions Mailing List Subject: Re: "dd" question 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: Wed, 03 May 2006 20:52:12 -0000 On May 03 at 14:11, "Chad Leigh -- Shire.Net LLC" wrote: > I have a Windows machine that also has some linux partitions. lilo > is the main boot manager. Can I used dd from my freebsd box to > completely copy the whole disk, partition tables and all, to another > disk? The disk in the machine is starting to appear to be a little > flaky and I have another of the same mechanisms here and would like > to just basically clone the whole thing over. I seldom use the > machine but when I do need it I need it (tax time, an old website > that uses a specific windows tool for updating, etc) I've done this and had success. You can boot the machine that you want to dupe with a live CD, then dd from the disk to either a file somewhere or straight to another disk, then you should be able to just boot from the new disk (the new disk must be >= the size of the old disk, people have said that the exact same size is required, but I haven't found that to be the case.) A couple other quick plugs, check out ddrecover if you have bad sectors. Last but not least, I've used netcat with success to do these dupes across a (secure) network. Mike