LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-09-2005, 07:01 AM   #1
_InTeNsDoWn_
Member
 
Registered: Dec 2004
Location: Portugal
Distribution: Slackware
Posts: 34

Rep: Reputation: 15
Chroot Error


Me and 2 guys are developping a distro from scratch, when we do:

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
It gives this error:


Quote:
chroot: cannot run command `/tools/bin/env': No such file or directory
Anyone knows why this error happens?
 
Old 07-09-2005, 07:57 AM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
because /tools/bin/env does not exsit or has not been mounted in your file system.


check your tools directory /tools/bin to see if you have the env program ?
 
Old 07-12-2005, 02:37 PM   #3
_InTeNsDoWn_
Member
 
Registered: Dec 2004
Location: Portugal
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 15
I have that, if i do a chroot /liveusb it give me
/bin/sh: No such file or directory
 
Old 07-12-2005, 03:10 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The command you want to execute must exist in the new root. So, it must be $LFS/tools/bin/env, in your case.
 
Old 07-13-2005, 03:26 PM   #5
_InTeNsDoWn_
Member
 
Registered: Dec 2004
Location: Portugal
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Matir
The command you want to execute must exist in the new root. So, it must be $LFS/tools/bin/env, in your case.
This exist, i dont know why it happens

I readed the FAQ of LFS, and I do what it said and the error continues.
 
Old 07-13-2005, 03:29 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Are you sure $LFS/tools/bin/env exists, and is executable?

Please do "ls -l $LFS/tools/bin/env" and post the output here.
 
Old 07-14-2005, 01:19 PM   #7
_InTeNsDoWn_
Member
 
Registered: Dec 2004
Location: Portugal
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 15
alexandre@Heaven:/tools$ ls -l $LFS/tools/bin/env
-rwxr-xr-x 1 alexandre users 46178 2005-07-09 00:33 /liveusb/tools/bin/env*
 
Old 07-14-2005, 01:30 PM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
That's really odd. What options is /liveusb mounted with? (Post output from mount)
 
Old 07-15-2005, 06:33 AM   #9
_InTeNsDoWn_
Member
 
Registered: Dec 2004
Location: Portugal
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 15
I dont have it on a partition, but in /liveusb
 
Old 07-15-2005, 09:05 AM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
It should work fine. I personally have no clue about what's going on there.
 
  


Reply



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
LFS 6 Chapter 6.3 chroot error gatblast45 Linux From Scratch 8 01-01-2008 03:12 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
yum Error: NetworkManager conflicts with bind-chroot btb Fedora 1 10-21-2005 03:55 AM
chroot Problem with transferring files + groups/id error niall0s Linux - General 7 08-11-2004 12:21 AM
tomsrtbt chroot error iggymac Linux - General 16 06-26-2003 03:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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