Linux From ScratchThis 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.
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.
Hi all,
I am working on my first lfs system and have been able to get to chapter 6 in the book version 6.0. I mounted all the file system and can chroot into the system. When I got to the point where it says to change '/tools' permissions to user root, I type the command 'chown -R 0:0 /tools' hit enter and nothing happens. I let the computer run thinking it was slow, but nothing. I tried the command in terminals and in consoles on X and nothing. I even tried to ls the system when I first entered and it gave me the folders inside and then nothing, it did not return me to 'I have no name' prompt. I even decided to skip changing ownership and entered the first install -d command and nothing same as if I chown.
I had no problems before this everything was going great. Well anyway I think everyone in advance for any help.
Here's some more information. chown does work, but crashes the shell. ls -la and other variates have the same effect. It seems that whenever the system is modified the shell crashes. Someone on irc said it was most likely a eviroment problem, something not built right. I went back and built everything again from scratch and had the same problem. by the way cd and echo work prefectly.
I have norrowed the problem down to the bash program not working if I run '$LFS/tools/bin/bash --login +h' and issuse ls -l, the command runs but never returns to the bash prompt. I redownloaded the program, maybe, slim maybe, the programs tar.gz was corrupt. Make tests stops responding after the fourth or fifth test saying tests may fail with cat if job support was (not?) compilied in shell. more to follow.
After I chroot it seems that just about any command I issue is successfully run, but then bash hangs. The proc ends up using 98% of the CPU and I have to kill it before I can do anything else.
The second time this happened I tried creating the directories /lfs/dev/{shm,pts} as df was complaining that those directories didn't exist. Is this a bad thing to do? It deffinatly didn't help.
I just realized that I had installed udev-050 instead of 030 in chapter 5. I rebuilt and installed the correct version of udev. Sadly this hasn't helped the problem with bash hanging.
If you are still having problems try downloading the bash WCONtinue patch and the bash-fix-3 patch. Install them before compileing bash in chapter5. That's what I was told in irc and it worked. Good luck.
I should have thought of the IRC channel. I remember how much that helped me a few years ago when I was having issues with my first RH install. Then again with Enlightenment.
/me has been in the windows world for too many years.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.