Download your favorite Linux distribution at LQ ISO.
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-03-2004, 05:20 PM   #1
Registered: May 2004
Posts: 61

Rep: Reputation: 15
Problem entering chroot environment.

I've tried exactly this command(as root user):
chroot $LFS /tools/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login

and it gives the following output:
chroot: /tools/bin/env: No such file or directory

From what i understant the env command runs after the root is $LFS, and as i have the tools directory under $LFS/home(which is a different partition), i tried this:
chroot $LFS /home/tools/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login

But it gives the same "no such file or directory" error.

PS:I have the /tools symlink which points to $LFS/home/tools/

Old 06-05-2004, 08:12 AM   #2
Registered: May 2004
Posts: 61

Original Poster
Rep: Reputation: 15
I solved the problem. All i had to do was create a simbolic link to $LFS/home/tools and it was ok.


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
getting started in chroot environment Mystified Linux From Scratch 3 03-28-2005 09:11 AM
mount in chroot environment not possible moskito01 SUSE / openSUSE 5 12-06-2004 04:06 PM
Apache in a chroot environment tarballedtux Linux - Software 1 04-13-2004 07:37 PM
Out of the chroot environment? R2RO Linux - Networking 0 05-14-2003 04:01 PM
Getting in and out and in again in the CHROOT environment? kRu_ZaDeR Linux From Scratch 8 01-13-2003 12:20 AM

All times are GMT -5. The time now is 08:09 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration