Knoppix remastering failed several times.
Hello to everybody,I tried to make the remastering of Knoppix 6.2.1 several times,but right now I've not been able to do it succesfully. Here are the steps I do,please can you check if there is something wrong ? Thanks.
knoppix 2 lang=it (I boot Knoppix 6.2.1 with these parameters)
fdisk -l (these are the partitions of my hard disks)
/dev/sda1 : NTFS (this is the hidden partition did by Windows 7)
/dev/sda2 : NTFS (this is the real partition where is installed win 7)
/dev/sda3 : Linux swap
/dev/sda4 : Linux (I use this partition to make the remastering)
/dev/sdb1 : this is the usb key
These are the commands I give :
mkdir /mnt/sda4/knx
mkdir -p /mnt/sda4/knx/master/KNOPPIX
mkdir -p /mnt/sda4/knx/source/KNOPPIX
cp -Rp /KNOPPIX/* /mnt/sda4/knx/source/KNOPPIX
cp -ar /mnt-system/boot /mnt/sda4/knx/master/boot
cp -ar /mnt-system/KNOPPIX/modules /mnt/sda4/knx/master/KNOPPIX/.
cp /mnt-system/index.html /mnt/sda4/knx/master/
cd /mnt-system && find . -size -10000k -type f -exec cp -p --parents '{}' /mnt/sda4/knx/master/ \;
mount --bind /dev /mnt/sda4/knx/source/KNOPPIX/dev
mount --bind /proc /mnt/sda4/knx/source/KNOPPIX/proc
mount --bind /sys /mnt/sda4/knx/source/KNOPPIX/sys
chroot /mnt/sda4/knx/source/KNOPPIX
mkdir /mnt/sdb1
mount -t auto /dev/sdb1 /mnt/sdb1
cd /mnt/sdb1
cp script /usr/sbin (I need to copy a script inside the squash image file of knoppix)
umount /mnt/sdb1
rm -r sdb1
umount /proc
exit
rm -rf /mnt/sda4/knx/source/KNOPPIX/.rr_moved
mkisofs -R -U -V "K" -publisher "K" -hide-rr-moved -cache-inodes -no-bak -pad /mnt/sda4/knx/source/KNOPPIX | nice -5 /usr/bin/create_compressed_fs - 65536 > /mnt/sda4/knx/master/KNOPPIX/KNOPPIX
cd /mnt/sda4/knx/master
find -type f -not -name sha1sums -not -name boot.cat -not -name isolinux.bin \-exec sha1sum '{}' \; > KNOPPIX/sha1sums
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/sda4/knx/knoppix.iso /mnt/sda4/knx/master
At that point I reboot the computer and then I restart the knoppix remastered image with these parameters : knoppix 2 toram lang=it. It tries to load itself inside the memory and then this error occurr :
/init: line 693: /bin/mount : not found
/init: exec: line 742: /sbin/init: not found
I don't understand why. Please help me thanks.
Last edited by marietto; 08-20-2010 at 03:55 PM.
|