LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Chroot environment error with Linux From Scratch 7.0 (https://www.linuxquestions.org/questions/linux-from-scratch-13/chroot-environment-error-with-linux-from-scratch-7-0-a-920783/)

ubuntudude12 12-27-2011 05:36 PM

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

spiky0011 12-28-2011 02:12 AM

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


All times are GMT -5. The time now is 11:14 PM.