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 1IevSu-0003Qr-VE for garchives@archives.gentoo.org; Mon, 08 Oct 2007 16:28:21 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l98GH1Q0003622; Mon, 8 Oct 2007 16:17:01 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 l98GGxx0003617 for ; Mon, 8 Oct 2007 16:17:00 GMT Received: from worldcontrol.com (unknown [10.7.77.6]) by home.worldcontrol.com (Postfix) with SMTP id 9631A1C8B8D for ; Mon, 8 Oct 2007 09:16:59 -0700 (PDT) Received: by worldcontrol.com (sSMTP sendmail emulation); Mon, 8 Oct 2007 09:17:19 -0700 Date: Mon, 8 Oct 2007 09:17:19 -0700 From: Brian Litzinger To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Re: Cloning a system drive Message-ID: <20071008161719.GA1398@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> <20071007183412.GA25984@top.worldcontrol.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: X-No-Archive: yes X-Noarchive: yes User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 5d759963-8f71-4e94-b001-312a16c3a870 X-Archives-Hash: 8896069396bcdb184c755f64a9060c2b On Mon, Oct 08, 2007 at 11:17:40AM +0200, Beso wrote: > does this work from hd to external usb disk? dd will not work between disparate media. It is even risky between different (capacity, manufacturer) drives. If by "this" you mean the latter stategy involving sfdisk/rsync/grub the sfdisk step will mostly not work between disparate media. > 2007/10/7, Brian Litzinger : > > > > 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