Hello to everyone,

I'm trying to make a customized version of KNOPPIX 6.2 that should run totally in RAM.
The customizations I need to do are very few :

1) automount in write mode the first two NTFS/FAT32 partitions of the first hard disk
2) mount the CD/ROM after the default user (knoppix) or (root ?) is logged on
3) start automatically a session of DOSEMU after that the knoppix user is logged on

This is what I did while I was in chroot :

apt-get install dosemu

cd /mnt
mkdir cdrom
mkdir hda1
mkdir hda2
mkdir sda1
mkdir sda2

cd /home/knoppix/.dosemu/drives/c

nano autoexec.bat

lredir e: linux\fs/mnt/cdrom c
lredir f: linux\fs/mnt/hda1
lredir g: linux\fs/mnt/hda2
lredir h: linux\fs/mnt/sda1
lredir i: linux\fs/mnt/sda2

nano /home/knoppix/.bash_profile

#!/bin/sh
clear
read -p "Insert your Windows installation disk and press a key to continue" disco
sudo mount -t auto /dev/cdrom /mnt/cdrom
dosemu

mv /etc/skel /etc/skel-old
mv /home/knoppix /etc/skel
chown root:root -R /etc/skel

cp -Rp /etc/skel /home/knoppix
chown knoppix:knoppix -R /home/knoppix

When Knoppix starts the script I put in /home/knoppix/.bash_profile is not executed. Why ?
The folder /home/knoppix is empty. Instead,I have everything on /etc/skel/,like the .dosemu folder and the .bash_profile script. I would like that it is placed on /home/knoppix and that it is executed when the knoppix starts. Thanks.