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