LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-02-2023, 07:12 PM   #1
riko
LQ Newbie
 
Registered: Sep 2023
Posts: 3

Rep: Reputation: 0
Unhappy end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


Hello guys
I was building LFS.
At first, I used version 9.0-systemd of the manual, but encountered some errors during the installation of systemd that I couldn't resolve. So, I switched to the 11.3 version of the manual.
The earlier parts went smoothly, but when I reached section 10.4, after creating the GRUB configuration file and rebooting, I saw the LFS system option in the GRUB menu. However, when I selected that option, I received the error message "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)."
I searched online for information but couldn't find a detailed explanation of the cause of this error. It only mentioned that the path to "/root" was incorrect. I installed LFS on VMware and took a snapshot before encountering the error, so I double-checked my partitioning and grub.cfg file, and I believe they are correct.
According to the manual, the "/" partition can be used as "/boot," so I didn't create a separate "/boot" partition. My "/" partition is on sdb2.
Here is my grub.cfg file:
Code:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext4
set root=(hd1,2)
menuentry "GNU/Linux, Linux 6.1.11-lfs-11.3" {
        linux   /boot/vmlinuz-6.1.11-lfs-11.3 root=/dev/sdb2 ro
}
Before rebooting, I executed the following command:
Code:
riko@IBM5200:~$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 20 GiB, 21474836480 bytes, 41943040 sectors
Disk model: VMware Virtual S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A4E58CE4-46C9-4E08-9A21-AA1034BC5B3C

Device        Start      End  Sectors  Size Type
/dev/sdb1      2048   206847   204800  100M Linux filesystem
/dev/sdb2    206848 22962175 22755328 10.9G BIOS boot
/dev/sdb3  22962176 27285503  4323328  2.1G Linux filesystem
/dev/sdb4  27285504 41940991 14655488    7G Linux filesystem
riko@IBM5200:~$ sudo grub-install /dev/sdb
Installing for i386-pc platform.
Installation finished. No error reported.
A few possibilities come to mind:
1. It could be an incorrect BIOS boot setting.
2. It might be due to a misconfiguration during the compilation of the Linux kernel. (I followed the instructions in the manual strictly for the menuconfig options.)
3. Could it be related to switching between LFS manual versions midway? I encountered an unresolved error in section 6.72 (systemd-241) of the 8.1 version of the manual, so I switched to version 11.1 for the remaining steps. However, it seems unlikely that this would affect normal booting before that point.

This issue has been bothering me for several days, and I would greatly appreciate any assistance.
 
Old 09-04-2023, 01:25 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
My grub.cfg files for GPT table disks contain the following
Code:
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
Unknown block is a response to not finding the root filesystem, something not possible when the partition table cannot be read.
 
1 members found this post helpful.
Old 09-04-2023, 01:47 PM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Code:
VFS: Unable to mount root fs on unknown-block(0,0)
This particular error means your kernel cannot access the block device where root filesystem is located. Your kernel has no support for SATA (or whatever) controller. Kernel probes all drivers it has and in your case can't find any suitable, thus the (0,0) result.
Your kernel must have HDD controller support, [used] partition table support and root file system support. Then it can access the root filesystem and start loading everything it needs from there and execute the init.

Edit: To make it clear, when kernel can access the drive but cannot read its contents the error will have something like (8,3) instead of (0,0).

Last edited by Emerson; 09-04-2023 at 01:52 PM.
 
1 members found this post helpful.
Old 09-06-2023, 02:24 PM   #4
riko
LQ Newbie
 
Registered: Sep 2023
Posts: 3

Original Poster
Rep: Reputation: 0
[SOLVED] Thanks to the two above for their suggestions. The problem has been solved because I am using VMWare and need to turn on several switches in the kernel menuconfig.
Refer to this https://www.linuxquestions.org/quest...fs-4175506219/
 
  


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
Post-update error: "end kernel panic not syncing vfs unable to mount fs on unknown-block(0,0)" linustalman Linux - Kernel 14 05-13-2021 06:12 AM
End kernel panic -not syncing : VFS: unable to mount root fs on unknown-block(2,0) Justinstout1414 Linux - Newbie 3 12-25-2016 07:32 PM
kernel panic - not syncing : VFS: unable to mount root FS on unknown-block Dankles Slackware 23 01-28-2011 03:01 AM
Kernel Panic!!! -Not Syncing VFS:Unable to mount root FS on unknown - block (0,0) scarabs Linux - Software 4 04-16-2006 04:16 PM
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,2) Volgin Linux - Software 1 12-11-2005 07:46 PM

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

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