Thanks for the help folks.
Quote:
Originally Posted by letitgo
You could look into qtparted ... or ntfresize
|
So you're essentially saying shrink it to be as small as possible, image it, then expand it back prior to using it? It appears that the union of GNU Parted and QTParted will shrink anything (excluding Fat12 and HFS). So that may indeed be the answer, but I'd prefer not to tamper with the original partition more than I must.
Quote:
Originally Posted by pixellany
It seems that--unless you have total knowledge of how a filesystem works--it would be very iffy trying to image only part of a partition.
|
I was curious how the
Smart Boot Manager floppy might have been created. It's a floppy image that is much smaller than 1440k - which is unusual. Compression was not used. Someone has figured out how to use dd in a way that excludes the unused space. Someone could write that SBM floppy to a 720k disk if they wanted. Noticing this is what set me on this mission.
Quote:
Originally Posted by pixellany
Can you not make a full partition image and then compress it?
|
I don't have a specific need for what I'm asking at the moment, but I would like to know how to avoid compression for a couple reasons. Uncompressed images are directly mountable. The other disadvantage to simply compressing the thing is that it must be restored onto a partition of equal or larger size to the original parition. What if the target partition is smaller than the image, but larger than the content?
Quote:
Originally Posted by matthewg42
If you have a partition with the unused blocks filled with 0's then you will be able to compress the image file well.
|
Even better, if I zeroize the unused space then I might not even have to use compression, because when 'conv=notrunc' is not passed to dd, "multiple blocks of zeros get abbreviated with a string of asterisks, saving a lot of space," according to the
dd tutorial. But the issue would still remain that the target partition must not be smaller than the original.