Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have a filesystem build with buildroot, to compile code for a device using a old kernel and uClibc.

Now i want to chroot into the fs. The problem is, i dont have /bin/bash, just /bin/busybox.
How do i say chroot to use busybox ash instead?
I already tried to create a link to busybox ash, but chroot still says failed to run command /bin/bash. no such file or directory.

share|improve this question
chroot /path/to/fs /bin/ash

See the chroot man page for details.

share|improve this answer
this doesn't work, i just have busybox in my /bin/ directory. – Pingu Dec 13 '12 at 15:13
You said that you had a link ash -> busybox. Anyway, just run chroot /path/to/fs /bin/busybox ash then. – Stéphane Chazelas Dec 13 '12 at 15:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.