LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 04: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 12:50 PM.
 
Old 05-28-2014, 02: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, 02: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 03:01 PM.
 
Old 05-28-2014, 08:11 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,411
Blog Entries: 15

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

Last edited by ReaperX7; 05-28-2014 at 08:23 PM.
 
Old 05-29-2014, 11: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 12:49 PM.
 
Old 02-14-2018, 03: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 03:30 PM.
 
Old 02-15-2018, 12:32 PM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,235
Blog Entries: 1

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
have a look at this config pay attention to any vm stuff
http://www.linuxfromscratch.org/~kre...sic-kernel.txt
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03: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 04:15 PM
Kernel panic error - unable to mount root css Linux - Kernel 6 12-03-2007 07:55 PM
Kernel Panic :VFS :unable to mount rootfs 16:02 abirami Linux - Software 5 01-03-2006 12:01 AM

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

All times are GMT -5. The time now is 01:49 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration