LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-17-2003, 06:25 AM   #16
darus
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0

Quote:
Originally posted by Rito
i cannot go directly to the chroot environment as it says it can not find the bash file.
i have copied the executibles to the $LFS/bin directory and they are executible and i can execute them fine
echo $PATH does show :/bin as one of the paths
and i still cant chroot to the $LFS directory
I believe I know the reason. I had the same problem when I tried to use env, which has been compile with dynamic linking. It requires the \lib dir with some libraries in it, it seems.
 
Old 08-25-2003, 10:34 AM   #17
ksnash
Member
 
Registered: Jul 2003
Location: Pensacola,Florida
Distribution: Mandrake 9.1
Posts: 41

Rep: Reputation: 15
I am having the exact same problem. I can't chroot to lfs directory. My lfs is on /lfs is only difference. Same thing /lfs/static/bin/{env,bash} are executable and can be ran as root from their present location.

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

/static/bin/env: /static/bin/bash: No such file or directory

echo $LFS
/lfs

chroot /lfs
chroot: /bin/bash: No such file or directory

ls -l /lfs/static/bin/{bash,env}
-rwxr-xr-x 1 root root 625516 Aug 25 10:06 /lfs/static/bin/bash*
-rwxr-xr-x 1 root root 426644 Aug 25 10:06 /lfs/static/bin/env*

s -l /bin/{bash,env}
-rwxr-xr-x 1 root root 625516 Jan 14 2003 /bin/bash*
-rwxr-xr-x 1 root root 11832 Feb 13 2003 /bin/env*


I do notice that the env from LFS is really big even though i stripped it.
 
Old 09-14-2003, 09:55 PM   #18
Shachaf
Member
 
Registered: Sep 2003
Location: Port Townsend, WA
Posts: 30

Rep: Reputation: 15
I think you should mount $LFS -o remount,exec,dev,rw .

Then chroot.

If that doesn't work, what is the output of chroot?
 
  


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
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
Almost sucessfully update Mandriva LE 2005 Lucas10 Linux - Software 1 08-16-2005 02:14 AM
hang at boot up after sucessfully install fglrx zhyjanet Debian 5 04-03-2005 11:56 PM
Has anyone sucessfully installed Knoda? Baldrick65 Linux - Software 0 08-22-2004 06:09 AM
Anyone sucessfully install cdbakeoven? solspin Linux - Software 0 07-05-2003 12:50 PM

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

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