Other Help Topics :: hroot: cannot run command `/bin/bash': No such fil



hey, i just coppyed my remastered dsl to a difrent computer and now when i chroot into it i get the following error, "chroot: cannot run command `/bin/bash': No such file or directory" the file is clearly there has anyone got any idears??
The only idea i have is that you are chrooting to the wrong directory.
root@nick:/home/fester # chroot /new/new/source/
chroot: cannot run command `/bin/bash': No such file or directory
root@nick:/home/fester # cd /new/new/source/
.bash_profile     etc/              menu.sh           sbin/
.bash_profile~    floppy/           menu.sh~          sys/
.bash_profileold  home/             mnt/              tmp
bin/              knoppix/          none/             usr/
boot/             lib/              opt/              var/
cdrom/            menu              proc/
dev/              menu~             root/

seems fine to me

I dunno what else to say, except maybe there's a weird thing with DSL's chroot or bash.  It does seem to be picky about using trailing slashes, so you might try that.  For instance, I've noticed that "ls directory" returns the directory itself, when "ls directory/" returns the contents.
Make sure you have mounted the partition as root:

Code Sample
mount /dev/hda3 /mnt/hda3


Or whatever your HD partition's name is.

Chris

Next Page...
original here.