-   Linux From Scratch (
-   -   Kernel Panic lfs LFS (

gbiyer 03-17-2006 12:12 AM

Kernel Panic lfs LFS
I compiled and installed LFS in a seperate partition on my harddisk. I have fedora core & windows xp already installed.
When i chrooted into LFS and used grub to setup boot loader. I could not. it was recognising the partition (hd0,3). I had installed LFS on /dev/hda4.

So i logged out of LFS. Created a record in FEDORA's grub config.

I restared the laptop. It booted into LFS but gave the following error.

KERNEL PANIC - not syncing : VFS : unable to mount root FS on unknown block(3,4).

Please help me.

baruah 03-17-2006 01:19 AM

Can you post the entries in grub.conf ?


gbiyer 03-17-2006 02:55 AM

Grub Configuration on Fedora Core 4
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/hda2
# initrd /boot/initrd-version.img
# Use prettier colors.
color green/black light-green/black
title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,1)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.11-1.1369_FC4.img

title LFS 6.1.1
root (hd0,3)
kernel /boot/lfskernel- root=/dev/hda4

title Windows XP
rootnoverify (hd0,0)
chainloader +1

space203 03-29-2006 03:02 AM

Did you compile ext2 support into the kernel?

gbiyer 04-02-2006 04:18 AM

Yes, Infact i compiled support for all available types ... ext2,ext3 etc.

thloh85 04-25-2006 12:08 AM

I had the same problem as you do...
If i am not mistaken... You did not copy the and the .config files to the /boot...
Try that...
Hope that helps...

G3nN00b 05-05-2006 09:44 PM

Unable to mount root fs on unknown block (3,4)
I am faced with a similar situation, dual booting a HP pavillion laptop and getting a kernel panic.

Unable to mount root fs on unknown block (3,4)

Not sure what I am missing in the kernal. Drive and files system that I'm using are compiled in the kernel. I believe this is typically what causes an error message like this. Correct me if I am wrong.

What info do you need to help?


default 0
timeout 30

title=gentoo linux 2.6.16-r6
root (hd0,3)
kernel /boot/linux-2.6.16-r6 root=/dev/hda4

title=windows xp
rootnoverify (hd0,0)
chainloader +1

partition layout

windows /dev/hda1
linux /boot /dev/hda2
linux swap /dev/hda3
linux / /dev/hda4

G3nN00b 05-05-2006 09:45 PM

Where and how would I copy the .config files ?

thloh85 05-07-2006 04:48 AM


Originally Posted by G3nN00b
Where and how would I copy the .config files ?

after compiling the kernel (don't just compile bare kernel, use make all) it is at the dir where you build your kernel...

All times are GMT -5. The time now is 09:28 PM.