Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-23-2003, 03:08 PM   #1
Registered: Jan 2003
Distribution: LFS
Posts: 90

Rep: Reputation: 15
chroot problem (thinks 'env' is a directory)

Working on my first LFS system and i've gotten to the point where i need to chroot my new LFS partition and the book says to type:

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

(where $LFS = (for me) /mnt/lfs/)

So this is what i type and get back:

[root@localhost lfs]# /usr/sbin/chroot /mnt/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

/usr/sbin/chroot: cannot change root directory to /mnt/lfs/static/bin/env: Not a directory

any ideas?
Old 02-23-2003, 03:11 PM   #2
Registered: Jan 2003
Distribution: LFS
Posts: 90

Original Poster
Rep: Reputation: 15
whoa, OK. I wasn't taking the book seriously when i saw a space inbetween the $LFS and static/bin/env -i. I left the space out thinking that the variable needed to fill out the first part of that path but nope. K, another thread to chalk up on the search for new comers



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 On
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
etc of the host changes while working in chroot env sharmashikha Linux From Scratch 3 06-15-2005 01:20 PM
intaling GCC-3.3.3. in chroot env FAILS tests xtrem Linux From Scratch 1 02-18-2005 01:24 PM
help? gettext fails test under chroot env jobesd Linux From Scratch 2 01-19-2005 08:13 PM
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 - General

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