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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-09-2007, 10:14 PM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 4
Rep:
|
"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.
|
|
|
10-09-2007, 10:33 PM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
Quote:
No such file or directory
|
This pretty much says it all. You've mistyped something.
|
|
|
10-10-2007, 03:02 AM
|
#3
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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
|
|
|
10-10-2007, 05:37 AM
|
#4
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
Good idea, moved to LFS
|
|
|
10-10-2007, 08:35 AM
|
#5
|
LQ Newbie
Registered: Oct 2007
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
10-10-2007, 10:14 AM
|
#6
|
LQ Newbie
Registered: Oct 2007
Posts: 4
Original Poster
Rep:
|
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#
|
|
|
10-11-2007, 10:57 AM
|
#7
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
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.
|
|
|
10-11-2007, 12:47 PM
|
#8
|
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450
Rep:
|
Quote:
Originally Posted by druuna
The /mnt/lfs part is not needed, but is present in your command.
|
Additionally, the shell variable $LFS seems not to be set.
|
|
|
10-13-2007, 04:08 AM
|
#9
|
LQ Newbie
Registered: Oct 2007
Posts: 4
Original Poster
Rep:
|
ok, thanks
|
|
|
All times are GMT -5. The time now is 12:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|