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 12-29-2008, 10:31 AM   #1
bines
Member
 
Registered: Dec 2008
Location: Hereford, UK
Distribution: LFS (when it's finished)
Posts: 30

Rep: Reputation: 16
How can I succeed with the Live CD version 6.3?


I've been trying for some six weeks to complete a LFS version 6.3 system using the Live CD. I'm about to give up again. I had to give up previously on two earlier efforts with previous versions which also failed after considerable work.

I keep hitting snags, I've solved many but others remain unsolved. I have tried to follow the book VERY carefully - I've watched those little back-ticks, case of text, the l and 1 difference and so-on but no joy. I've studied the book, studied posts on this and other forums, read hints, FAQ's and anything else which might help. I've used Google to get specific info and asked questions here (many thanks to those who replied).

I really think there is an issue with my use of the Live CD. I've read carefully the hint on the subject but it is for version 6.1. Now I can see marked differences in the LFS book between 6.1 and 6.3. Although I thought I understood how to change the book to accomodate the Live CD I guess I don't!

Is there any guidance out there to help? How do other newcomers to Linux cope - or maybe they too keep failing. It seems to me that LFS is for those with considerable existing knowledge of Linux and not for those who want to use LFS to learn. Are there any proper newbies out there who have succeeded with the Live CD?

Allan
 
Old 12-29-2008, 08:06 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,305

Rep: Reputation: 205Reputation: 205Reputation: 205
Building GNU/Linux from scratch will not neccessarily teach you about GNU/Linux. Have a live system installed and use it. Or use sites like these:

http://www.reallylinux.com/docs/basic.shtml
http://www.linuxdevcenter.com/linux/cmd/
http://linux.die.net/man/
http://rute.2038bug.com/index.html.gz

Patience is very much required, but well worth it in the end.
 
Old 01-01-2009, 04:28 PM   #3
bines
Member
 
Registered: Dec 2008
Location: Hereford, UK
Distribution: LFS (when it's finished)
Posts: 30

Original Poster
Rep: Reputation: 16
Thanks Nexus for your reply and advice.

Being thoroughly fed up with Windows being stuffed to bursting with 'features' which I don't want, never asked for, and which are taking up huge chunks of my system and frequently getting in the way, I wanted a very simple operating system having only the very barest of functionality so that I can learn to develop it into my own system which suits me. LFS seemed just the thing.

I am disappointed that a Live CD is produced without any guidance on how to use it in place of an already installed distribution. It would have been nice for guidance to be included with the LiveCD which told exactly how to resume the environment after switching off, and any other subsequent changes to the book. The existing hints on the subject were written for version 6.1 and there are significant differences in the book of 6.3. Try as I might I just cannot get them to work. There must be lots of people out there with the information I need so it is disappointing that it's not made generally available.

I tried hibernating (the computer - not me!), but once the book gets to changing the bash shell profile nothing I can do will persuade the system to recognise the command 'hibernate'. So once again there seems insufficient information for any who are not already quite expert.

Ah well - I had to give up twice before with earlier versions so it doesn't really surprise me that this one has failed as well. Pity - I would have enjoyed getting to grips with BLFS.

Happy New Year to everybody.
 
Old 01-01-2009, 06:49 PM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,305

Rep: Reputation: 205Reputation: 205Reputation: 205
Don't let that deter you. There are plenty of distros that are basic in functionality. You could always install one of those without the gui and use that as a practise system. Gradually add functionality to it, that would be one way of learning basic commands and guaranteed there will be some troubleshooting involved. I know what you mean about some of these *teaching* cds, they tend to assume you already know enough to start using them.
 
Old 01-02-2009, 06:41 PM   #5
cyphercell
LQ Newbie
 
Registered: Dec 2008
Posts: 13

Rep: Reputation: 0
How long have you been using Linux?
 
Old 01-02-2009, 06:44 PM   #6
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,305

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by cyphercell View Post
How long have you been using Linux?
Is this question to me or the OP?
 
Old 01-02-2009, 06:53 PM   #7
cyphercell
LQ Newbie
 
Registered: Dec 2008
Posts: 13

Rep: Reputation: 0
bines
 
Old 01-03-2009, 10:04 AM   #8
bines
Member
 
Registered: Dec 2008
Location: Hereford, UK
Distribution: LFS (when it's finished)
Posts: 30

Original Poster
Rep: Reputation: 16
I've not really used Linux in anger. I've had a few tries over the years with various distributions but didn't actually stick with any for a long period.

I want a really basic stripped-down operating system with only just enough functionality for me to learn how to assemble my own. It's an educational (hobby) exercise for me and I want to get to grips with BLFS.

I'm quite happy working in a console shell environment - I've done a lot of development of assemblers, compilers, editors etc in the real early days of 8-bit! but things have moved on somewhat since then! But I like that level of work so LFS seemed just the thing. I just want to know how to complete it using the Live CD version 6.3 - sounds easy doesn't it?

Although I'm frustrated with it, I have actually enjoyed trying, in a perverse masochistic sort of way!

Allan
 
Old 01-05-2009, 01:30 PM   #9
cyphercell
LQ Newbie
 
Registered: Dec 2008
Posts: 13

Rep: Reputation: 0
Well you were very close when you were having the Grub error 21 problem. At least it seemed that way, I was a little disappointed to see that you had started again. It looks like I dumped the script that I used for starting over (sorry), but I'm pretty sure it was fairly basic. If you write it out to a script all I ever did to resume was [mkdir /mnt/lfs && export LFS=/mnt/lfs && mount -tv ext3 /dev/sda2 $LFS && cd $LFS && ./LFS.sh(my script)] to get started.

these links should be all the references you need.

http://www.linuxfromscratch.org/lfs/.../mounting.html
http://www.linuxfromscratch.org/lfs/...gtoolsdir.html
http://www.linuxfromscratch.org/lfs/...ddinguser.html
http://www.linuxfromscratch.org/lfs/...vironment.html

http://www.linuxfromscratch.org/lfs/...06/kernfs.html
http://www.linuxfromscratch.org/lfs/...06/chroot.html

I used ALFS for most of the build so I may not have run into the same problems you might.

If you are looking for instant gratification at this point (I know I would be), you can also check out the pocket linux guide.

http://tldp.org/LDP/Pocket-Linux-Guide/html/index.html
 
Old 01-07-2009, 10:40 AM   #10
bines
Member
 
Registered: Dec 2008
Location: Hereford, UK
Distribution: LFS (when it's finished)
Posts: 30

Original Poster
Rep: Reputation: 16
Thanks again cyphercell for your valuable help. I haven't digested it all yet but wanted to give an update.

The problems I had at the end with the grub error were caused by something wrong with the way I was restoring the build environment after taking a break. I think I have that sorted now. Like you, I just use one script. The main difference from version 6.1 was populating /dev, so I studied that and am quietly confident I have it right at long last (I've started yet again from chapter 6 - must be about the fifth time - I almost know it by heart!)

Another critical bit I missed before was a little throwaway line at the end of the page when installing GRUB about copying stage 1 and 2 files. I finally worked out what extra was required and this enabled me to finish!! Hooray - BUT it didn't boot into the system. The grub loader worked OK and started the boot but it soon aborted with the error:

Root - NFS: No NFS server available, giving up
VFS: Unable to mount root fs via NFS, trying floppy

I haven't a clue what this means, but since I am re-doing the build with my better environment I'm hoping it will be OK this time around.

I'll post progress here in case others are similarly struggling.

Allan
 
Old 01-07-2009, 01:31 PM   #11
cyphercell
LQ Newbie
 
Registered: Dec 2008
Posts: 13

Rep: Reputation: 0
Great! Let's see your /etc/fstab and /boot/menu.lst files.
 
Old 01-07-2009, 07:00 PM   #12
rm_dash_rf_star
Member
 
Registered: Nov 2007
Location: Seattle, WA
Distribution: LFS
Posts: 36

Rep: Reputation: 16
Bines-i'll be brief, since I am writing from my phone--- Don t give up! LFS is well worth the effort in terms of the knowledge gained.

The problems that you mentioned above would be easier to solve if you had more experience, but you'll get there!

The last problem is in your kernel configuration. It sounds like you have not built the proper support for your hard disk controller or something of the sort. I am actually having the same pro lem right now, so perhaps we can work through it together.

As for the '$ hibernate' command not working, it is because you never compiled it for the temp environment.

You will be able to access the binary/script from the non-chrooted environment.

-dan
 
Old 01-07-2009, 08:09 PM   #13
rm_dash_rf_star
Member
 
Registered: Nov 2007
Location: Seattle, WA
Distribution: LFS
Posts: 36

Rep: Reputation: 16
According to a Gentoo page on configuring your kernel, the utility: `lspci' can be used to determine the peripheral hardware that is connected to your computer. Then, make sure that all of the drivers for this peripheral hardware are enabled in the kernel.

As for these lines:

Root - NFS: No NFS server available, giving up
VFS: Unable to mount root fs via NFS, trying floppy

Did you set up your root device to be a networked drive via NFS? I am trying to use a local `ide' hard disk for my root device.

(When I built LFS, I built it on my local machines ide hard-disk, and not on a networked machine.)

Anyway---When I get home, I will enable the drivers for my hard drive controller, and try re-compiling the kernel. That should solve the problem of not being able to mount my root device.
 
Old 01-08-2009, 12:28 PM   #14
rm_dash_rf_star
Member
 
Registered: Nov 2007
Location: Seattle, WA
Distribution: LFS
Posts: 36

Rep: Reputation: 16
Last night, I re-compiled my kernel with the correct drivers, and was able to mount `a' root file system. As I tried sending various root= options to the kernel, the kernel mounted various devices on my system (my windows device, etc.). Upon entering one of the options, I did get the same problem that you have:

Root - NFS: No NFS server available, giving up
VFS: Unable to mount root fs via NFS, trying floppy

The problem, I figure, is that I don't know what the kernel is calling the ATA disk that holds my LFS system. I'm going to start a new thread for this subject, and hopefully the result will help us both.

-rm_dash_rf_star
 
Old 01-08-2009, 01:34 PM   #15
bines
Member
 
Registered: Dec 2008
Location: Hereford, UK
Distribution: LFS (when it's finished)
Posts: 30

Original Poster
Rep: Reputation: 16
Many thanks to everybody who has helped me. I will study what you all have to say and report back in a couple of days (I'm a bit short of spare time just now).

I will finish off my latest attempt and, hopefully, it will work OK. I'm nearly up to the point of configuring the kernel so I will study that particularly carefully first. I have been careful to enable SCSI but whether that is all that's required or whether I've missed something I don't know. But I'll soon find out!

Thanks again to you all for taking an interest and I will report back soon.

Allan
 
  


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
LXer: Will a $19.99 Ubuntu Succeed Where the Free Version Hasn't? LXer Syndicated Linux News 0 07-28-2008 03:30 PM
LXer: Live version of OpenSuse 10.3 is out LXer Syndicated Linux News 0 11-08-2007 12:00 PM
LXer: openSUSE 10.3 Live version available LXer Syndicated Linux News 0 11-03-2007 01:11 AM
best live cd version of linux mrobertson Linux - Newbie 1 05-24-2005 10:50 AM
How would I make my own version of a LIVE CD type of linux ullatec2003 Linux - General 3 11-01-2004 02:11 AM


All times are GMT -5. The time now is 03:25 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration