-
Senior Member
registered user
Remastering Knoppix7+: New uses of old overlay techniques
The 4GB file size limit of FAT32 has been an important premise for KNOPPIX (and similar live distros) in the past, and it still is the main reason why contemporary KNOPPIX comes with two cloop-compressed files: The basic KNOPPIX, and the overlay KNOPPIX1. Both sized to fit on a FAT32 file system.
When we remaster, we can easily put everything into one file, but it has gotten increasingly harder to purge enough from the DVD package list to make everything fit within 4GB, when own additions are included.
Experimenting a bit with 7.7.1 DVD remastering, it turns out that while it is fairly easy to purge enough to compress the DVD content into 4GB without any overlay, it is probably not worth it to shoehorn significant added packages into that format.
And still, there are some good reasons to conform to FAT32. The most important is booting. While it is easy to prepare FAT32 media to boot almost everywhere, too often other kinds of media fail to boot somewhere. So for me, it's not worth the effort to do things otherwise. Also, this seems like an easy basis for running in Vmware Workstation virtual machines.
This takes us back to the good old multiple overlays technique, which our friend utu has championed on this forum:
http://knoppix.net/forum/threads/306...x-7-2-LiveUSBs
The principle is that the persistent store is cloop-compressed into an overlay as KNOPPIX<n>, n=1,2,3..., put into the KNOPPIX directory and automatically aufs-mounted upon next boot. This isn't something I would recommend to do several times. There is, for example, no file deletion involved, old versions of files are not overwritten, but just superseded by newer versions in the aufs mount. In order to have "real" file deletion, remastering is needed.
But it is possible to make Knoppix into a real power package this way. For example, running on ext3 one could make a 8GB overlay file containing lots of programs, like databases, statistical packages etc. Then compress it into a KNOPPIX1 ca 4GB overlay (assume we have purged and compressed the DVD contents into 4GB KNOPPIX), create 2-4 knoppix-data.img<n> overlay files in addition to knoppix-data.img and stuff everything into a 32 GB USB stick which can be booted "almost everywhere". For my own use, I'm quite sure it will suffice with a ca 2GB overlay. There is, for example, little to be gained by compressing JAVA .jar/.war files, as they are mostly already compressed.
Here is the overlay creation function utu posted:
Code:
#utu's overlay creation
#http://knoppix.net/forum/threads/30672-Using-Overlay-Updates-in-Knoppix-7-2-LiveUSBs
MakeOverlay() { # Cloop-compress & save /KNOPPIX-DATA as /mnt-system/KNOPPIX$1
ISO=KNOPPIX$1; ISODIR=/mnt-system/; ISOSRC=KNOPPIX-DATA
echo -e "Creating "$ISO"; patience, this may take some time..."
cd /; sudo mkisofs -x *[Cc]ache* -R -U \
$ISOSRC | create_compressed_fs -B 131072 -m - - > $ISODIR$ISO
echo ".done; "$ISO" additions from $ISOSRC saved to "$ISODIR"."
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Intel Core i7-14700K - 14th Gen 20-Core (8P+12E) LGA 1700 125W CPU Processor picture](/store/img/g/jKAAAOSwdVNlLmSw/s-l225/Intel-Core-i7-14700K-14th-Gen-20-Core-8P-12E-LGA-1.jpg)
Intel Core i7-14700K - 14th Gen 20-Core (8P+12E) LGA 1700 125W CPU Processor
$373.96
![Intel Core i7 CPU Processors, I7 2600, i7 3770, i7 4770, i7 4790 picture](/store/img/g/kr4AAOSw~7BiZtZ2/s-l225/Intel-Core-i7-CPU-Processors-I7-2600-i7-3770-i7-47.jpg)
Intel Core i7 CPU Processors, I7 2600, i7 3770, i7 4770, i7 4790
$28.99
![Intel Core i7-3770 - Quad Core 3.40GHz CPU Processor picture](/store/img/g/lNEAAOSw7~ZjUulu/s-l225/Intel-Core-i7-3770-Quad-Core-3-40GHz-CPU-Processor.jpg)
Intel Core i7-3770 - Quad Core 3.40GHz CPU Processor
$27.99
![10th GEN INTEL Core i5-10400F 2.9GHz Socket-1200 Desktop CPU SRH3D Processor picture](/store/img/g/dPgAAOSwrWxmeHzS/s-l225/10th-GEN-INTEL-Core-i5-10400F-2-9GHz-Socket-1200-D.jpg)
10th GEN INTEL Core i5-10400F 2.9GHz Socket-1200 Desktop CPU SRH3D Processor
$69.99
![AMD Ryzen 5 7500F Processor (5 GHz, 6 Cores, Socket AM5) Tray - 100-000000597 picture](/store/img/g/NVoAAOSwtTFmGGBR/s-l225/AMD-Ryzen-5-7500F-Processor-5-GHz-6-Cores-Socket-A.jpg)
AMD Ryzen 5 7500F Processor (5 GHz, 6 Cores, Socket AM5) Tray - 100-000000597
$138.98
![Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc... picture](/store/img/g/0eYAAOSwcHZlMDWu/s-l225/Intel-Core-i7-14700K-14th-Gen-20-Core-28-Thread-4-.jpg)
Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc...
$373.99
![Intel Core i5-12400F - 6-Core 2.5GHz 12th Gen Alder Lake LGA 1700 65W CPU picture](/store/img/g/wucAAOSwFLxh1X-c/s-l225/Intel-Core-i5-12400F-6-Core-2-5GHz-12th-Gen-Alder-.jpg)
Intel Core i5-12400F - 6-Core 2.5GHz 12th Gen Alder Lake LGA 1700 65W CPU
$109.94
![INTEL CORE I5-9500 PROCESSOR | 3.00GHZ | SRF4B picture](/store/img/g/XGIAAOSwkKVmc1DE/s-l225/INTEL-CORE-I5-9500-PROCESSOR-3-00GHZ-SRF4B.jpg)
INTEL CORE I5-9500 PROCESSOR | 3.00GHZ | SRF4B
$57.99
![** Intel i3 10100F CPU Processor - USED ** picture](/store/img/g/068AAOSwcrJmXyYd/s-l225/-Intel-i3-10100F-CPU-Processor-USED-.jpg)
** Intel i3 10100F CPU Processor - USED **
$47.99
![Intel Core i7-4790K SR219 4.00GHZ 4Th Gen Used Desktop Processor CPU FCLGA1150 picture](/store/img/g/klEAAOSwVO1mdf-P/s-l225/Intel-Core-i7-4790K-SR219-4-00GHZ-4Th-Gen-Used-Des.jpg)
Intel Core i7-4790K SR219 4.00GHZ 4Th Gen Used Desktop Processor CPU FCLGA1150
$64.99