M BUZZ CRAZE NEWS
// news

chroot failed to run command

By Sarah Rodriguez

Now after 2 days of pulling my hair it is obvious for me that on other ubuntu machine I can chroot into a VM client (VBOX).

I am trying to chroot from live media to a ubuntu VM client.
I mounted:

mount /dev/sda1 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /dev/pts /mnt/dev/pts
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt /bin/bash

chroot: failed to run command '/bin/bash': no such file or directory

this image is no longer relevant

I check /bin/bash and *bash is there

enter image description here

Below is an example with chroot on other machines with any live distros to any client (linux-based only).

enter image description here

Did I miss something? Did I missed any libs on first machine? I chrooted with ubuntu live and every time worked flawlessly. Thanks, guys!

Update: Finally works, some libs were missing.

Solved

7 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy