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. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-10-2003, 05:03 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Posts: 2
Rep:
|
chroot question
i am completing the "installing basic system software" chapter in LFS. i type in the following to change to the chroot environment.
chroot $LFS /static/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
/static/bin/bash --login
this gives me:
>
>
>
>
if i continue entering commands, there is no feed back at the command line. just more:
>
>
>
>
is this right, or have i missed something???
and by the way, once I'm at this prompt, I can never get out.
|
|
|
10-11-2003, 08:44 AM
|
#2
|
Member
Registered: Apr 2003
Distribution: Server= Fedora Core 2, Desktop= Ubuntu Hoary Preview
Posts: 41
Rep:
|
Try CTRL+C, usually works for me
|
|
|
10-11-2003, 08:48 AM
|
#3
|
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Rep:
|
I think that $LFS is suposed to be /mnt/ what ever you named the directory for your Linux from scratch.
Hope that helps.
I'm working my way through LFS too.

|
|
|
10-24-2003, 02:26 PM
|
#4
|
Member
Registered: Sep 2003
Location: Port Townsend, WA
Posts: 30
Rep:
|
What's the output of echo $LFS?
|
|
|
10-25-2003, 03:50 AM
|
#5
|
LQ Newbie
Registered: Oct 2003
Posts: 2
Original Poster
Rep:
|
its /mnt/lfs
|
|
|
10-25-2003, 01:55 PM
|
#6
|
Member
Registered: Sep 2003
Location: Port Townsend, WA
Posts: 30
Rep:
|
Try typing it in again, very carefully. It looks like you have a leftover quote somwhere. To exit the PS2 command prompt you should type ^C (Control-C).
|
|
|
10-27-2003, 03:24 PM
|
#7
|
Member
Registered: Aug 2003
Location: Manchester, England, UK, The World....
Distribution: Gentoo/SuSE 9.0
Posts: 291
Rep:
|
no, it's because you've just copied the whole block of commands straight from the book, instead of typing it out, copying one line at a time, or putting it in a shell script.
|
|
|
10-27-2003, 03:47 PM
|
#8
|
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Rep:
|
Ok, I'm going to try to help a bit here.
When the guide say "$LFS" that means you have to fill in the correct path. Example. When I done my Gentoo I created a directory in the /mnt directory called gentoo. When ever it came time to fill that in I had to put in /mnt/gentoo.
You need to replace "$LFS" with the correct path to the LFS directory.
Does that make sense? If not tell me what is in the /mnt directory and I'll try to help. I haven't been able to work on LFS lately so I may be wrong here. Somebody "bash" me if I am.
Later

|
|
|
11-05-2003, 03:54 PM
|
#9
|
Member
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101
Rep:
|
Did you try to copy and paste the text from the book? I tried that and got the same result as you. I had to type it in manually. It's weird enough to be from the Twilight Zone or somthing. If you did type it, is there a space before your end of line ' \ ' ? This would cause problems as well.
|
|
|
All times are GMT -5. The time now is 03:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|