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 1Ievsc-0004Or-GM for garchives@archives.gentoo.org; Mon, 08 Oct 2007 16:54:55 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l98GhKY1019029; Mon, 8 Oct 2007 16:43:20 GMT Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l98GhJLJ019017 for ; Mon, 8 Oct 2007 16:43:20 GMT Received: by an-out-0708.google.com with SMTP id c8so123242ana for ; Mon, 08 Oct 2007 09:43:19 -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=GjbJ6/P3EJg0Zr9oRUbgOiH6lwWswUOFyo4MaIxMyXo=; b=LdHG7X+QB54gFQqior8gF6uiQNhm4ODQlD+EDvZ2VisMsJKsKVS29CnClwx98fzr4wNwqR0j2FX7sR0eIB3P4HC7VDr1hITA08IgFP8lKCEH60+OxkyNE/brRh1vWL/AxM1wzLWnvLBYkc8Kfq0YsOv9xrxaDyhObg/Znor1kQ4= 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=MIwG+vnwgak9sLxLkGTYTmREXSs7W2kbO+wrZYayoEHK+11z5eZrSMCkZHBYLH/RD1Rhtrgy8p3LqZm19JXIwfTqEypH50ihd4x3EcFHn3HL/PLsfhgt7I9bIGCXAVoOYORQCi3dYpjNnGpwtHUc690L5l9hlBmCVGd/6YxdxPA= Received: by 10.142.194.1 with SMTP id r1mr2130864wff.1191861798338; Mon, 08 Oct 2007 09:43:18 -0700 (PDT) Received: by 10.143.5.16 with HTTP; Mon, 8 Oct 2007 09:43:18 -0700 (PDT) Message-ID: Date: Mon, 8 Oct 2007 18:43:18 +0200 From: Beso 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: multipart/alternative; boundary="----=_Part_54_14340998.1191861798308" 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: 4e7b1959-1e55-488f-9370-894e718a5395 X-Archives-Hash: 7c5e006d5b892a6fc96fff85827ea05b ------=_Part_54_14340998.1191861798308 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline so for backuping a gentoo installation on usb disk is still better to build a stage4 with the script. i need to make a backup working copy of my gentoo notebook box and i have only one disk drive. that is the real problem with using dd or clonezilla... 2007/10/8, Brian Litzinger : > > 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 > > -- dott. ing. beso ------=_Part_54_14340998.1191861798308 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline so for backuping a gentoo installation on usb disk is still better to build a stage4 with the script. i need to make a backup working copy of my gentoo notebook box and i have only one disk drive. that is the real problem with using dd or clonezilla...

2007/10/8, Brian Litzinger <brian@worldcontrol.com>:
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 < 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_54_14340998.1191861798308-- -- gentoo-amd64@gentoo.org mailing list