1

How to compress (archive) partition (or disk) and then mount it directly

view story
linux-howto

http://askubuntu.com – 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.gz containing disk.img. Is it possible to mount disk.img.gz to get access to disk.img, (HowTos)