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 1IevfD-0003r9-Va for garchives@archives.gentoo.org; Mon, 08 Oct 2007 16:41:04 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l98GSxIT007142; Mon, 8 Oct 2007 16:28:59 GMT Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.231]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l98GSwR6007112 for ; Mon, 8 Oct 2007 16:28:59 GMT Received: by wr-out-0506.google.com with SMTP id 36so639420wra for ; Mon, 08 Oct 2007 09:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=cS8MxR5unNWu5xWsdq90PSt8YF/RF89RrkeNVpf/a9s=; b=EGgmCa2x9bDnS0oQdBgeyEYsNpqzOq5rErzKe6MnOkGWzk9eIe2wv55OqVr1Xh6GSM8eSOMXwSsvb4Tadl/GttQ0RlxqJ1H3p5RU7UZ+c9yyYWUBVqInI/NAW3W3LPsS29gBVwc6LkqneAccoFS/Y4gPYVi1yQ7/tdjNnWvxkYs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kk48xrNz1dd1ZYHVRwVguPufpaqWTrfqN7YrS740uMoSRLCd9AYVGnhF/yB5IY5nuRiyHun9M8C3dga8XAhkaysUaEfup+7wSCFpxtNQ4Hi4vjkxtuMXIC5Wq9pu9zZ0/IpeRVcJk13o1R9vIOBVQLf92pvGr7TSxWSZBdpk/dI= Received: by 10.90.115.9 with SMTP id n9mr4045817agc.1191860938060; Mon, 08 Oct 2007 09:28:58 -0700 (PDT) Received: by 10.90.49.7 with HTTP; Mon, 8 Oct 2007 09:28:57 -0700 (PDT) Message-ID: <5bdc1c8b0710080928u71983c9fud36cbb5864fadd0e@mail.gmail.com> Date: Mon, 8 Oct 2007 09:28:57 -0700 From: "Mark Knecht" To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Re: Cloning a system drive In-Reply-To: <20071008161719.GA1398@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=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> <20071008161719.GA1398@top.worldcontrol.com> X-Archives-Salt: 6316b021-3c82-47d4-aef0-e449461f5a77 X-Archives-Hash: 0b02819f31aef9e4a6fc001b4f9b1c9f On 10/8/07, Brian Litzinger wrote: > 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. For my purpose, and I think most anyone in my situation, this is a key issue. I built this AMD64 machine 2-3 years ago. Any drive I put in today is going to have completely different drive geometries. I am buying a drive today and will hopefully get started on this project this evening to tomorrow. I'm leaning the gparted-clonezilla direction but not overly confident at this point. Still have much to learn. Thanks, Mark > > 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 > > -- gentoo-amd64@gentoo.org mailing list