Hi,

We can uncompress the image CD (KNOPPIX.iso) in this way:

mkdir /mnt/knoppixcd
mount -o loop knoppix.iso /mnt/knoppixcd

mkdir /mnt/master
cp -a /mnt/knoppixcd/* /mnt/master

Then, we will have the master directory WITH the huge KNOPPIX/KNOPPIX file.

But, how can I uncompress KNOPPIX/KNOPPIX? Is there anyway to use /usr/bin/create_compressed_fs in the inverse way to uncompress the file directly from the hard disk?

Thank you!

Solution

If you are using Debian, you can install the cloop-utils package, wich has both create_compressed_fs and extract_compresed_fs and other files.

The full sequence to extract files from the iso is:

# mkdir /mnt/knoppix
# cd /mnt/dsl
# mkdir iso extracted_knx master sources
# mount -o loop DSL.iso /mnt/dsl/iso
# cp -Rp iso/* master
# umount iso && rm -r iso
# extract_compresed_fs master/KNOPPIX/KNOPPIX > master/KNOPPIX/extracted_knx
# mount -o loop master/KNOPPIX/extracted_knx extracted_knx
# cp -Rp extracted_knx/* sources
# umount extracted_knx && rm -r extracted_knx
# rm master/KNOPPIX/KNOPPIX master/KNOPPIX/extracted_knx

That's all!