Are you saying that:

# df -h ==> used MB or GB

then:

# dd if=/dev/hda1 bs=1M count=<used MB or GB> | gzip > hda1-image.gz

then, on the new drive:

# zcat hda1-image.gz | dd of=/dev/hda1 >& /dev/null

won't cut it for you?!?

On Tuesday 24 December 2002 04:12 am, [EMAIL PROTECTED] wrote:
> hi all,
>    I would like to know if there are any utilities on linux (preferably
> freeware) which can create a complete image of the hard-drive. I know dd
> exists, but that would create the image of the entire drive. If the drive
> was (say) 40 GB and the free space is 20 GB then that would be a waste of
> space. Is there a tool which would let me create the image of the used
> space on the drive ?
>
> thank you
> gangadhar

Reply via email to