hello I had a successful remastering following article:
http://knoppix.net/wiki/Knoppix_Remastering_Howto
This procedure is that I ran:
# Open a console
sudo -s
mount -rw /dev/hda1 /mnt/hda1
mkdir /mnt/hda1/knx
mkdir -p /mnt/hda1/knx/master/KNOPPIX
mkdir -p /mnt/hda1/knx/source/KNOPPIX
cp -Rp /KNOPPIX/* /mnt/hda1/knx/source/KNOPPIX
cd /mnt-system && find . -size -10000k -type f -exec cp -p --parents '{}' /mnt/hda1/knx/master/ \;
# Step 1 internet access (copy the three nameserver)
nano /etc/resolv.conf
CTRL + X for close
# Setup the environment for chroot
mount --bind /dev /mnt/hda1/knx/source/KNOPPIX/dev
mount --bind /proc /mnt/hda1/knx/source/KNOPPIX/proc
mount --bind /sys /mnt/hda1/knx/source/KNOPPIX/sys
chroot /mnt/hda1/knx/source/KNOPPIX
# Step 2 internet access (paste the three nameserver)
nano /etc/resolv.conf
CTRL + o + ENTER for save
CTRL + x for close
# update and install
apt-get update
apt-get -t lenny install .......
apt-get install .......
# clear
apt-get clean
apt-get autoclean
COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' | xargs dpkg -P
deborphan
deborphan | xargs apt-get -s -y remove
deborphan | xargs apt-get -y remove
# Step 3 internet access (remove the three nameserver)
nano /etc/resolv.conf
CTRL + o + ENTER for save
CTRL + x for close
# Step 1 the end
history -c
umount /dev /mnt/hda1/knx/source/KNOPPIX/dev
umount /proc /mnt/hda1/knx/source/KNOPPIX/proc
umount /sys /mnt/hda1/knx/source/KNOPPIX/sys
history -c
CTRL + D
# Step 1 the end (the single compression)
rm -rf /mnt/hda1/knx/source/KNOPPIX/.rr_moved
mkisofs -R -U -V "KNOPPIX.net filesystem" -publisher "KNOPPIX www.knoppix.net" \
-hide-rr-moved -cache-inodes -no-bak -pad /mnt/hda1/knx/source/KNOPPIX \
| nice -5 /usr/bin/create_compressed_fs - 65536 > /mnt/hda1/knx/master/KNOPPIX/KNOPPIX
# Step 2 the end (the gib compression)
mkisofs -R -U -V "KNOPPIX.net filesystem" -publisher "KNOPPIX www.knoppix.net" \
-hide-rr-moved -cache-inodes -no-bak -pad /mnt/hda1/knx/source/KNOPPIX \
| nice -5 /usr/bin/create_compressed_fs -L -1 - 65536 > /mnt/hda1/knx/master/KNOPPIX/KNOPPIX
# Step 3 the end (create md5)
cd /mnt/hda1/knx/master
find -type f -not -name md5sums -not -name boot.cat -not -name isolinux.bin \
-exec md5sum '{}' \; > KNOPPIX/md5sums
# Step 4 the end (create an ISO image)
mkisofs -pad -l -r -J -v -V "KNOPPIX" -no-emul-boot -boot-load-size 4 \
-boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
-hide-rr-moved -o /mnt/hda1/knx/knoppix.iso /mnt/hda1/knx/master