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/
Dell PowerEdge R730 2x E5-2699V3 2.3Ghz 36 Core 128GB RAM H730 X520-I350 2x750W
$329.99
Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD
$197.99
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$159.99
Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config
$489.99
Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330
$182.65
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE
$259.00
Dell PowerEdge R720xd 26HDD 300gb 2.5-inch E5-2697 X 2CPU 384RAM 7.2 Tb HDD 
$180.00
Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server
$174.99
HPE ProLiant DL360 Gen9 4LFF 2x E5-2667v3 3.2GHz =16 Cores 32GB P440AR 4xRJ45
$216.00
1U Server ( 4x VM's ) Hosting VPS Short Depth 20" 1U Xeon 3.5Ghz 16GB X10SLM-F
$149.00