Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 06-02-2005, 12:51 PM   #1
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Rep: Reputation: 15
Now Bash isnt working within the chroot enviroment

Now I can get the "I have no name!" output when I chroot, but nothing works in bash! Every time I put in a command I get no output and no prompt what-so-ever. Im thinking it's because I had to recompile bash, which pisses me off!!!

Ive spent hours working on this to have to turn right around and start all over, not because of a mistake I made but because of a mistake made in the documentation. Which brings me to question number one...........

1.) How many more documentation errors am I going to run into thats going to force me to turn around and start all over again.....again!???

Does anyone know how to fix this without me having to do all of this over?

Thanks in advance...I gotta take a break!
Old 06-02-2005, 03:21 PM   #2
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
you are inside the chrooted environment, you have one of the following circumstances:

1) Bash is looking for the programs in /usr/bin/someprogramiwanttofind
2) Bash is looking for the programs in /tools/bin/someprogramiwanttofind

*there are more locations bash looks in, but they are irrelevant as they still point to one of these two problems

Now, to find out what is going out type the following command:

echo $PATH

If what you get back looks something similar to: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin. Then this means that you have finished installing the temporary system (or should have!). In this case, you didn't finish installing some things on your new system or you forgot to append /tools/bin to the PATH.

You should make sure /tools/bin or /tools/something is in PATH <-- re-read the LFS environment setup pages for this.
If adding the /tools to the PATH does not solve the problem, then somethings is missing ou need to exit the chrooted environment and find the missing program and install it.

If it /tools is somewhere in there, then your program is not installed in /tools. I would call this worse case, problem could be missing file or badly configured linker (see the pages about If you are here, then it may be easier to reinstall the new system, delete the tools directory and reinstall that as well. Unless of course, you are willing to spend time experimenting and learning how to solve your problem as I am very confident that the specific solution will be found by spending a few hours searching the LFS mailing lists archives.

There are a very delicate parts of the installation that deal with switching between the systems and messing up anywhere in there will cause this kind of problem
Old 06-02-2005, 06:37 PM   #3
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Original Poster
Rep: Reputation: 15
Im on it! After taking a break I decided to start the process all over again. (Actually Ive done this two or three other times and have corrected mistakes and learned a ton from doing so). This time around things are going a little more smoothly and with the help of you lfs gurus I have made improvements each time in. Im just one step closer to getting this thing up and running like a champ!

Thanks for your help yerp. Wish me luck..Im having a blast


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
YaST isnt working DickH SUSE / openSUSE 19 06-12-2006 12:22 AM
Bash Enviroment JackDee Linux - Newbie 1 11-03-2005 01:33 AM
I cant get into the chroot matthewa Linux From Scratch 2 06-02-2005 11:47 AM
Sound Isnt Working LinuxNoob1234 Linux - Newbie 8 05-07-2005 12:51 AM
help,windows isnt working Geefthegreat Linux - Newbie 2 04-06-2004 01:06 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration