1 |
does this work from hd to external usb disk? |
2 |
|
3 |
2007/10/7, Brian Litzinger <brian@××××××××××××.com>: |
4 |
> |
5 |
> On Sun, Oct 07, 2007 at 12:49:11AM -0400, Peter Davoust wrote: |
6 |
> > This may be a little noobish, and it may have been said, but can't you |
7 |
> > just install the new drive, partition it identically to the original |
8 |
> > drive and then... |
9 |
> > |
10 |
> > dd if=/dev/hda1 of=/dev/hdb1 |
11 |
> > dd if=/dev/hda2 of=/dev/hdb2 |
12 |
> > |
13 |
> > so on and so forth until you've got everything copied? Or event just |
14 |
> > |
15 |
> > dd if=/dev/hda of=/dev/hdb |
16 |
> > |
17 |
> > Wouldn't that work? |
18 |
> |
19 |
> The latter works fine in my experience. I do it regularly. |
20 |
> |
21 |
> The downside, is that cloning a 750GB drive takes a while |
22 |
> as it duplicates everything including unused sectors. |
23 |
> |
24 |
> Things like clonezilla just copy the "used"/active sectors. |
25 |
> |
26 |
> A popular way is to use sfdisk. I do not remember the exact |
27 |
> syntax, but a pair of sfdisk commands can transfer the partition |
28 |
> information directly between two drives. |
29 |
> |
30 |
> Then use rsync to move the data across. |
31 |
> |
32 |
> You may have to run grub setup on the new disk too. |
33 |
> |
34 |
> -- |
35 |
> Brian Litzinger |
36 |
> -- |
37 |
> gentoo-amd64@g.o mailing list |
38 |
> |
39 |
> |
40 |
|
41 |
|
42 |
-- |
43 |
dott. ing. beso |