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 06-06-2002, 04:57 AM   #1
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Kernel Panic during first boot


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.

Any suggestions?

Last edited by MasterC; 06-06-2002 at 04:58 AM.
 
Old 06-08-2002, 08:10 PM   #2
slack-penguin
LQ Newbie
 
Registered: Apr 2002
Location: Oz
Distribution: LFS 3.3 :)
Posts: 22

Rep: Reputation: 15
did you compile the kernel

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
 
Old 06-08-2002, 11:18 PM   #3
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
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!
 
Old 06-09-2002, 03:25 AM   #4
tunedLow
Member
 
Registered: Sep 2001
Location: Salt Lake City
Distribution: Slackware 8.1
Posts: 133

Rep: Reputation: 15
In lilo make sure root= points to / and not /boot. I had the same error and when I switched that if booted.
 
Old 06-09-2002, 11:47 AM   #5
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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)
 
Old 06-10-2002, 09:35 AM   #6
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
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:

boot=/boot/lfskernel
root=/dev/hdb7
label=LFS
read-only

Rather than looking like this:

boot=/boot/vmlinuz
root=/dev/hdb1
label=Mandrake
append="blah blah"
initrd=/boot/initrd.img

other=/dev/hda1
label=Winbloze
read-only

other=/dev/fd0
blah blah...

And so on. Should it be the very simple lilo, as shown above, and not a mirror of the lilo shown in the host systems /etc/lilo.conf ?

Thanks for any info
 
Old 06-12-2002, 02:06 AM   #7
slack-penguin
LQ Newbie
 
Registered: Apr 2002
Location: Oz
Distribution: LFS 3.3 :)
Posts: 22

Rep: Reputation: 15
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...
 
  


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
kernel panic on boot MasterOfTheWind Linux - Newbie 2 08-12-2004 02:52 PM
Kernel Panic at boot from Promise ATA100 w/ Kernel 2.6 MikTheUser Linux - Hardware 9 07-24-2004 02:24 PM
Cannot boot! kernel panic nikoz Linux - General 4 03-17-2004 09:11 AM
Kernel Panic during boot inTUXicated Linux - Newbie 5 03-06-2004 04:59 PM
Kernel panic on boot from cd? Crunch Linux - Newbie 3 03-05-2003 05:37 PM


All times are GMT -5. The time now is 03:26 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