LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   kernel panic at boot (https://www.linuxquestions.org/questions/linux-from-scratch-13/kernel-panic-at-boot-659207/)

Pouer 07-30-2008 04:34 AM

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

Pearlseattle 07-30-2008 05:19 AM

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"?)

Pouer 07-30-2008 05:28 AM

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

Pearlseattle 07-30-2008 05:37 AM

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

Pouer 07-30-2008 08:35 AM

there is a good explanation of this problem here:

http://lfs.130th.net/lfs/faq.html#unable-to-mount-root

Pearlseattle 07-30-2008 08:39 AM

So, you solved it? :rolleyes:

Pouer 08-01-2008 05:29 AM

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


All times are GMT -5. The time now is 08:06 AM.