LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-27-2011, 05:36 PM   #1
ubuntudude12
LQ Newbie
 
Registered: Dec 2011
Posts: 20

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


Hi,

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

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
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.

-Aaron
 
Old 12-28-2011, 02:12 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

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

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.
  


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

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

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