How to mount compressed disk image?
Here is my situation: I have hard drive with (fresh) OS installation. I made compressed image of that disk to another disk.
How to make compressed disk image to file (on another disk):
sudo cat /dev/sdb | gzip > disk.img.gz (sdb is source)
If free space is zero-ed, compression is much better. To do this, just fill free space on partition(s)
cat /dev/zero > /media/source-disk/partitions*/zero.out and then delete zero.out file(s)
So we have gziped archive
disk.img. Is it possible to mount
disk.img.gz to get access to
disk.img, which can be mounted to access partitions and files on it (maybe even in read-write?)
I can't afford to decompress disk image as it's too big for my disk.