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.
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.
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.
I can't boot into my new LFS system yet. I get into the boot sequence, and about the time where my Mandrake system would say:
Init version 2.8
Welcome to Mandrake Linux
Press "I" for interactive startup
Instead my LFS system freezes and says:
Kernel panic! Try passing init= to the kernel
Or something very close to that. I was thinking it was my iniitab file, but I copied the one from my bootable system to the $LFS/etc directory, but still, same error. So I copied from the bootable /boot directory the init.img file to my $LFS/boot, but still no luck.
This sorta thing normally means either you didn't update lilo properly, or it can't find the kernel. I've had it so many times and it normally means somthing like that.
Apart from that, I can't think of anything else. There are lost of threads around on kernel panics tho if you do a search
Yeah, I did the search first, and tried them all. No luck yet. Yeah, I thought of the kernel thing too, (and yes at first I did compile it) so I recompiled it just to make sure, but same thing still. I am going to check on that lilo thing, I think that may be where my problem is. Thanks for the ideas!
Also make sure you selected the proper partition to be mounted as the root partition. If LFS sits on /dev/hdb1 but you selected /dev/hdb2 (which may be the /home partition) then the kernel will mount /dev/hdb2 as / and try to run /sbin/init which doesn't exist so it'll panic. This is one reason. Just make sure that all paths and devices are properly setup in the lilo configuration file and apply to the way LFS is setup. Not the way the host distribution is setup (in case you copied the host distro's lilo.conf file)
Cool, but now I am slightly confused? In the lilo.conf under $LFS/etc/lilo.conf do I just add entries for my LFS system so it should look something like this:
you can keep the mandrake stuff in there is you're gonna keep it. Just make sure root points to the lfs partition and boot points to the lfs kernel and you should be right...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.