Gentoo Archives: gentoo-amd64

From: Peter Davoust <worldgnat@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Re: Cloning a system drive
Date: Mon, 08 Oct 2007 22:51:04
Message-Id: 7c08b4dd0710081539t3548496ai4b32dcc59c3fac28@mail.gmail.com
In Reply to: Re: [gentoo-amd64] Re: Cloning a system drive by Beso
1 It may have already been mentioned, but I read about a program called
2 PartImage (www.partimage.org). It looks like more of an automatic
3 backup program, but it does all of the backing up and restoring for
4 you, I think, and I'm pretty sure you can do manual backups. I've
5 never personally used it though.
6
7 Duncan, I agree, copying the files makes sense, because if you make an
8 image or tar the files, you're copying the files anyway, but it takes
9 time to tar the files or make an image. I'm not sure what the time
10 gained for tar-ing the files is vs. just straight copying them, but
11 I'd imagine it's a pretty small if there is one. Then again, I'm not
12 familiar with how tar works, so I could easily be wrong.
13
14 -Peter
15
16 On 10/8/07, Beso <givemesugarr@×××××.com> wrote:
17 > so for backuping a gentoo installation on usb disk is still better to build
18 > a stage4 with the script. i need to make a backup working copy of my gentoo
19 > notebook box and i have only one disk drive. that is the real problem with
20 > using dd or clonezilla...
21 >
22 > 2007/10/8, Brian Litzinger <brian@××××××××××××.com>:
23 > > On Mon, Oct 08, 2007 at 11:17:40AM +0200, Beso wrote:
24 > > > does this work from hd to external usb disk?
25 > >
26 > > dd will not work between disparate media. It is even
27 > > risky between different (capacity, manufacturer) drives.
28 > >
29 > > If by "this" you mean the latter stategy involving
30 > > sfdisk/rsync/grub the sfdisk step will mostly not work
31 > > between disparate media.
32 > >
33 > > > 2007/10/7, Brian Litzinger < brian@××××××××××××.com>:
34 > > > >
35 > > > > On Sun, Oct 07, 2007 at 12:49:11AM -0400, Peter Davoust wrote:
36 > > > > > This may be a little noobish, and it may have been said, but can't
37 > you
38 > > > > > just install the new drive, partition it identically to the original
39 > > > > > drive and then...
40 > > > > >
41 > > > > > dd if=/dev/hda1 of=/dev/hdb1
42 > > > > > dd if=/dev/hda2 of=/dev/hdb2
43 > > > > >
44 > > > > > so on and so forth until you've got everything copied? Or event just
45 > > > > >
46 > > > > > dd if=/dev/hda of=/dev/hdb
47 > > > > >
48 > > > > > Wouldn't that work?
49 > > > >
50 > > > > The latter works fine in my experience. I do it regularly.
51 > > > >
52 > > > > The downside, is that cloning a 750GB drive takes a while
53 > > > > as it duplicates everything including unused sectors.
54 > > > >
55 > > > > Things like clonezilla just copy the "used"/active sectors.
56 > > > >
57 > > > > A popular way is to use sfdisk. I do not remember the exact
58 > > > > syntax, but a pair of sfdisk commands can transfer the partition
59 > > > > information directly between two drives.
60 > > > >
61 > > > > Then use rsync to move the data across.
62 > > > >
63 > > > > You may have to run grub setup on the new disk too.
64 > > > >
65 > > > > --
66 > > > > Brian Litzinger
67 > > --
68 > > gentoo-amd64@g.o mailing list
69 > >
70 > >
71 >
72 >
73 >
74 > --
75 > dott. ing. beso
76 --
77 gentoo-amd64@g.o mailing list