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 1If1RI-0004bs-5L for garchives@archives.gentoo.org; Mon, 08 Oct 2007 22:51: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 l98MdcUl031223; Mon, 8 Oct 2007 22:39:38 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l98MdbjB031218 for ; Mon, 8 Oct 2007 22:39:37 GMT Received: by nf-out-0910.google.com with SMTP id f5so1115480nfh for ; Mon, 08 Oct 2007 15:39:37 -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=+Q7iBxJ8AF18aFj7V0qa5MiRKncNa5Rfs/KPPZuVKzY=; b=A9PFMI0ML7ZZVQT5EVV/Qat8z09oB1HDR3tkUonpGCGThIFqSfo/E58349zdBt8/xun/CGBARoE2aO1OilPIXdQU5VCC6II8PkiWtW3WedlVw30DmosJGof1J13MzQ7cIe3afx9YsqttLK5CJ9IgpC/hEAis3wbRLbbNAdANMyw= 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=ftHr6vpKHEeOJsfO/D0OxEgYmpLGilaLopBK18ni2jN3eDdVLo+QwXAcEeFUyUlWNfz10l8uTMB0ctzZ7Na5BnX58WQgK4ZJEBQO3APVGHO4nakVStPt9mo8se2RduCfpc3qFnStko5oATmNrD8V5I2Y4sZhybOvzPqZqfB5A8c= Received: by 10.78.142.14 with SMTP id p14mr6945469hud.1191883176892; Mon, 08 Oct 2007 15:39:36 -0700 (PDT) Received: by 10.78.21.3 with HTTP; Mon, 8 Oct 2007 15:39:36 -0700 (PDT) Message-ID: <7c08b4dd0710081539t3548496ai4b32dcc59c3fac28@mail.gmail.com> Date: Mon, 8 Oct 2007 18:39:36 -0400 From: "Peter Davoust" To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Re: Cloning a system drive In-Reply-To: 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=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5bdc1c8b0710051358g74f95702rb82a29219d890919@mail.gmail.com> <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: 998ce965-dc01-4c47-8cf2-a69750950de0 X-Archives-Hash: f145dc6f2a0155a0d5d43084508f9881 It may have already been mentioned, but I read about a program called PartImage (www.partimage.org). It looks like more of an automatic backup program, but it does all of the backing up and restoring for you, I think, and I'm pretty sure you can do manual backups. I've never personally used it though. Duncan, I agree, copying the files makes sense, because if you make an image or tar the files, you're copying the files anyway, but it takes time to tar the files or make an image. I'm not sure what the time gained for tar-ing the files is vs. just straight copying them, but I'd imagine it's a pretty small if there is one. Then again, I'm not familiar with how tar works, so I could easily be wrong. -Peter On 10/8/07, Beso wrote: > 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 < 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 -- gentoo-amd64@gentoo.org mailing list