From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ieb7q-0002m5-Co for garchives@archives.gentoo.org; Sun, 07 Oct 2007 18:45:14 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l97IXt0f016493; Sun, 7 Oct 2007 18:33:55 GMT Received: from home.worldcontrol.com (home.worldcontrol.com [216.240.131.108]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l97IXr1v016487 for ; Sun, 7 Oct 2007 18:33:54 GMT Received: from worldcontrol.com (unknown [10.7.77.6]) by home.worldcontrol.com (Postfix) with SMTP id D29B01C89CF for ; Sun, 7 Oct 2007 11:33:52 -0700 (PDT) Received: by worldcontrol.com (sSMTP sendmail emulation); Sun, 7 Oct 2007 11:34:12 -0700 Date: Sun, 7 Oct 2007 11:34:12 -0700 From: Brian Litzinger To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Re: Cloning a system drive Message-ID: <20071007183412.GA25984@top.worldcontrol.com> References: <5bdc1c8b0710051358g74f95702rb82a29219d890919@mail.gmail.com> <4706F467.8040508@thefreemanclan.net> <5bdc1c8b0710051943w4cd14241v795c599285891959@mail.gmail.com> <5bdc1c8b0710060616g20827f5fg4a5e7b5683be4193@mail.gmail.com> <000c01c80896$5abe32b0$0200a8c0@iwillxp333> <7c08b4dd0710062149p7c7548aai7ba062ea4e17d2a3@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c08b4dd0710062149p7c7548aai7ba062ea4e17d2a3@mail.gmail.com> X-No-Archive: yes X-Noarchive: yes User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: c8ceaaee-54d3-4d8b-8f9e-83131f73c32d X-Archives-Hash: ed60f370bd98f9d1aa40b794128676f6 On Sun, Oct 07, 2007 at 12:49:11AM -0400, Peter Davoust wrote: > This may be a little noobish, and it may have been said, but can't you > just install the new drive, partition it identically to the original > drive and then... > > dd if=/dev/hda1 of=/dev/hdb1 > dd if=/dev/hda2 of=/dev/hdb2 > > so on and so forth until you've got everything copied? Or event just > > dd if=/dev/hda of=/dev/hdb > > Wouldn't that work? The latter works fine in my experience. I do it regularly. The downside, is that cloning a 750GB drive takes a while as it duplicates everything including unused sectors. Things like clonezilla just copy the "used"/active sectors. A popular way is to use sfdisk. I do not remember the exact syntax, but a pair of sfdisk commands can transfer the partition information directly between two drives. Then use rsync to move the data across. You may have to run grub setup on the new disk too. -- Brian Litzinger -- gentoo-amd64@gentoo.org mailing list