LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-30-2008, 04:34 AM   #1
Pouer
LQ Newbie
 
Registered: Nov 2006
Location: Paris
Distribution: fedora core 3
Posts: 8

Rep: Reputation: 0
kernel panic at boot


hello,

When booting LFS 6.3 i get the following message:
"kernel panic - not syncing : VFS : unable to mount root fs on unknown block(0,0)"

my grub configuration seems ok: i ask to boot on /dev/hda2.

another thing is: i use the .config of the Livecd to compile the kernel :-/. Is it the problem?

Any pointer welcomed,

Pouer
 
Old 07-30-2008, 05:19 AM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Hi
It cannot find your root filesystem, so 1) the grub configuration might be wrong or 2) your kernel does not have the ability to access the hardware which hosts your root filesystem (drivers compiled as modules but not loaded by initrd OR drivers compiled in the kernel but they're the wrong ones OR drivers not compiled at all).

Now I have a stupid question: what's LFS?

What you could do is to have a look at the configuration of the kernel and compile the drivers of your IDE-bus not as modules but inside the kernel? That way you would jump over all the initrd-stuff and if it would still not work you could review the configuration of grub (where does it come from? did you write it on your own? was it working sometimes "before"?)
 
Old 07-30-2008, 05:28 AM   #3
Pouer
LQ Newbie
 
Registered: Nov 2006
Location: Paris
Distribution: fedora core 3
Posts: 8

Original Poster
Rep: Reputation: 0
hi,

I wrote the grub configuration file myself according to LFS book.
No it never worked before.
My grub configuration file seems ok.
As you said, I think i have to configure the kernel by myself and stop using modules as a start.

Thanks for your answer,

Pouer
 
Old 07-30-2008, 05:37 AM   #4
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Ok
And about grub, if I remember correctly, it should contain "root hd(0,0)" because you probably installed grub in the first partition of the hda-drive and yes, the "--root=/dev/hda2" appended in the root kernel option.
Good luck
 
Old 07-30-2008, 08:35 AM   #5
Pouer
LQ Newbie
 
Registered: Nov 2006
Location: Paris
Distribution: fedora core 3
Posts: 8

Original Poster
Rep: Reputation: 0
there is a good explanation of this problem here:

http://lfs.130th.net/lfs/faq.html#unable-to-mount-root
 
Old 07-30-2008, 08:39 AM   #6
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
So, you solved it?
 
Old 08-01-2008, 05:29 AM   #7
Pouer
LQ Newbie
 
Registered: Nov 2006
Location: Paris
Distribution: fedora core 3
Posts: 8

Original Poster
Rep: Reputation: 0
no I did not solve it:
- in the LFS liveCD boot script, ext3 and ext2 driver were compiled as modules : I switched to "built in"

- the same for IDE/ATA drivers the where compiled as modules : i swtched to "built in"

I still get the same message.
I suspect the compilation of ide/ata drivers to still be wrong

the thing is : in menu config, one can choose to "built in" ATA support and then you can enter the sub list and you have additionnal choices to make (I dont know if i am clear).
I probably missed something there (in the sub list).

Pouer
 
  


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 while trying to boot into my freshly brewed 2.6.22 kernel adityavpratap Debian 8 08-31-2007 09:53 PM
New kernel won´t boot. Kernel panic aquarius_kasuia Linux - General 5 10-21-2005 04:02 AM
Kernel Panic at boot from Promise ATA100 w/ Kernel 2.6 MikTheUser Linux - Hardware 9 07-24-2004 01:24 PM
Cannot boot! kernel panic nikoz Linux - General 4 03-17-2004 08:11 AM
Kernel Panic on boot up gedi1 Linux - General 2 08-19-2001 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:34 AM.

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
Open Source Consulting | Domain Registration