LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2019, 02:13 PM   #1
luzion
LQ Newbie
 
Registered: Jul 2019
Posts: 9

Rep: Reputation: Disabled
GRUB2 Kernel Panic Rootfs failing to boot: VFS: unknown-block (0,0)


Newbie Gentoo user and on reboot it gives this error.
It is a dual boot machine with the BIOS/MBR partition table:
Code:
/dev/sda1 bootable  ntfs 100M windows ntfs
/dev/sda2 40G windows ntfs 
/dev/sda3 / noatime ext4 
/dev/sdb2 swap 20G
/dev/sdb3 /home noatime ext4

Last edited by luzion; 07-23-2019 at 08:07 PM.
 
Old 07-11-2019, 08:52 PM   #2
luzion
LQ Newbie
 
Registered: Jul 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
GRUB2 Kernel Panic Rootfs failing to boot: VFS: unknown-block (0,0)

---

Last edited by luzion; 07-12-2019 at 01:32 AM. Reason: edit
 
Old 07-11-2019, 09:12 PM   #3
luzion
LQ Newbie
 
Registered: Jul 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
---

Last edited by luzion; 07-23-2019 at 08:07 PM. Reason: edit
 
Old 07-11-2019, 09:17 PM   #4
luzion
LQ Newbie
 
Registered: Jul 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
I haven't had a problem before with using the NTFS windows boot partition with linux, but it could be that Gentoo has a problem with it.
GRUB even has msdos (ntfs) modules built in. It can't be the filesystem.

The problem is the kernel panic, failing to boot after selecting the GRUB Gentoo kernel. It gives the unable to sync VFS unknown-block(0,0) message and I have to hard shutdown. I googled the message and so far I've tried to verify the grub.cfg is correct, and the HDD controller drivers are loaded.

Last edited by luzion; 07-16-2019 at 10:01 PM. Reason: adding info here
 
Old 07-11-2019, 10:41 PM   #5
RickDeckard
Member
 
Registered: Jan 2014
Location: Canton, Georgia, USA
Distribution: Debian 12
Posts: 205

Rep: Reputation: Disabled
Well, for starters I'd imagine you haven't even begun to clearly specify the problem you're having here. What is going on? Is your system failing to boot? Are you hanging? What messages are you receiving? Your partition layout is not an error message, it's just a listing of disks. What is the operation you expect or don't expect? At what stage of reboot is it happening?

Secondly -- I'll take a wild guess and say this is your problem here -- NTFS (the default filesystem in Microsoft Windows) should not even be remotely close to selectable for a Linux partitioning scheme, let alone for /boot which is where your kernel resides. You should be using ext4 or heck, even ext2.

Last edited by RickDeckard; 07-11-2019 at 11:21 PM.
 
Old 07-12-2019, 05:53 AM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,372

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
you say your boot partition is /dev/sda1, but in grub gentoo menu entry you have
Code:
set=(hd0,3)
linux /boot/vmlinuz root=/dev/sda3
not
Code:
set=(hd0,1)
/vmlinuz root=/dev/sda3
or your missing some obscure driver you system needs loaded.

Last edited by colorpurple21859; 07-12-2019 at 05:57 AM.
 
Old 07-24-2019, 10:08 PM   #7
luzion
LQ Newbie
 
Registered: Jul 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by colorpurple21859 View Post
you say your boot partition is /dev/sda1, but in grub gentoo menu entry you have
Code:
set=(hd0,3)
linux /boot/vmlinuz root=/dev/sda3
not
Code:
set=(hd0,1)
/vmlinuz root=/dev/sda3
or your missing some obscure driver you system needs loaded.
I changed that parameter to be (0,1). Where could I start in finding if its a missing driver?
Gentoo's manual also recommends for MBR legacy machines like mine that there be a BIOS boot partition for grub from 2048 to +2M, but I followed the guide that mentioned installing Windows first was okay(hence using the windows boot partition), but maybe adding one now could fix it? This would fix what someone else mentioned about Linux not being able to boot on an NTFS partition.
Any suggestions are appreciated as I'm lost here.
 
Old 07-25-2019, 04:54 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,659
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
It's a bit late in the day, but I would have said "Don't use Gentoo!" It has a lot going for it (bleeding edge software and the most freedom of choice of any distro), but it is definitely for experts only.

As far as the BIOS boot partition is concerned, you need one to accommodate the second stage of GRUB if you have a GPT disk booting from a BIOS. If it's a traditional DOS MBR disk, you don't need one because GRUB Stage 2 will fit into the gap between the MBR and the first partition.

Last edited by hazel; 07-25-2019 at 04:59 AM.
 
Old 07-25-2019, 05:05 AM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,372

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
I reread this thread, let see if I got this straight, you get a grub menu, you select the entry you want to boot, up comes a few lines of code, then the message
Quote:
Kernel Panic Rootfs failing to boot: VFS: unknown-block (0,0)
If that is true then has nothing to do with grub. Your most likely missing a kernel driver to boot your system. what are the last several lines displayed on the screen before it locks up? How did you compile the kernel.

Last edited by colorpurple21859; 07-25-2019 at 05:37 AM.
 
Old 07-25-2019, 02:07 PM   #10
luzion
LQ Newbie
 
Registered: Jul 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
It's a bit late in the day, but I would have said "Don't use Gentoo!" It has a lot going for it (bleeding edge software and the most freedom of choice of any distro), but it is definitely for experts only.

As far as the BIOS boot partition is concerned, you need one to accommodate the second stage of GRUB if you have a GPT disk booting from a BIOS. If it's a traditional DOS MBR disk, you don't need one because GRUB Stage 2 will fit into the gap between the MBR and the first partition.
I appreciate your advice Gentoo is over my head! The handbook listed the example partitioning for BIOS/MBR to include a BIOS boot. I looked at the quick guides and complete guides as well and they confirm that it's not needed.

Quote:
Originally Posted by colorpurple21859 View Post
what are the last several lines displayed on the screen before it locks up?
The last lines are "cpu:3 pid: 1 Comm: swapper/0 not tainted 4.19.57-gentoo #2", a call trace, Kernel offset relocation range, and the kernel panic not syncing root fs error. I tried to find the whole output but it was not in /var/log/.
Quote:
Originally Posted by colorpurple21859 View Post
How did you compile the kernel.
Manually, using the guide first and safe C/USE flags, then referencing someone else's configuration on a similar machine and emerging* again.
*make

Last edited by luzion; 07-25-2019 at 07:58 PM.
 
Old 07-25-2019, 03:34 PM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,372

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
try using genkernel or boot into the medium used to install Gentoo and run lsmod to see what modules are loaded and compare to what you have built in your kernel.
 
1 members found this post helpful.
  


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
GRUB2 Kernel Panic Rootfs failing to boot: VFS: unknown-block (0,0) luzion Linux - Newbie 0 07-11-2019 02:13 PM
LFS error: boot lfs, Kernel panic -not syncing:VFS unable to mount root fs on unknown-block(0,0) XinyuLi Linux From Scratch 4 05-16-2017 01:17 AM
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
VFS:can't mount rootfs on "sdax" or unknown block (0,0):silly,but worked jimmerlin Linux From Scratch 0 11-30-2008 09:35 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 - Newbie

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