LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-05-2008, 02:29 PM   #1
alkaff
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 02:40 PM.
 
Old 05-05-2008, 04:29 PM   #2
Findus
Member
 
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, 02:51 PM   #3
alkaff
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Original Poster
Rep: Reputation: 0
i tried that before that say error while loding shared object
libc.so.6
 
Old 05-11-2008, 04:31 PM   #4
vadkutya
Member
 
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:
Code:
echo $LFS
it should be set to /mnt/lfs

vadkutya

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


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


All times are GMT -5. The time now is 12:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration