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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i've recompiled the kernel and i've tried dropping suse's grub/menu.lst straight into LFS's menu.lst. Doesn't seem to work. When I try using the grub shell, I am unable to do anything at all, as no matter what option I choose for root, i get the error 21: no such disk error. the kernel now has support for reiser and xfs, but no luck. One thing that might be interesting is that the LFS partition is an extended partition, would that make any difference?
I don't know if it helps or gives you any comfort, but I get exactly the same error when I go through the LFS 6.0 instructions, so I think there is a problem in the book, either when using some host distros or perhaps it is with certain types of BIOS. I am using FC3 as the host.
The error interpretation in the grub manual suggests that the BIOS doesn't recognise hd0.
I had to use a rescue disk to set up grub. Linux rescue loaded LFS on hda4 and then I set up grub successfully from there. Very odd that it worked in this environment but not when chrooted to LFS from the host.
Did you get any further with your investigations? Did you post on the lfs mailing list?
Yes. But I had to go and make the whole thing all over again. The first time, I reckon I'd missed something further back, maybe, but now all is well. On my first attempt, the grub shell in chroot was doing nothing at all, and gave me an error 21 for any configuration I tried. I posted to the LFS mailing list - excellent source I might add. I've finished LFS-6.0 now, and I at the X stage in BLFS. I'm having serious trouble here though, with detecting my mouse. Thanks for the reply too
Distribution: Linux from Scratch 6.0, ClarkConnect server/gateway
I had the same problem when I went through LFS. In my case, I'm pretty sure it's because at that point /dev hadn't been populated.
My solution: put that entry for the LFS system into the host system's menu.lst. Reboot directly into LFS. /dev is now populated and you can configure grub properly.