LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-23-2003, 02:08 PM   #1
d33pdream
Member
 
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, 02:11 PM   #2
d33pdream
Member
 
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

**WHEN THEY HAVE A SPACE, THEY MEAN A ___SPACE____ ***
 
  


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

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