Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

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. –  Stephane Chazelas Dec 13 '12 at 15:17
add comment

Your Answer

 
discard

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.