Giter Club home page Giter Club logo

Comments (3)

niazi-in avatar niazi-in commented on August 17, 2024 1

Thank you. The default ZSTD compression level 15 is not too low. However. I shall first try using XZ compression if that gives a significant size saving without much greater decompression time. I shall let you know if a hard-coded patch for ZSTD level 19 is required.
The reason I was looking at ZSTD level 19 was that it was the setting used by Wolflandbuilder 6 by Brett Bogert, a remastersys fork, which worked well for ubuntu 20.04 and Mint 20.x. The resulting iso is less than 4GB and can be copied onto FAT32 partitioned flash drives, and I am able to use the old 4GB flash drives I have.
For Mint 21.x, I had initially tried to use the updated version Wolflandbuilder 7 kindly shared by Brett. The live custom iso (made from a customized Vbox installation) boots up fine, but it crashes during installation ( ubi-prepare crashes) due to some changes in ubuntu 22.04/Mint 21.x .
The custom iso made using Cubic has no problems while installing to another hdd (physical or Vbox). It is however, larger than 4GB, so I am using Ventoy with ex-FAT on 8/16GB flash drives. It would be great if I can stay below the 4GB limit , for the above reasons.

from cubic.

PJ-Singh-001 avatar PJ-Singh-001 commented on August 17, 2024

According to the man page, mksquashfs takes the --comp option.
Allowed arguments are gzip (default), lzo, lz4, xz, and zstd.

If zstd is supplied as an argument, then an additional option may be supplied, -Xcompression-level COMPRESSION-LEVEL, where COMPRESSION-LEVEL can be a value between 1 to 22, and the default is 15.

Other values for the --comp option have their own specific options:

COMPRESSORS AVAILABLE AND COMPRESSOR SPECIFIC OPTIONS

gzip (default):
-Xcompression-level COMPRESSION-LEVEL
    COMPRESSION-LEVEL should be 1 .. 9 (default 9).
-Xwindow-size WINDOW-SIZE
    WINDOW-SIZE should be 8 .. 15 (default 15).
-Xstrategy strategy1,strategy2,...,strategyN
    Compress using strategy1,strategy2,...,strategyN in turn and choose the best compression. Available strategies: default, filtered, huffman_only, run_length_encoded and fixed.

lzo:
-Xalgorithm ALGORITHM
    Where ALGORITHM is one of: lzo1x_1, lzo1x_1_11, lzo1x_1_12, lzo1x_1_15, lzo1x_999 (default).
-Xcompression-level COMPRESSION-LEVEL
    COMPRESSION-LEVEL should be 1 .. 9 (default 8) Only applies to lzo1x_999 algorithm.

lz4:
-Xhc
    Compress using LZ4 High Compression.

xz:
-Xbcj filter1,filter2,...,filterN
    Compress using filter1,filter2,...,filterN in turn (in addition to no filter), and choose the best compression. Available filters: x86, arm, armthumb, powerpc, sparc, ia64.
-Xdict-size DICT-SIZE
    Use DICT-SIZE as the XZ dictionary size. The dictionary size can be specified as a percentage of the block size, or as an absolute value. The dictionary size must be less than or equal to the block size and 8192 bytes or larger. It must also be storable in the xz header as either 2^n or as 2^n+2^(n+1). Example dict-sizes are 75%, 50%, 37.5%, 25%, or 32K, 16K, 8K etc.

zstd:
-Xcompression-level COMPRESSION-LEVEL
    COMPRESSION-LEVEL should be 1 .. 22 (default 15).

It would become quite complex to capture all of these options in the Cubic UI, so I do not have plans to add this capability into Cubic.

If you are looking for a smaller ISO, you can try the xz option.

However, if it is very critical, I may be able to give you a small patch to update your personal install of Cubic to hard code Xcompression-level to 19. Of course, I won't be able to grantee this wouldn't break any of the other compression options.

from cubic.

Augusto7743 avatar Augusto7743 commented on August 17, 2024

If not is possible add an option to configure the compression level settings will be good be Cubic always use maximum compression.

from cubic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.