Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
repair my old gentoo,but chroot alway say /bin/bash failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
youxiaojie
n00b
n00b


Joined: 25 Jan 2025
Posts: 5

PostPosted: Wed Jan 29, 2025 7:21 pm    Post subject: repair my old gentoo,but chroot alway say /bin/bash failed Reply with quote

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
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1472
Location: Richmond Hill, Canada

PostPosted: Wed Jan 29, 2025 7:29 pm    Post subject: Reply with quote

check /mnt/gentoo/bin/bash, does it exist?

Code:
 namei /mnt/gentoo/bin/bash
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54794
Location: 56N 3W

PostPosted: Wed Jan 29, 2025 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
youxiaojie
n00b
n00b


Joined: 25 Jan 2025
Posts: 5

PostPosted: Wed Jan 29, 2025 8:03 pm    Post subject: Reply with quote

pingtoo wrote:
check /mnt/gentoo/bin/bash, does it exist?

Code:
 namei /mnt/gentoo/bin/bash

sure
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2000

PostPosted: Wed Jan 29, 2025 8:39 pm    Post subject: Reply with quote

Ensure that the mounted device does not have the options noexec, user, or users attached to it. (Check with mount command)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum