Apps :: chroot : /bin/bash No such file?



Linux filenames / directorynames are CaSe SeNsiTiVe

Does

source/KNOPPIX work for you?

Also, you can use the TAB key on you keyboard to automatically complete the file path, IE:

cd /mnt/s

and then press TAB and you get

cd /mnt/sda1

Press TAB again and you might get

cd /mnt/sda1/sources

If not, keep pressing the TAB key until the right directory appears.  You can help the process by typing in the first few letters of your next directory name before you press TAB.

Just tried the suggested remaster method.

when trying to do a simple:
Code Sample

cp -Rp /KNOPPIX/boot newcd
cp: cannot create symbolic link 'newcd/boot/System.map': Operation not permitted


Same when doing the rest of the copies

Seems like a permission issue?
I am root when doing this.

Just getting worse.

Firstly I had the chroot issue (still unresolved).
2ndly I have the cp issue (with symbolic links not copying)

Now when I tried to create the source/KNOPPIX directory, it creates but when I check with an : ls command it showss up in lower case.
eg knoppix?

Help please.... :(

OK, here we go. Quick Knoppix remastering howto.

Spin up the DSL CD
Pick a partition to remaster from. I will choose sda1 as that is in your first post
Code Sample
mount /dev/sda /mnt/sda1

now, as root, do the following commands
Code Sample
mkdir /mnt/sda1/source

Code Sample
mkdir /mnt/sda1/newcd/KNOPPIX

Code Sample
cp -Rp /cdrom/boot /mnt/sda1/newcd


Copy the FS over to /mnt/sda1/source

Code Sample
cp -Rp /KNOPPIX/* /mnt/sda1/source

Code Sample
cp -Rp /KNOPPIX/.bash_profile /mnt/sda1/source


Now your remaster environment is set.
Now these commands, as root

Code Sample
cd /mnt/sda1

Code Sample
chroot source


Now you are in the remastering environment. when you are done type 'exit' at the command prompt.

There are many ways to remaster Knoppix and many other steps to utilize depending on what you're doing. This is a simple way to setup the environment and chroot into it.

Chris

Solved the permission, symlink and most importantly the chroot issue...

Thanks to:
- Clacker
- Cbagger01
- Clivesay
for you info, which got me thinking about each step.

In particular the case sensitive statement.
Basically the solution is that you need to create an ext2 filesystem

I guess you guys may have already known this and it was just implied.
I had a dos fat filesystem

When i did a mk2efs on the filesystem and eveything started to copy fine.
This statement needs to be in the FAQ or Remastering doc....


The next step I will be asking is
- compiling new application in the environment.
- booting into the new environment to test
Anyone have any tips?

thanks
Simon

Next Page...
original here.