LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 04-05-2005, 12:53 PM   #1
Mystified
Member
 
Registered: Mar 2002
Distribution: Gentoo & Mandrake 10.1 OE
Posts: 96

Rep: Reputation: 15
Understand lfs


I'd really like to get lfs working but I'm running into some problems that to me don't make sense.

For instance mkdir tools and then creating a symlink to root. Not only does this not make sense but it doesn't work. There's another symlink that I can't locate at the moment where you link to c. That doesn't work for me either

What am I missing?
 
Old 04-05-2005, 08:12 PM   #2
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
It's been a while since I used LFS. Creating symlinks always seemed a bit strange because of the ordering of the arguments for the ln command. I am positive that if you follow the books instructions exactly then you can overcome your difficulties.

Try man ln if you really want to understand how to use the ln command.
 
Old 04-07-2005, 03:43 PM   #3
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Rep: Reputation: 15
Dude, thats just the problem! We are following the book to the letter. The lfs manual is riddled with wholes and misinformation, thats what I've been trying to tell you guys. Look, it may be that you former lfs builders used an older manual and maybe that manual was a little more precise, but 6.0 is a mess!!!
 
Old 04-08-2005, 01:42 AM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
If you are referring to this section:
http://lfs.osuosl.org/lfs/view/6.0/c...gtoolsdir.html

Then if that doesn't work, what it wants a link on the root (ie /) of your "current" filesystem that points to $LFS/tools. So just do this instead:
Code:
ln -s $LFS/tools /tools
And here is the "ls -l /tools" listing:
Code:
lrwxrwxrwx    1 root root    14 Apr  8 00:39 tools -> /mnt/lfs/tools

Last edited by DaHammer; 04-08-2005 at 01:44 AM.
 
Old 04-08-2005, 10:59 PM   #5
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
Quote:
Originally posted by matthewa
Dude, thats just the problem! We are following the book to the letter. The lfs manual is riddled with wholes and misinformation, thats what I've been trying to tell you guys. Look, it may be that you former lfs builders used an older manual and maybe that manual was a little more precise, but 6.0 is a mess!!!
no it's not a mess -- it all works perfectly



export LFS=/mnt/lfs
mkdir $LFS/tools
ln [OPTION]... TARGET... DIRECTORY
ln -s $LFS/tools /

it seems like if you guys can't get this basic stuff you shouldn't be doing lfs but wait till you understand stuff better

the book is flawless and we should thank the wonderfull people that made it but recognize lfs is not for beginners
 
Old 04-09-2005, 03:00 AM   #6
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Rep: Reputation: 15
Flawless? Ok.......we'll skip that argument altogether because it's obvious that the Linux community has to much pride to admit when there actually is a flaw!

Let's move on to the real point here. I really don't consider myself a Linux Beginner! I have been running on Linux systems for over two years now, RedHat.........Suse..........Mandrake.............FedoraCore..............SystemRescue (which I use nearly every day in my business).........Knoppix.............knoppix-STD.......and a whole host of others. Yes, I am a beginner when it comes to building a Linux system from the ground up. Thats why I began the lfs experience, and believe me it was an experience! My quest was to learn more about how Linux worked internally. My results...........: (other than the fact that eaach time I tried to post a help post in this forum on the topic I got some smart-ass answer):

I experienced problems at every single stage of the book, not because Im a beginner, but rather the information contained within the book is out-of-place, misinformed, and just plain wrong! Heres an example...........It begins by telling you about how you need to partition your harddrive for the build, then download the packages and patches, then set up your working environment ................THEN IT TELLS YOU THAT YOU NEED A CERTAIN KERNEL ON THE HOST COMPUTER COMPILED A CERTAIN WAY!!!!!!!!!!........HUH? Should'nt that have been the first piece of information? Now, doesnt that kinda negate all that work you just did? Now you gotta do it all again if you dont have the right kernel!

So, tell me this............if a beginner wants to learn to build a Linux System........how is that beginner supose to learn when the teacher fails to convey the lesson properly?

Another question......Do you really think that this is the only way to build a Linux system? I guess all of the popular Linux distros were built this way to huh?..........Wrong!

There are other ways........there are better ways...........and I have found them. My system is up and running. Took me all of two days and the information was concise and to the point.
 
Old 04-09-2005, 03:33 AM   #7
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
While I agree that the host requirements should have been mentioned earlier in the book, prehaps in the prerequisites, not meeting those requirements hardly forces you to start all over. And if you're not comfortable in upgrading your host's kernel and/or gcc, you could always just download the LFS Live CD and instantly solve all your problems. It's also a generally good idea to skim through something first vs just starting it.

Is the LFS 6.0 book perfect? No. But given an adequate host, most any level user with a little common sense can do it. But sure you are likely to run into road blocks along the way. That's just part of the "learning process", if you ask me.
 
Old 04-17-2005, 03:15 PM   #8
frostillicus
Member
 
Registered: Jul 2004
Location: Florida
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
nothing personal, matthewa, but you need to sit down. the only commands you have to "do all over again" are:

export LFS=/lfs/mount
mount /dev/hda? $LFS
su -lfs

doesn't sound like too tough a job for a linux stud like you, does it? it's a fine book and if you actually read the thing instead of just looking at the commands it states on p.38:

"In other words, more advanced techniques could be used to build the system."

Your rant about how "there are better ways" shows you weren't paying much attention to the text, just the commands, so i'm not surprised your lfs build attempts thus far have tanked.

finally, you contend that the book is "out-of-place, misinformed, and wrong" and then back it with a singular argument that you should have been told you needed a 2.6 kernel earlier on in the book. and then whine about all the extra work you have to do (three commands, ooooh..) because of this horrific mistake that proves lfs is an idiot's paradise. eesh. like i said, just sit down. you're not that good.

besides, i'm wondering why a self-described linux champ like yourself would be running a 2.4 kernel in the first place...-)
 
Old 04-18-2005, 11:57 PM   #9
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Hey Hey Hey now.... What chu' got against a 2.4 kernel? They are a hell of alot more stable then that steaming pile of 2.6....

Seriously tho... I myself found the book to be straight forward and didn't have any problems but that doesn't mean other people are going to have the same expierences... We all need to blow some steam off now and again.
 
Old 04-19-2005, 02:59 AM   #10
frostillicus
Member
 
Registered: Jul 2004
Location: Florida
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
lol, lfs has at times driven me nuts, definitely. i guess what steamed me most was the "better ways" comment, the book has a specific disclaimer regarding that so it seemed a totally unfair and cheap shot.

I hear that the 2.6 is now too big to put on a floppy. ugh. not really what i wanted to hear but oh well...-)
 
Old 04-19-2005, 08:58 AM   #11
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 44
[QUOTE]Originally posted by matthewa

.THEN IT TELLS YOU THAT YOU NEED A CERTAIN KERNEL ON THE HOST COMPUTER COMPILED A CERTAIN WAY!!!!!!!!!!........HUH?

Where did it say that? Never seen it till I got to BLFS and it was talking about installing X.

I installed lfs 6.0 with a 2.4 kernel on my host with NO problems.
 
Old 04-19-2005, 10:48 AM   #12
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Interesting... It does say that you need a matching kernel on your host along with a certain gcc or higher in order to build LFS....
 
Old 04-23-2005, 03:33 AM   #13
chakkaradeepcc
Member
 
Registered: Mar 2005
Posts: 44

Rep: Reputation: 15
Hi all,

hmm..seems to be a long debate abt LFS.......here are my coments....

first of all, i would agree that LFS is not the only way to build a linux distribution..u do have many ways but i would say LFS is the THE BEST in uderstanding how a linux system is build......

ofcourse it is clear that Beginners CANNOT build LFS without any FLAWS!......they have a long way to go...for example.......it is not wise to say "i cant understand how the hell to compile kernel" after going to kernel compilation chapter!................i think i made it clear.........

i think there are few flaws but that am damn sure would be related to ur host's system and not LFS's error.........and if there would be any change the LFS guys have asked to check with a URL, for example when u do 'make check' for gcc, for i686 machines they have given specific URL to check with the test summaries and there also to be done with some optimization tweak if Athlon machines.....so here if u r a beginner u cant BLAME LFS to be wrong!

ofcourse it is not i didnt get any error...........i just started LFS 6.0 last week and now becoz of a simple error now i have to rebuild my LFS system!!.....the mistake was GCC was not installed in the LFS system.........probably i shud have missed the 'ln -s gcc /tools/bin/cc" becoz there was no cc file...i cant tell this to be an error of LFS but it shud my mistake!...........

the GCC and GLibc are very important and it is always wise to know what these 2 are and how they are configured for a machine.....those static and dynamic concepts are really important...

people can try Busybox before going to LFS also becoz that does provide a basic root filesystem and utils working........http://www.busybox.net/ , this is just for ur understanding and IT IS NOT ANOTHER OPTION!

anyway post ur comments friends.....

with regards,
C.C.Chakkaradeep
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM
QUERY: is LFS LFS? kevingpo Linux From Scratch 7 09-23-2005 01:15 PM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 06:03 AM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 07:10 AM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 04:15 PM


All times are GMT -5. The time now is 02:26 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration