View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 05-05-2008, 03:29 PM   #1
LQ Newbie
Registered: Apr 2008
Posts: 6

Rep: Reputation: 0
Exclamation chroot cannot change the root directory with LFS live CD

root [ ~ ]# chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin/mnt/lfs/tools/bin/bash --login +h

and it says:
chroot cannot change the root directory to /tools/bin/env: no such file or directory

Last edited by alkaff; 05-05-2008 at 03:40 PM.
Old 05-05-2008, 05:29 PM   #2
Registered: Nov 2006
Distribution: Fedora 8
Posts: 64

Rep: Reputation: 15
I am sorry if this sounds too stupid, but have you checked to see if /tools/bin/env actually exists? If not it may be part of a step you have missed.

On the other hand, I may be completely wrong. It is a long time since I tried to build an LFS system (and gave up on it halv way), and this may be a more serious error, but I remember several times when I had to backtrace my steps to actually do a step I was sure I had done a long time ago.

- Findus
Old 05-06-2008, 03:51 PM   #3
LQ Newbie
Registered: Apr 2008
Posts: 6

Original Poster
Rep: Reputation: 0
i tried that before that say error while loding shared object
Old 05-11-2008, 05:31 PM   #4
Registered: Apr 2008
Distribution: slackware 10.2
Posts: 117

Rep: Reputation: 16
chroot should change the root directory to $LFS and then set up the enviroment with /tools/bin/env (i suppose) and not to /tools/bin/env. your problem is with the variable, so check:
echo $LFS
it should be set to /mnt/lfs


Last edited by vadkutya; 05-11-2008 at 05:32 PM.


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: No such file or directory PROBLEM seraph-seph Slackware 11 06-02-2010 08:31 AM
vsftpd chroot, want to allow a directory from elsewhere 60s TV Batman Linux - Security 5 06-16-2007 09:59 AM
Accessing automount directory using chroot prakashpms Linux - Security 1 06-24-2004 06:17 PM
vsftpd home directory and chroot avante Linux - Networking 4 03-17-2003 02:56 AM
Chroot (FTP,Home Directory) Thanewbie Linux - Security 2 05-14-2001 03:49 AM

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