[lfs-support] cannot execute /bin/bash : No such file or Directory exists

Ken Moffat zarniwhoop at ntlworld.com
Fri Mar 22 12:53:19 PDT 2013


On Fri, Mar 22, 2013 at 12:01:50PM +0530, Mohamad Audhil wrote:
> Hi,
> 
> For the first time I builded my own LFS, everything is fine but when I boot
> my LFS, it prompts me to give user name and password.
> 
> But after issuing user name and password, it throws some error like this...
> 
> 
> Cannot execute /bin/bash : No such file or directory
> 
> I saw this similar thread at
> http://www.mail-archive.com/lfs-support@linuxfromscratch.org/msg05738.html
> 
> I tried according to the link above, but all my efforts failed...
> 
> Kindly suggest me a direction to get rid of this problem...

 I assume that you did indeed install bash in chapter 6 ?  In that
case, _at_least_ /bin/bash is linked to a library not in the new
system (i.e. something in /tools).  From the host, mount /mnt/lfs
and then run 'ldd /mnt/lfs/bin/bash'.  After that you probably want
to look at compiled programs from other packages in case any of
those other packages are linked to something in /tools.

 If most packages are linked to /tools then your best bet is to
start again (and check the steps for readjusting the toolchain).  If
only a few packages (or only bash) are wrong, chroot /mnt/lfs and
rebuild it/them.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce



More information about the lfs-support mailing list