public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Brian Litzinger <brian@worldcontrol.com>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] Re: Cloning a system drive
Date: Sun, 7 Oct 2007 11:34:12 -0700	[thread overview]
Message-ID: <20071007183412.GA25984@top.worldcontrol.com> (raw)
In-Reply-To: <7c08b4dd0710062149p7c7548aai7ba062ea4e17d2a3@mail.gmail.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



  parent reply	other threads:[~2007-10-07 18:45 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-05 20:58 [gentoo-amd64] Cloning a system drive Mark Knecht
2007-10-05 21:14 ` Dieter Ries
2007-10-05 22:46 ` Drake Donahue
2007-10-05 23:07   ` Mark Knecht
2007-10-06  1:00     ` Drake Donahue
2007-10-06 12:22     ` Dieter Ries
2007-10-06  1:53 ` [gentoo-amd64] " Duncan
2007-10-06  2:35   ` Richard Freeman
2007-10-06  2:43     ` Mark Knecht
2007-10-06 12:47       ` Duncan
2007-10-06 13:16         ` Mark Knecht
2007-10-07  3:58           ` Drake Donahue
2007-10-07  4:49             ` Peter Davoust
2007-10-07  9:33               ` Duncan
2007-10-07 18:34               ` Brian Litzinger [this message]
2007-10-08  9:17                 ` Beso
2007-10-08 16:17                   ` Brian Litzinger
2007-10-08 16:28                     ` Mark Knecht
2007-10-08 16:43                     ` Beso
2007-10-08 22:39                       ` Peter Davoust

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071007183412.GA25984@top.worldcontrol.com \
    --to=brian@worldcontrol.com \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox