Oracle Linux: chroot: failed to run command ‘/bin/bash’: Exec format error — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

Oracle Linux: chroot: failed to run command ‘/bin/bash’: Exec format error


APPLIES TO:


Linux OS - Version Oracle Linux 7.0 and later
Linux x86-64


SYMPTOMS


When attempting to run chroot /mnt on the debug instance resulted in the following error.
#chroot /mnt
chroot: failed to run command ‘/bin/bash’: Exec format error

CAUSE

The error indicates that the binary /mnt/bin/bash cannot be executed in the current environment.


The two most common reasons are:

Architecture mismatch:
The root filesystem mounted at /mnt is from a system built for a different CPU architecture than the current environment.

Example:
The /mnt filesystem is from an ARM (aarch64) instance, but the chroot command is being run in an

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!