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 03-29-2009, 03:41 PM   #1
Registered: Mar 2009
Posts: 30

Rep: Reputation: 16
6.4. Entering the Chroot Environment: /tools/bin/env: no such file

# 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 +h
chroot: cannot execute /tools/bin/env: No such file or directory
# ls -l /tools/bin/env
-rwxr-xr-x 1 root root 27700 2009-03-28 17:54 /tools/bin/env
# find $LFS/tools/bin/env

Last edited by jpeters; 03-29-2009 at 03:47 PM.
Old 03-29-2009, 10:58 PM   #2
Registered: Mar 2009
Posts: 30

Original Poster
Rep: Reputation: 16
With some research, I found the problem. For the command to work, it needed bash and its dependencies copied into in the new root directory from the host system. I never used chroot before, so this is all new.

Last edited by jpeters; 03-30-2009 at 12:15 AM.


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
chroot: cannot run command `/tools/bin/env': No such file or directory Basel Linux From Scratch 10 06-09-2018 03:15 PM
problem with env while entering chroot'ed environment trurl23 Linux From Scratch 1 06-15-2008 04:12 PM
/tools/bin/env: /tools/bin/bash: No such file or directory DaZjorz Linux From Scratch 21 07-27-2005 08:11 AM
Problem entering chroot environment. mullog Linux From Scratch 1 06-05-2004 09:12 AM
Cannot Enter chroot /usr/bin/env directory not found Zero-0-Effect Linux From Scratch 2 03-13-2004 01:41 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:14 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