LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-09-2007, 10: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, 10:33 PM   #2
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

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

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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, 05:37 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Good idea, moved to LFS
 
Old 10-10-2007, 08: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 i´m using the slack as a host. I don´t speak english, my english is poor, but I´m trying. therefore I posted here.
 
Old 10-10-2007, 10: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, 10:57 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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, 12:47 PM   #8
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
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, 04:08 AM   #9
marcks_slack
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
ok, thanks
 
  


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

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

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