LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-27-2014, 03:30 PM   #1
kamils096
Member
 
Registered: May 2014
Posts: 60

Rep: Reputation: Disabled
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
}
and here it's my kernel config:
http://pastebin.com/u9vxf0BC

What's wrong? I really want to know where is problem. Thank you in advance for help. I'm sorry for mistakes in my message, my English isn't perfect.

Last edited by kamils096; 05-29-2014 at 11:50 AM.
 
Old 05-28-2014, 01:06 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
insmod ext2
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.

Could that be your problem?
 
Old 05-28-2014, 01:50 PM   #3
kamils096
Member
 
Registered: May 2014
Posts: 60

Original Poster
Rep: Reputation: Disabled
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?

Last edited by kamils096; 05-28-2014 at 02:01 PM.
 
Old 05-28-2014, 07:11 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Did you check your /etc/fstab first?

Last edited by ReaperX7; 05-28-2014 at 07:23 PM.
 
Old 05-29-2014, 10:48 AM   #5
kamils096
Member
 
Registered: May 2014
Posts: 60

Original Poster
Rep: Reputation: Disabled
Here it's my fstab from LFS system:
Code:
# Begin /etc/fstab

# file system  mount-point  type     options             dump  fsck
#                                                              order

/dev/sda3     /            ext4    defaults            1     1
# /dev/sda2     swap         swap     pri=1               0     0
proc           /proc        proc     nosuid,noexec,nodev 0     0
sysfs          /sys         sysfs    nosuid,noexec,nodev 0     0
devpts         /dev/pts     devpts   gid=5,mode=620      0     0
tmpfs          /run         tmpfs    defaults            0     0
devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0

# End /etc/fstab
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.

Last edited by kamils096; 05-29-2014 at 11:49 AM.
 
Old 02-14-2018, 02:29 PM   #6
jbhv12
LQ Newbie
 
Registered: Feb 2018
Posts: 1

Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by kamils096 View Post
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.

Last edited by jbhv12; 02-14-2018 at 02:30 PM.
 
Old 02-15-2018, 11:32 AM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
have a look at this config pay attention to any vm stuff
http://www.linuxfromscratch.org/~kre...sic-kernel.txt
 
Old 05-31-2021, 04:40 PM   #8
TechLearner
LQ Newbie
 
Registered: May 2021
Posts: 2

Rep: Reputation: Disabled
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.
 
Old 06-01-2021, 02:50 PM   #9
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
version 7.5 of the lfs book is really old you should really be using 10.1/stable version
 
Old 12-02-2022, 10:31 PM   #10
sodacris
LQ Newbie
 
Registered: Dec 2022
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by TechLearner View Post
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.
yes, it finally boots. plus I was using lfs 11.2
 
  


Reply



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
kernal panic error in LFS: not syncing unable to mount rootfs on unknown block (2,0) barhate.rahul Linux - Kernel 5 02-05-2011 02:04 AM
LFS 6.3 Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block(2,0) wyylling Linux From Scratch 4 09-24-2008 03:15 PM
Kernel panic error - unable to mount root css Linux - Kernel 6 12-03-2007 06:55 PM
Kernel Panic :VFS :unable to mount rootfs 16:02 abirami Linux - Software 5 01-02-2006 11:01 PM

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

All times are GMT -5. The time now is 07:09 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