On 8/20/05, Todd Walton <[EMAIL PROTECTED]> wrote:
> I have a 124GB partition that, without mounting, I would like to copy
> to somewhere else. The problem is that I don't have 124GB of free
> space anywhere else, but I do have a little over 60GB. Is there a good
> way to get that 124GB onto the 60GB? Can I pipe the output of dd to
> gzip say? How would I do this? Am I sure to have a perfect copy when
> I'm done? I'm not sure how much of the 124GB I was using, I'll just
> have to cross my fingers on that regard.
>
> I 'rm -r'd the partition and forgot about some important files on
> there. I want to recover them, but the first step is to make a copy of
> the partition. I'd prefer to make the copy and then work on the copy,
> but I'd settle for making a compressed copy and working on the
> original.
>
> 124GB down to 60GB.
>
> Would this work? : " dd /dev/hdb1 |gzip > /mnt/60gbPartition/hdb1.gz "
>
Aside from some missing switches:
# dd if=/dev/hdb1 | gzip -c > /mnt/60gbPartition/hdb1.gz
If you want to spend some time figuring out how much the original will
be compressed, do a dry run with output being counted not stored:
# dd if=/dev/hdb1 | gzip -c | wc -c
Sometimes bzip2 is a better compressor. You can try it also in the
dry-run command before actually doing the real thing.
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list