Security Basics mailing list archives

Re: copying a disk image to restore on linux


From: Sebastian "Schäfer" <schaefer () b-tox de>
Date: Fri, 27 Dec 2002 20:14:49 +0000

stefmit <stefmit () starband net> schrieb am Tue, 24 Dec 2002 16:21:02
-0600:

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?!?


That one is not good.
As every filesystem I know of fragmentizes its data a part of a file
could physically lay behind the 20th GB. Using your method it would not
be imaged.

Greets,
Sebastian Schäfer


Current thread: