View Single Post
Old 04-06-2013, 10:13 AM   #295
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Using "zip -9".

The point is that there is almost nothing on the image except for a partition table and a few MB of files - plus almost a GB of zeroes. And these can be compressed to 20 bytes or so.

So, no magic here unfortunately - the only important thing was to zero out everything before formatting and putting files

Insider tip: That's also how I optimized the main partition images. Simply mounting it, "dd if=/dev/zero of=/mnt/zeroes; rm /mnt/zeroes" will also allow to pack filesystem images efficiently. That reduced the compressed size about 20-50 MB for each image... And of course, using lzma instead of gzip makes a huge difference too.

Last edited by ixtab; 04-06-2013 at 10:18 AM.
ixtab is offline   Reply With Quote