LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-09-2007, 11:14 PM   #1
marcks_slack
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
Question "urgent" I'm a have problem with execut command.


"urgent" I'm a have problem with execut command.

root@ulisses:/mnt/lfs/tools# chroot "$LFS" /mnt/lfs/tools/bin/env -i HOME=/mnt/lfs/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/mnt/lfs/bin:/mnt/lfs/usr/bin:/mnt/lfs/sbin:/mnt/lfs/usr/sbin:/mnt/lfs/tools/bin/ /mnt/lfs/tools/bin/bash --login +h
chroot: cannot change root directory to : No such file or directory
root@ulisses:/mnt/lfs/tools#


Please help-me I need.
 
Old 10-09-2007, 11:33 PM   #2
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 13.37 Android 4.0
Posts: 2,248

Rep: Reputation: 46
Quote:
No such file or directory
This pretty much says it all. You've mistyped something.
 
Old 10-10-2007, 04:02 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,379

Rep: Reputation: Disabled
And also, this looks like a LFS problem not Slackware. Why don't you let a moderator move this post to the LFS forum?

Eric
 
Old 10-10-2007, 06:37 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Good idea, moved to LFS
 
Old 10-10-2007, 09:35 AM   #5
marcks_slack
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Correct, this is a problem with LFS, but im using the slack as a host. I dont speak english, my english is poor, but Im trying. therefore I posted here.
 
Old 10-10-2007, 11:14 AM   #6
marcks_slack
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Pelase, somebody can help me like this problem? Why of this happening when i`m turning the command?

root@ulisses:/mnt/lfs/tools# chroot "$LFS" /mnt/lfs/tools/bin/env -i HOME=/mnt/lfs/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/mnt/lfs/bin:/mnt/lfs/usr/bin:/mnt/lfs/sbin:/mnt/lfs/usr/sbin:/mnt/lfs/tools/bin/ /mnt/lfs/tools/bin/bash --login +h
chroot: cannot change root directory to : No such file or directory
root@ulisses:/mnt/lfs/tools#
 
Old 10-11-2007, 11:57 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Were is this command mentioned in the 6.3 (6.2??) book?

If this is from chapter 6.4. Entering the Chroot Environment then you are using the wrong command.

It should be:
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
The /mnt/lfs part is not needed, but is present in your command.

Hope this helps.
 
Old 10-11-2007, 01:47 PM   #8
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
Quote:
Originally Posted by druuna View Post
The /mnt/lfs part is not needed, but is present in your command.
Additionally, the shell variable $LFS seems not to be set.
 
Old 10-13-2007, 05:08 AM   #9
marcks_slack
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
ok, thanks
 
  


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
"stalled" problem in " scp" command gentleshark Linux - Software 1 08-30-2005 03:08 AM
"stalled" problem in " scp" command gentleshark Linux - Networking 1 08-29-2005 01:41 PM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 04:28 PM
gnome global settings "Help Me!!" or "URGENT" Fascistchicken Linux - Software 3 01-26-2004 07:27 PM
"No Carrier" Problem Urgent Help!!!!!! Kane2002 Linux - Hardware 1 12-29-2002 12:08 AM


All times are GMT -5. The time now is 04:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration