@ Forester

Here's what I'd like to automate into Knoppix by means of
its cheatcodes, and for extra credit, do this without re-mastering.

In principle, the Knoppix system is made up by bringing together
three files. The compressed image KNOPPIX, a compressed file
update*.tar.gz and an un-compressed knoppix-data.img.
For simplicity, let's call these A, B & C.

Most of us don't use the compressed B, but it's there to be used.

Most of us have an uncompressed C which has all our neat little
tweaks, saved in a file that is ALWAYS bigger than necessary.
It's not full, and it's not compressed.

After using C for a while without changes and without finding
problems, I'd like to promote the tweaks in C into a compressed
version of the same in B.

Having done so, I'd like to re-allocate the space availabe for
a new ~empty C, to make room for B or a bigger B as the case
may be.

Being an optimist, I'd like to achieve all this on-line rather
than off-line (as in re-mastering), manipulating cheatcodes.

The question is, how do I do this?
Provoking someone proficient in bash scripting, maybe?