Perhaps...

1.  Copy off a chunk of it with a split-like tool (dd may do the trick with "seek") or some code.  Make the chunk small enough such that the chunk copy and the compressed version of the chunk will fit in 30GB.

2.  Compress the chunk.

3.  Truncate the chunk off of the disk image.

4.  Repeat.

It's risky, though, since the original file gets altered.

-Adam

On 2/18/07, Eric Stein <eastein@wpi.edu> wrote:
Hi all,

I've got an interesting issue with disk usage.  I have a hard disk image
(from dd) stored on a server, and it needs to be compressed it to make
room for other data.  The image is 160 GB, but I only have 30 GB of free
space to work with; the data isn't compressible enough to fit in 30 GB
in the meantime.  I don't need the image right now and having only a
compressed copy is perfectly fine.  How can I compress the image while
simultaneously deleting the old data?  I can think of a way to do it
using perl, dd, and some other tools, but I'd much prefer to do it the
"right" way if there is one.

Eric
_______________________________________________
Wlug mailing list
Wlug@mail.wlug.org
http://mail.wlug.org/mailman/listinfo/wlug



--
-Adam