[SOLVED] LFS 7.5 Kernel Panic Error - unable to mount rootfs
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.
LFS 7.5 Kernel Panic Error - unable to mount rootfs
Hi, i'm reading LFS 7.5 book, and i stuck in one chapter: Booting the LFS. I compiled kernel many times, i tries to change grub config and it's nothing help. I use VMWare Workstation, base system, where i build LFS, is Debian Testing. When i choose LFS from GRUB menu, kernel is starting and a moment later i get message from VM, that CPU is halted by Virtual Machine. On screen there is a information:
kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0,0)
What's wrong? Here it's my GRUB config:
Code:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,3)
menuentry "GNU/Linux, Linux 3.13.3-lfs-7.5" {
linux /boot/vmlinuz-3.13.3-lfs-7.5 root=/dev/sda3 ro
}
I don't know a lot about grub.
I know less about...um... the rest of what you said.
(it's not your English, btw, I'm just a moron)
But I do know what ext2 is, and it aint...whatever you said.
Thanks for your reply, but grub isn't my problem. insmod ext2 covers ext3 and ext4 too, when i tried to boot Debian with same options as LFS(of course, antoher partition and kernel, and i add initrd option), they boot successfull. I done a little experiment - i load Debian kernel, but i choose LFS partition as root partition for kernel. I got same error, as i wrote in first post. When i try to load Debian with LFS kernel i've got a same kernel panic. I don't know what's wrong, i suspect kernel config, but my lfs root partition may be bad. How can i fix that problem?
Edit: I finally boot my LFS system, but with Debian kernel and initrd. I use these options:
Code:
insmod ext2
set root=(hd0,1)
menuentry "GNU/Linux, Linux 3.13.3-lfs-7.5" {
linux /boot/vmlinuz-3.14-1-amd64 root=/dev/sda3 ro
initrd /boot/initrd.img-3.14-1-am64
}
LFS system with Debian kernel work fine, so this is kernel issue, not a file system or another. I made a mistake in kernel config, but i don't know where.
Edit: Yes, i finally did it, my LFS system boot sucessfull with own kernel. I make config again and i find VMWare PVSCSI driver. When compile it to kernel, my LFS system boot without problems. Thanks for you replies.
Edit: Yes, i finally did it, my LFS system boot sucessfull with own kernel. I make config again and i find VMWare PVSCSI driver. When compile it to kernel, my LFS system boot without problems. Thanks for you replies.
hi there. I'm having the exact same problem. Can you please post your kernel config file? Thanks.
I was also facing the same problem i.e. kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0,0) with the LFS 10.1 version. I was using VMware Workstation pro. The problem was with the kernel configuration. While doing the LFS on virtual machine we have to select some extra options in menu config. I referred this blog https://blog.andreev.it/?p=729 and was easily able to solve the issue.
Refer the menu config part from the site given above if facing the same problem.
I was also facing the same problem i.e. kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0,0) with the LFS 10.1 version. I was using VMware Workstation pro. The problem was with the kernel configuration. While doing the LFS on virtual machine we have to select some extra options in menu config. I referred this blog https://blog.andreev.it/?p=729 and was easily able to solve the issue.
Refer the menu config part from the site given above if facing the same problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.