LinuxQuestions.org
Review your favorite Linux distribution.
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 02-25-2008, 11:44 PM   #1
project_LFS
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
problem while chrooting into $LFS


i have a problem while chrooting in to the $LFS in chapter 6.4.

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

it says "operation is not permmitted".

is this because the command is been run in an unprevileged user "lfs".
plzzzzzzzz help me out.
im using the book version 6.3.
 
Old 02-26-2008, 03:51 PM   #2
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
According to chapter 6.4, the chroot command needs to be run as root, not lfs. So yes, it is because of the unprivileged user.
Quote:
It is time to enter the chroot environment to begin building and installing the final LFS system. As user root, run the following command to enter the realm that is, at the moment, populated with only the temporary tools:
 
Old 02-27-2008, 11:51 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <LFS> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 03-03-2008, 01:15 PM   #4
project_LFS
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
"problem while chrooting into $LFS"

i tried chrooting into $LFS from root but i got prblm

when i tried to chroot into $LFs from root it is giving

/tools/bin/env no such file or directory

but tht file is present even thn it is unable to make changes to env file

PLZZZZZZZZZZ help me
 
  


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
LFS question - lack of activity in LFS Forum nykey Slackware 4 06-05-2006 05:54 PM
chrooting httpd+squirrelmail problem. panicbox Linux - Software 5 05-17-2006 10:57 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
chrooting problem with ubuntu linuxmandrake Linux - General 3 01-04-2006 11:09 PM
BLFS: Error on chrooting into LFS environment StevePhM Linux From Scratch 13 08-01-2005 03:28 AM

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

All times are GMT -5. The time now is 07:42 PM.

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