PDA

View Full Version : Chroot Problem



davidx7773
12-06-2006, 04:23 AM
I am trying to remaster KNOPPIX by following this wiki page:
http://www.knoppix.net/wiki/Knoppix_Remastering_Howto.

I copied the /KNOPPIX directory to my local hard drive using this command:
cp -Rp /KNOPPIX/* /mnt/sda1/knoppix-cd/KNOPPIX/

BTW: This hard drive is FAT32 is that why when I made a KNOPPIX directory it appeared as knoppix. Can I even do this from FAT32?

Then I tried to chroot into that directory by:
chroot /mnt/sda1/knoppix-cd/knoppix/ I get:
chroot: cannot run command `/bin/bash': No such file or directory

So, I tried running /mnt/sda1/knoppix-cd/knoppix/bin/bash and it works fine.

Here is what I did:
root@2[knoppix-cd]# chroot knoppix/
chroot: cannot run command `/bin/bash': No such file or directory
root@2[knoppix-cd]# ls knoppix/bin/bash
knoppix/bin/bash
root@2[knoppix-cd]# chroot /mnt/sda1/knoppix-cd/knoppix/
chroot: cannot run command `/bin/bash': No such file or directory
root@2[knoppix-cd]# ls /mnt/sda1/knoppix-cd/knoppix/bin/bash
/mnt/sda1/knoppix-cd/knoppix/bin/bash
root@2[knoppix-cd]# cd knoppix/
root@2[knoppix]# chroot ./
chroot: cannot run command `/bin/bash': No such file or directory
root@2[knoppix]# ./bin/bash
root@2[knoppix]#


What am I doing wrong?
Thanks in advance for any help.

David

jastreich
12-07-2006, 05:08 PM
Check the permissions to see if it's executable.

knopx4me
12-13-2006, 06:12 PM
Your problem is due to the use of different letter cases as follows:

You did:

cp -Rp /KNOPPIX/* /mnt/sda1/knoppix-cd/KNOPPIX/
Then
chroot /mnt/sda1/knoppix-cd/knoppix/

But, it should be:

chroot /mnt/sda1/knoppix-cd/KNOPPIX/