Hi. I managed to work things out, sufficient for what I was trying to do.
I downloaded a version of DamnSmallLinux, which is already a cut down version of Knoppix.
I then mounted the iso image as per the following command:
mount -o loop -t iso9660 -r dsl0.8.2.iso /mnt/iso
I then copied over the contents to a writeable directory.
cp -r /mnt/iso .
I then added a new directory with all my data and programs.
cp ~ross/EXPERIMENTS iso/EXPERIMENTS
I then found that I had to download a floppy boot image from the same source as I obtained DamnSmallLinux. This may not be necessary, but I couldn't find the boot image in the cdrom image I'd downloaded. The version of DSL linux I downloaded was 0.8.2, and there was no 0.8.2 floppy image. But, the 0.8.0 image worked fine.
cp boot-0.8.0.img iso/boot/isolinux/boot.img
I then created a new cd image using the following command:
mkisofs -r -b boot/isolinux/boot.img -c boot/isolinux/boot.cat -o bootcd.iso iso
Note the -b option for the boot image and the -c option for the catalogue. The catalogue was already present in the DSL disk image. I then burnt this to cd
cdrecord -dev=0,0,0 bootcd.iso
And hey presto, I had a bootable cd with my programs and data on it. As the true file systems were compressed, my data wasn't in any "normal" place, but I found it in /cdrom/EXPERIMENTS. I don't care where the data is as long as I can find it. I'm going to have to copy a java JRE installation there as well, but I don't think that this should be a problem, as I can configure my experiment bash-scripts to do whatever I want and find java where-ever it is.
So, now I have what I need. There is a script for remastering Knoppix (see
http://www.knoppix.net/forum/viewtopic.php?t=12578), but my method is simpler (if less flexible).
This will also make it exceptionally easy to distribute my data and programs should anyone ask for them :-)
Cheers,
Ross-c