chroot failing with: cannot run command `/bin/bash': No such file or directory
This document (000020553) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 11
Situation
chroot: failed to run command ‘/bin/bash’: No such file or directory
Resolution
- Making sure the real root filesystem is mounted.
- Ensuring that /bin/bash exists.
- All needed libraries are installed.
- Restoring the system from a valid backup.
Cause
- Wrong root filesystem mounted. Double check if mounted disk is the real root filesystem.
- The /bin/bash executable is missing or symbolic link pointing to non-existing/wrong file.
- The libraries needed to run /bin/bash are missing. "ldd" could be used to check for the needed libraries.
- The root filesystem is missing either /lib or /lib64 directory.
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020553
- Creation Date: 21-Jan-2022
- Modified Date:24-Feb-2022
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com