1 |
so for backuping a gentoo installation on usb disk is still better to build |
2 |
a stage4 with the script. i need to make a backup working copy of my gentoo |
3 |
notebook box and i have only one disk drive. that is the real problem with |
4 |
using dd or clonezilla... |
5 |
|
6 |
2007/10/8, Brian Litzinger <brian@××××××××××××.com>: |
7 |
> |
8 |
> On Mon, Oct 08, 2007 at 11:17:40AM +0200, Beso wrote: |
9 |
> > does this work from hd to external usb disk? |
10 |
> |
11 |
> dd will not work between disparate media. It is even |
12 |
> risky between different (capacity, manufacturer) drives. |
13 |
> |
14 |
> If by "this" you mean the latter stategy involving |
15 |
> sfdisk/rsync/grub the sfdisk step will mostly not work |
16 |
> between disparate media. |
17 |
> |
18 |
> > 2007/10/7, Brian Litzinger <brian@××××××××××××.com>: |
19 |
> > > |
20 |
> > > On Sun, Oct 07, 2007 at 12:49:11AM -0400, Peter Davoust wrote: |
21 |
> > > > This may be a little noobish, and it may have been said, but can't |
22 |
> you |
23 |
> > > > just install the new drive, partition it identically to the original |
24 |
> > > > drive and then... |
25 |
> > > > |
26 |
> > > > dd if=/dev/hda1 of=/dev/hdb1 |
27 |
> > > > dd if=/dev/hda2 of=/dev/hdb2 |
28 |
> > > > |
29 |
> > > > so on and so forth until you've got everything copied? Or event just |
30 |
> > > > |
31 |
> > > > dd if=/dev/hda of=/dev/hdb |
32 |
> > > > |
33 |
> > > > Wouldn't that work? |
34 |
> > > |
35 |
> > > The latter works fine in my experience. I do it regularly. |
36 |
> > > |
37 |
> > > The downside, is that cloning a 750GB drive takes a while |
38 |
> > > as it duplicates everything including unused sectors. |
39 |
> > > |
40 |
> > > Things like clonezilla just copy the "used"/active sectors. |
41 |
> > > |
42 |
> > > A popular way is to use sfdisk. I do not remember the exact |
43 |
> > > syntax, but a pair of sfdisk commands can transfer the partition |
44 |
> > > information directly between two drives. |
45 |
> > > |
46 |
> > > Then use rsync to move the data across. |
47 |
> > > |
48 |
> > > You may have to run grub setup on the new disk too. |
49 |
> > > |
50 |
> > > -- |
51 |
> > > Brian Litzinger |
52 |
> -- |
53 |
> gentoo-amd64@g.o mailing list |
54 |
> |
55 |
> |
56 |
|
57 |
|
58 |
-- |
59 |
dott. ing. beso |