Is dd ok?

Klaus-Peter Schrage kpschrage
Mon May 17 12:00:47 PDT 2004


Leon Goldstein wrote:

> 
> I would like to clone a drive that has run out of space to a bigger 
> one.  Will Klaus-Peter's procedure duplicate the existing partitions' 
> original size on the new drive, or will they expand proportionally to 
> fill it?

I can only tell you what happened with dd if=/dev/hda of=/dev/hdc:
All partitions (ext3, swap, vfat) were copied with their respective
original size preserved.

> If dd only duplicates the original partition's size, could I partition 
> the target drive before running dd?

dd'ing partionwise into a bigger partition (eg. dd if=/dev/hda1 
of=/dev/hdc2) still only replicates the original filesystem's size - 
don't know about changing that with any dd options.
Klaus





More information about the Linux-users mailing list