[arch-general] how to migrate installs between hard drives?

Sergey Manucharian sergeym at rmico.com
Sun Jul 26 21:07:49 EDT 2009


On Sun, 26 Jul 2009 14:34:35 -0400
Alexander Lam <lambchop468 at gmail.com> wrote:
> ...
> A <- The disk that already has an installation but is smaller
> B <- The disk that that you want to put the installation on
> 
> if you dd A onto B, B will get the partition structure from A and
> appear smaller. However, you can edit the partition sizes using
> gparted like Dan said, and make the partitions fill up the whole B
> disk.

You can also dd a single partition from A onto B, then run fdisk,
DELETE the partition and recreate it with bigger size, then run
resize2fs to extend the file system to fill the whole new partition.

(Of course resize2fs works only with ext2/ext3/ext4).

Cheers,
Sergey



More information about the arch-general mailing list