write image to a pipe?

Discuss about the plans: what features to add, how to develop, ...

Moderator: feffer

Post Reply

write image to a pipe?

Post by Bruce » Sun Jun 06, 2004 10:58 pm

I want to pipe the output of partimage (the image file) to another program to do for example encryption of the image. I realize stdout is used for the blue status update screen. I was unable to use a third filedescriptor such as:

partimage -f3 -z1 -dobc save /dev/hda1 /dev/fd/3 3>/tmp/pipe

But it did not work, as the code takes steps to make sure that the output file is a regular type of file. I removed the checks, but my c++ is too rusty, and I ran into addional errors.

Any chance of getting the output piped to another program? It would save time verses post processing the entire image file when partimage is finished.

Thanks for writing such a good utility.


Post by Bruce » Thu Jun 17, 2004 5:02 pm

Yes that sounds about right. I'd use ntfsclone instead, but I also want to support FAT.

Short of changing the source myself, is there any chance the direction of partimage is going to head that way? It does not apear so on the roadmap....


Post by DW » Mon Jun 21, 2004 10:03 pm

GNU parted supports FAT, but not NTFS.

Post Reply