chroot: failed to run command ‘/bin/bash’:

I am trying to modify a kernel image before using it for qemu. I am trying to add a compiled binary to the image. What I am doing is,

> linaro-media-create --image_file vexpress.img --dev vexpress --binary linaro-natty.tar.gz --hwpack hwpack_linaro.tar.gz
> sudo mount -o loop,offset=$((106496*512)) -t auto vexpress.img /mnt

> cd /mnt 

> sudo mount --bind /proc /mnt/proc 

> sudo mount --bind /dev /mnt/dev

> sudo chroot . 

> chroot: failed to run command ‘/bin/bash’: No such file or directory

I need to get past this error in order to scp files into the image. Kindly help.

Source: linux

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.