LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 10-10-2003, 05:03 PM   #1
akwida
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
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.
 
Old 10-11-2003, 08:44 AM   #2
soulsniper
Member
 
Registered: Apr 2003
Distribution: Server= Fedora Core 2, Desktop= Ubuntu Hoary Preview
Posts: 41

Rep: Reputation: 15
Try CTRL+C, usually works for me
 
Old 10-11-2003, 08:48 AM   #3
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
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.

 
Old 10-24-2003, 02:26 PM   #4
Shachaf
Member
 
Registered: Sep 2003
Location: Port Townsend, WA
Posts: 30

Rep: Reputation: 15
What's the output of echo $LFS?
 
Old 10-25-2003, 03:50 AM   #5
akwida
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
its /mnt/lfs
 
Old 10-25-2003, 01:55 PM   #6
Shachaf
Member
 
Registered: Sep 2003
Location: Port Townsend, WA
Posts: 30

Rep: Reputation: 15
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).
 
Old 10-27-2003, 03:24 PM   #7
randomblast
Member
 
Registered: Aug 2003
Location: Manchester, England, UK, The World....
Distribution: Gentoo/SuSE 9.0
Posts: 291

Rep: Reputation: 30
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.
 
Old 10-27-2003, 03:47 PM   #8
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
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

 
Old 11-05-2003, 03:54 PM   #9
dtheorem
Member
 
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101

Rep: Reputation: 15
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.
 
  


Reply


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
A strange question about chroot zxsmonkey Linux From Scratch 5 04-18-2005 11:19 PM
Chroot - question ef_ Linux - Software 3 10-14-2004 05:57 AM
vsftp and chroot question blubbfish Linux - Security 2 10-04-2004 10:03 AM
First timer question on chroot timna Linux From Scratch 1 07-08-2003 01:04 AM
Another vsftpd/chroot question mattsavigear Linux - Security 9 12-15-2002 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

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