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.
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.
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)