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