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.
Hey, I started LFS about a month ago, and am quite pleased. Don't ask me why I want to do this, but I tried using knoppix 3.1 to install LFS as the primary (only) linux on my hard drive. However, I got halfway through chapter 5 with compile errors. Has anyone had any luck completing the book in knoppix? (I used v4.0).
Sorry for the long response time... Are you still having problems?
There shouldn't ever be a permissions problem. Re-trace your steps in the book carfully. If you turned your machine off, make sure you chroot back into the LFS partition. Other than that, I'm really not sure what would be wrong.
I'm not ready to try again any time soon, but tell me this, did you run knoppix completely off the CD, because I heard you can install a permanent home directory. If you've done it running completely off the CD, then one day I'll try again.
I had problems too installing LFS from a knoppix cd because the version i used (3.0) didn't have all the correct compilers and linking tools to finish an LFS installation.
Luckily, the latest Knoppix (3.2 i believe) has all these files on, download the latest knoppix if you have problems.
Knoppix is also easy to customize so i believe someone should design an LFS-Knoppix-Build-CD, lol. 2 people have already designed boot-cd's for creating an LFS system, but personally they don't work very well, just my
I am installing LFS 5.0-PRE2 with Knoppix 3.3 right now. I did get some errors and running a certain check (I believe it was chapter 5, binutils second install) that couldn't run because of a devpty filesystem problem (Knoppix doesn't seem to have it?).
I am starting chapter 6 this evening, hoping the before mentioned errors are minor enough for me to continue
I used Knoppix 3.2-beta with LFS 4.0; no home directory with Knoppix or anything special at all. I simply opened up a Konsole, fdisk'ed the drive to my liking, created the lfs account, created the filesystems, opened a browser to the online LFS book, and copy-&-pasted the commands from the browser to the Konsole. It went as smooth as possible.
I have had a few problems with LFS and knoppix recently. After reading this topic I decided to try building an LFS system on Knoppix again.
I had a lot of problems this time though. One thing, the version of the book I used didn't say where to put the packages I had downloaded. Not a big problem, I just made a directory and chown'd this to the lfs user. Then followed the instructions to start compiling bash. It failed, during the ./configure stage it gave many error messages. So I went back to being root and tried ./configure again, worked fine. This leads to the obvious conclusion that the lfs user doesn't have the right permissions but I can't see why and can't figure out what I can do to fix this.
thats because you mounted the lfs partitions wrongly.
What you should do is edit the /etc/fstab file before mounting the partition where lfs is going to get installed. For example, if you are going to install lfs on /dev/hda4, change that line to read
Code:
/dev/hda4 /mnt/hda4 ext2 defaults 0 0
the most important thing here is that you write "defaults" instead of what ever it used to be.
After that, all should be okey
Well, it's me, the thread-starter. I finally did it using Knoppix 3.2 and LFS 4.1. I had some problems when I tried the "make modules" command, and so I booted with no modules, but, I'm sure I must have typoed somewhere along the lines. I had errors after installing grep in chapter 6, however, the programs egrep, fgrep, and grep were installed in /usr/bin, so I continued. That's probably due to another typo. Anyway, thanks for everyone's help with my /dev/null errors and such. Now onto BLFS!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.