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

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


Code:
# 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
Code:
# ls -l /tools/bin/env
-rwxr-xr-x 1 root root 27700 2009-03-28 17:54 /tools/bin/env
Code:
# find $LFS/tools/bin/env
/mnt/hda4/lfs/tools/bin/env

Last edited by jpeters; 03-29-2009 at 02:47 PM.
 
Old 03-29-2009, 09:58 PM   #2
jpeters
Member
 
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-29-2009 at 11:15 PM.
 
  


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

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

All times are GMT -5. The time now is 11:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration