LinuxQuestions.org
Review your favorite Linux distribution.
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 09-30-2003, 10:15 AM   #1
dtheorem
Member
 
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101

Rep: Reputation: 15
Exclamation 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).
 
Old 09-30-2003, 04:21 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Yes, I've done it. I used Knoppix 3.2 and LFS 4.1. I followed the book exactly, and everything went smoothly.
 
Old 10-05-2003, 11:31 PM   #3
dtheorem
Member
 
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101

Original Poster
Rep: Reputation: 15
Unhappy

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?
 
Old 10-10-2003, 06:35 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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.
 
Old 10-10-2003, 11:26 PM   #5
dtheorem
Member
 
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101

Original Poster
Rep: Reputation: 15
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.
 
Old 10-11-2003, 08:33 AM   #6
soulsniper
Member
 
Registered: Apr 2003
Distribution: Server= Fedora Core 2, Desktop= Ubuntu Hoary Preview
Posts: 41

Rep: Reputation: 15
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
 
Old 10-13-2003, 04:49 AM   #7
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
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.
 
Old 10-13-2003, 10:13 AM   #8
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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.
 
Old 10-14-2003, 11:35 AM   #9
soulsniper
Member
 
Registered: Apr 2003
Distribution: Server= Fedora Core 2, Desktop= Ubuntu Hoary Preview
Posts: 41

Rep: Reputation: 15
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.
 
Old 10-15-2003, 04:06 AM   #10
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
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
 
Old 10-25-2003, 01:57 PM   #11
Shachaf
Member
 
Registered: Sep 2003
Location: Port Townsend, WA
Posts: 30

Rep: Reputation: 15
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.
 
Old 10-26-2003, 11:36 PM   #12
dtheorem
Member
 
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101

Original Poster
Rep: Reputation: 15
Cool

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!
 
  


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
i got knoppix on cd and it rocks when booted! wut can i do to install knoppix on HD? kublador Linux - Distributions 4 12-12-2005 04:08 PM
KNOPPIX: knoppix.sh problems ocgltd Linux - General 2 10-12-2005 12:19 PM
KNOPPIX 3.8.1 Problem with knoppix-installer Wireless-G-DSL Debian 4 04-13-2005 05:03 PM
Could not open /home/knoppix Reason: /home/knoppix is not a file. slacard Debian 3 09-16-2004 08:36 AM
How does one remove the custom KNOPPIX graphics from a KNOPPIX HD Install? apache363 Linux - Distributions 2 03-29-2004 05:08 AM

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

All times are GMT -5. The time now is 09:18 PM.

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