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 1Ieovn-00033V-Go for garchives@archives.gentoo.org; Mon, 08 Oct 2007 09:29:44 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l989HfuZ003668; Mon, 8 Oct 2007 09:17:41 GMT Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l989HfPB003662 for ; Mon, 8 Oct 2007 09:17:41 GMT Received: by fk-out-0910.google.com with SMTP id 19so2178836fkr for ; Mon, 08 Oct 2007 02:17:41 -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:references; bh=SoCBh+zYmlS1VY9y4KnUiBtkVouFUnp91tv8zegXm00=; b=S6Zp76lU5loI+4BFA+TjhXRVNBQy6yrm5vEdCL7p+uGJtHOk+G0x6FdxbWe9cRHs0rChtsZTAcpQJKebShDd5w3T9jaqPCJxh0eUjiGODrXipeJsezxndJXkhstwyMkGycLsvg8yRadoULQlk476gOMnZSSukssh8nhX/Z63e8c= 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:references; b=VQgYtEkBOKQNX1aBi/hEpkZ0HItDApVBQnYGTEqVN+KVrxhdUTaLwvhOXzZ6LbmTLBZvOBtjQw7Bsxefv5wIc+qaCisZTNKXKq8SFQNmb7Uk390CGJaFeVph5XFJkTnl4w0TAbY8ZPh+TXh87a6JxxlCNPh5QLW7Yw/4RtSjN0U= Received: by 10.82.177.3 with SMTP id z3mr4963677bue.1191835061004; Mon, 08 Oct 2007 02:17:41 -0700 (PDT) Received: by 10.82.135.4 with HTTP; Mon, 8 Oct 2007 02:17:40 -0700 (PDT) Message-ID: Date: Mon, 8 Oct 2007 11:17:40 +0200 From: Beso To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Re: Cloning a system drive In-Reply-To: <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: multipart/alternative; boundary="----=_Part_43437_4556658.1191835061001" 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> X-Archives-Salt: 696c30e9-57d9-4e36-9625-6d8159013e18 X-Archives-Hash: 87ea919a713cfe956927e8ca2330d5c0 ------=_Part_43437_4556658.1191835061001 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline does this work from hd to external usb disk? 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 > > -- dott. ing. beso ------=_Part_43437_4556658.1191835061001 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline does this work from hd to external usb disk?

2007/10/7, Brian Litzinger <brian@worldcontrol.com>:
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




--
dott. ing. beso ------=_Part_43437_4556658.1191835061001-- -- gentoo-amd64@gentoo.org mailing list