PDA

View Full Version : Knoppix 3.8.2: remastered ISO larger than original



rwcitek
08-01-2005, 06:29 AM
I did a trivial remaster of Knoppix 3.8.2 (http://www.knoppix.net/wiki/Trivial_remaster_3.8.2). However, the resulting ISO is 756 MB, which is ~30 MB larger than the 727 MB of the downloaded Knoppix ISO. Anyone have any suggestions why this might be? Am I missing an option to the mkisofs? Can anyone else reproduce my results?

Regards,
- Robert
http://www.cwelug.org/

Harry Kuhman
08-01-2005, 08:06 AM
.... the resulting ISO is 756 MB, which is ~30 MB larger than the 727 MB of the downloaded Knoppix ISO.....
You clearly have a size problem and I do not know the cause or cure of it.

You also have a terminology problem and it may be helpful to correct that before you go further. The 3.8.2 iso is not 727 megs in size. It is, in fact, less than 700 megs in size (sorry, I don't still have that iso on my system or I would give you a more exact size). I believe you, like many people, are confusing bytes, K bytes and megs. 1 meg bytes is not 1,000,000 bytes, it is 1024x1024 bytes (1,048,576 bytes). You should find that the original 3.8.2 ISO is between 693 and 695 megs in size (which helps explain how it fits on a 700 meg CDR or CDRW).

None of this, of course, solves the problem of why your new iso is larger or how to correct that. But getting the terms correct will better help you communicate the problem, and that may help you reach a correct answer sooner.

tr
08-01-2005, 11:45 AM
I did a trivial remaster of Knoppix 3.8.2 (http://www.knoppix.net/wiki/Trivial_remaster_3.8.2). However, the resulting ISO is 756 MB

I think that your porblem is 'trivial remaster' itself in wiki page.

Try to remaster with HOWTO: Remaster the easy way using menu based scripts. It is not perfect but works quite well anyhow. Scripts used in this howto makes cleaning up of remastered system (removes temp files and zeroes cache files) to spare disk space.

-tapsa-

rwcitek
08-01-2005, 01:54 PM
The 3.8.2 iso is not 727 megs in size. It is, in fact, less than 700 megs in size (sorry, I don't still have that iso on my system or I would give you a more exact size). I believe you, like many people, are confusing bytes, K bytes and megs. 1 meg bytes is not 1,000,000 bytes, it is 1024x1024 bytes (1,048,576 bytes). You should find that the original 3.8.2 ISO is between 693 and 695 megs in size (which helps explain how it fits on a 700 meg CDR or CDRW).
Fair enough. The original 3.8.2 iso is 727289856 bytes or 693.59765625 MB. My remastered ISO is 756043776 bytes or 721.01953125 MB, which is 28753920 bytes or 27.421875 MB larger and therefore won't fit on a CD-ROM.

The only thing my remasting script does is copy the files from the CD to two folders and then rebuilds the compressed filesystem and the ISO. Nothing added. Nothing removed.

Regards,
- Robert
http://www.cwelug.org/

rwcitek
08-01-2005, 05:10 PM
I think that your porblem is 'trivial remaster' itself in wiki page.
How's that? That is, where is the problem?

Try to remaster with HOWTO: Remaster the easy way using menu based scripts. It is not perfect but works quite well anyhow. Scripts used in this howto makes cleaning up of remastered system (removes temp files and zeroes cache files) to spare disk space.

I ran the knoppix-remaster script (http://www.knoppix.net/forum/viewtopic.php?t=12530) that the HowTo references using the same setup that I used in the trivial remaster (i.e. same swapfile and same target, /mnt/hda3/knx) and did the following:

1) clicked "yes" for "Do you want to create a new remaster?"
2) chose /mnt/hda3/knx for "New remaster directory"
3) chose "2 - Create compressed fs"
4) chose "3 - Create isofs"
5) chose "6 - Quit"

The resulting ISO was 744538112 bytes or 710.046875 MB, which is still 17248256 bytes or 16.44921875 MB larger than the original ISO.

BTW, I am visualizing the compressed filesystem as a bunch of files in a container which is compressed. If I uncompress the container, I get the files. If I take the files out of the container, put them in a new container, and compress the new container, then I get a new compressed container that should be identical to the original container.

Is that an accurate model of the compressed filesystem?

Regards,
- Robert
http://www.cwelug.org/

rwcitek
08-01-2005, 07:08 PM
BTW, I am visualizing the compressed filesystem as a bunch of files in a container which is compressed. If I uncompress the container, I get the files. If I take the files out of the container, put them in a new container, and compress the new container, then I get a new compressed container that should be identical to the original container.
Apparently, there are hard links on the compressed ISO:

find /KNOPPIX/etc -type f -links +1 | xargs ls -ladi
That means a single file with two names on the original ISO becomes two files when copied.

Regards,
- Robert
http://www.cwelug.org/

tr
08-02-2005, 06:26 AM
[quote=rwcitek]BTW, I am visualizing the compressed filesystem as a bunch of files in a container which is compressed. If I uncompress the container, I get the files. If I take the files out of the container, put them in a new container, and compress the new container, then I get a new compressed container that should be identical to the original container.

I think this is right.

But of your remastering. Have you copied your home directory to /etc/skel and removed it after that? If you have BOTH /etc/skel and /home /knoppix remaining it takes much space. I think that Knoppix.clean script don't empty existing home directory but I might be wrong. Could this be the reason for your too big CD?


-tapsa-