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.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
# 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
#boot=/dev/hda
default=0
timeout=5
# Use prettier colors.
color green/black light-green/black
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
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-2.6.11.12 root=/dev/hda4
title Windows XP
rootnoverify (hd0,0)
chainloader +1
I had the same problem as you do...
If i am not mistaken... You did not copy the System.map and the .config files to the /boot...
Try that...
Hope that helps...
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?
/boot/grub/grub.conf
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)
makeactive
chainloader +1
partition layout
windows /dev/hda1
linux /boot /dev/hda2
linux swap /dev/hda3
linux / /dev/hda4
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.