LinuxQuestions.org
Review your favorite Linux distribution.
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-11-2017, 09:44 PM   #1
XinyuLi
LQ Newbie
 
Registered: May 2017
Posts: 6

Rep: Reputation: Disabled
LFS error: boot lfs, Kernel panic -not syncing:VFS unable to mount root fs on unknown-block(0,0)


After having finished LFS, it is time to boot it ,but druing boot lfs, log show as follows:
"Kernel panic -not syncing:VFS unable to mount root fs on unknown-block(0,0)"

this is our information:
our lfs is built on /dev/sda3.
we boot lfs from grub by using the following command
"grub> linux (hd0, msdos3)/boot/vmlinuz-4.9.9-lfs-8.0-systemd root=/dev/sda3 ro"
grub>boot
"

we use SCSI disk ,but before make kernel, I have checked the menu config about scsi driver, we have add this options.

so we ask someone help me ,thanks.
 
Old 05-12-2017, 10:46 AM   #2
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Besides disk driver, you also need a filesystem driver and scsi generic drivers built into kernel.
 
Old 05-12-2017, 10:50 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Quote:
Originally Posted by Krejzi View Post
Besides disk driver, you also need a filesystem driver and scsi generic drivers built into kernel.
Yes, the kernel, using only drivers that are built into it (since you're not using the initrd hack) must contain all of the drivers needed both to communicate with the hardware and to understand the file-system that it will find there.

For convenience, I ordinarily build into the kernel all of the filesystem and hardware drivers that I know that I might encounter, such as FAT32 on your garden-variety USB stick. (Filesystem drivers used for removable devices can also, of course, be modules that will be loaded by hotplug/coldplug on demand ... but they're really not that big, anyhow.)
 
Old 05-15-2017, 10:02 PM   #4
XinyuLi
LQ Newbie
 
Registered: May 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
according to wait you said, and all scsi driver and filesystem, but the error still exist

my vm version:12.5.2 build-4638234。 does vm exist some other error?
 
Old 05-16-2017, 01:17 AM   #5
XinyuLi
LQ Newbie
 
Registered: May 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
thank you!

lfs boot successfully !!!
 
  


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
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1) anjanesh Ubuntu 9 01-27-2011 12:00 PM
Kernel Panic: not syncing: VFS: Unable to mount root fs on unknown block (0,0) hiteurecomupf Linux - Kernel 6 11-09-2010 02:28 PM
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
CRC error/Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block red13hat Linux - Enterprise 2 05-03-2007 08:57 PM

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

All times are GMT -5. The time now is 11:43 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
Open Source Consulting | Domain Registration