Check the permissions to see if it's executable.
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
Check the permissions to see if it's executable.
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/

NETGEAR GS308EP Essential Series 8-Port Gigabit PoE+ Unmanaged Switch
$39.99
5Ports Gigabit Network Switch w/ 4 PoE+ Ports Total 52W each port 30W Plug&Play
$31.99
Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99
10-Port Gigabit PoE Network Switch with 8 PoE+ Ports with 2 Combo SFP Slots 125W
$39.99
TP-Link TL-SG105 5-Port Gigabit Ethernet Unmanaged Metal Desktop Network Switch
$19.99
TP-Link TL-SG105, 5 Port Gigabit Unmanaged Ethernet Switch, Network Hub, Ethern
$15.25
Cisco Catalyst 2960-48TT-L 48-Port Fast Ethernet Managed Rackmount Switch
$46.99
Arista DCS-7010T-48-R 48P 1GbE 4P 10GbE SFP+ RA Switch with rack mounts
$69.00
TP-Link TL-SX105 10GB 5-Port Switch - Unopened
$195.00
NETGEAR 5-Port Gigabit Ethernet Unmanaged Switch (Gs305) - Desktop Quiet Fanless
$25.99