View previous topic :: View next topic |
Author |
Message |
youxiaojie n00b
Joined: 25 Jan 2025 Posts: 5
|
Posted: Wed Jan 29, 2025 7:21 pm Post subject: repair my old gentoo,but chroot alway say /bin/bash failed |
|
|
I mount my grub broken gentoo to live cd,but chroot /mnt/gentoo /bin/bash failed. alway failed to run command /bin/bash. no such file or directory.
I try /usr/bin/bash,the same.
however the first time I install gentoo sames all right.
why?and how I can deal.it?
even when I mount it to my installed gentoo on another pc. the same
thanks! |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1472 Location: Richmond Hill, Canada
|
Posted: Wed Jan 29, 2025 7:29 pm Post subject: |
|
|
check /mnt/gentoo/bin/bash, does it exist?
Code: | namei /mnt/gentoo/bin/bash |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54794 Location: 56N 3W
|
Posted: Wed Jan 29, 2025 7:56 pm Post subject: |
|
|
youxiaojie,
That error can be triggered by a missing dynamic linker or one of the libraries that bask needs. From an arm64 system.
Code: | ~ # lddtree /bin/bash
/bin/bash (interpreter => /lib/ld-linux-aarch64.so.1)
libreadline.so.8 => /usr/lib64/libreadline.so.8
libtinfow.so.6 => /lib64/libtinfow.so.6
libtinfo.so.6 => /lib64/libtinfo.so.6
libc.so.6 => /lib64/libc.so.6
ld-linux-aarch64.so.1 => /lib/ld-linux-aarch64.so.1
|
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
youxiaojie n00b
Joined: 25 Jan 2025 Posts: 5
|
Posted: Wed Jan 29, 2025 8:03 pm Post subject: |
|
|
pingtoo wrote: | check /mnt/gentoo/bin/bash, does it exist?
Code: | namei /mnt/gentoo/bin/bash |
|
sure |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 2000
|
Posted: Wed Jan 29, 2025 8:39 pm Post subject: |
|
|
Ensure that the mounted device does not have the options noexec, user, or users attached to it. (Check with mount command) |
|
Back to top |
|
|
|