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.
|
|
09-30-2003, 10:15 AM
|
#1
|
Member
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101
Rep:
|
Using Knoppix
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).
|
|
|
09-30-2003, 04:21 PM
|
#2
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
Yes, I've done it. I used Knoppix 3.2 and LFS 4.1. I followed the book exactly, and everything went smoothly.
|
|
|
10-05-2003, 11:31 PM
|
#3
|
Member
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101
Original Poster
Rep:
|
I tried it, but I failed when I tried to compile include/linux/version.h in chapter 6 when installing the kernel headers.
/bin/sh: /dev/null : Permission Denied.
Any ideas?
|
|
|
10-10-2003, 06:35 PM
|
#4
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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.
|
|
|
10-10-2003, 11:26 PM
|
#5
|
Member
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101
Original Poster
Rep:
|
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.
|
|
|
10-11-2003, 08:33 AM
|
#6
|
Member
Registered: Apr 2003
Distribution: Server= Fedora Core 2, Desktop= Ubuntu Hoary Preview
Posts: 41
Rep:
|
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
|
|
|
10-13-2003, 04:49 AM
|
#7
|
Member
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145
Rep:
|
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
Last edited by ReefShark; 10-13-2003 at 08:10 AM.
|
|
|
10-13-2003, 10:13 AM
|
#8
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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.
|
|
|
10-14-2003, 11:35 AM
|
#9
|
Member
Registered: Apr 2003
Distribution: Server= Fedora Core 2, Desktop= Ubuntu Hoary Preview
Posts: 41
Rep:
|
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.
Oh well, i'm gonna install RH9 and go from there.
|
|
|
10-15-2003, 04:06 AM
|
#10
|
Senior Member
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358
Rep:
|
Quote:
/bin/sh: /dev/null : Permission Denied
|
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
|
|
|
10-25-2003, 01:57 PM
|
#11
|
Member
Registered: Sep 2003
Location: Port Townsend, WA
Posts: 30
Rep:
|
Try typing mount $LFS -o remount,exec,dev,rw.
This is the same problem I had when compiling LFS with Knoppix.
From the mount man page:
Quote:
dev Interpret character or block special devices on the file system.
|
I think the default in Knoppix is to mount with nodev.
Last edited by Shachaf; 10-25-2003 at 02:02 PM.
|
|
|
10-26-2003, 11:36 PM
|
#12
|
Member
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101
Original Poster
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 10:44 AM.
|
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
|
|