Help answer threads with 0 replies.
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 12-27-2011, 06:36 PM   #1
LQ Newbie
Registered: Dec 2011
Posts: 20

Rep: Reputation: Disabled
Arrow Chroot environment error with Linux From Scratch 7.0


I am currently on Chapter 6 of the LFS 7.0 book. When I enter the chroot environment with the following command:

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
I then cd into the extracted directory for a package. After I have finished compiling and installing it, I move back out of the directory, but find that I am unable to access any files or folders. When I run the ls command to see what is in my current directory, the command does not return anything. Does anyone know what I am doing wrong? I am using Ubuntu 11.10 on i686.

Old 12-28-2011, 03:12 AM   #2
Senior Member
Registered: Jan 2011
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412

Ok have you restarted the system since finishing the previous chapters? If so did you mount the partition again chapter 2.4 when you restarted.
Then did you mount the file system chapter 6.2.2 and 6,2,3 before entering the chroot
1 members found this post helpful.


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 environment shiva1990 Linux - Newbie 2 01-25-2011 09:55 AM
LXer: Install debian server in a linux chroot environment LXer Syndicated Linux News 0 06-19-2010 06:30 AM
chroot problem in linux from scratch (version 6.4) chapter 6.4, the transition... jason87x Linux - Software 1 07-05-2009 11:22 PM
Out of the chroot environment? R2RO Linux - Networking 0 05-14-2003 05:01 PM
Getting in and out and in again in the CHROOT environment? kRu_ZaDeR Linux From Scratch 8 01-13-2003 01:20 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:50 PM.

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
Open Source Consulting | Domain Registration