Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fresh Install: Cannot mount root filesystem on boot [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sbz
n00b
n00b


Joined: 02 Apr 2020
Posts: 5

PostPosted: Thu Apr 02, 2020 12:52 am    Post subject: Fresh Install: Cannot mount root filesystem on boot [SOLVED] Reply with quote

SOLVED: It seems like I had to add the Fusion-MPT device drivers.
I had initially only added the top-level option but if you dig in to its sub-menu you will find more drivers.
I probably only needed one but I enabled them all (there was only 2).
Saved config, recompiled kernel, and I was finally able to boot.

This was a VMWare Workstation virtual machine instance of Gentoo.

###################### ORIGINAL POST ##############################

It's hard for me to copy/paste the files because Gentoo is inside a VM and right now I cannot copy/paste or transfer files easily.
So I took screenshots of my files and configs.

Error message on console after booting:
[IMG]https://i1365.photobucket.com/albums/r758/hiphophe/gentoo/00-gentoo-boot-kernel-panic-cannot-mount-root-fs2_zpsu1rr1cxk.png[/IMG]

Code:
Please append a correct "root=" boot option: here are the available partitions:
0b00                       1048575  sr0
driver: sr

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0 0)


What it looks like to me is that it cannot find the drive. Because I see it lists the cdrom under that first message about appending a correct root=

I compiled my SATA drivers into the kernel (no modules).
[IMG]https://i1365.photobucket.com/albums/r758/hiphophe/gentoo/gentoo-kernel-sata-intel_zpslwcgm04b.png[/IMG]


Background Info:

This a 64-bit install using stage3 multilib
I am using VMWare Workstation and this is a Gentoo virtual machine.
I am using MBR (not GPT) - see /etc/fstab screenshot below
I did not create an initram disk
I did not create a /boot partition
I did not use genkernel - I used make menuconfig to manually compile the kernel
I am using Grub and used grub-mkconfig to generate grub.cfg


blkid:
[IMG]https://i1365.photobucket.com/albums/r758/hiphophe/gentoo/01-gentoo-blkid_zpsfcnq26mk.png[/IMG]

lspci:
[IMG]https://i1365.photobucket.com/albums/r758/hiphophe/gentoo/01-gentoo-blkid_zpsfcnq26mk.png[/IMG]

fstab:
[IMG]https://i1365.photobucket.com/albums/r758/hiphophe/gentoo/01-gentoo-fstab3_zpsv8njcnht.png[/IMG]

grub.cfg (1 of 2)
[IMG]https://i1365.photobucket.com/albums/r758/hiphophe/gentoo/01-gentoo-grub-cfg1_zpsu3gd1o8o.png[/IMG]

grub.cfg (2 of 2)
[IMG]https://i1365.photobucket.com/albums/r758/hiphophe/gentoo/01-gentoo-grub-cfg2_zpsnok3cgxv.png[/IMG]

lsmod:
[IMG]https://i1365.photobucket.com/albums/r758/hiphophe/gentoo/01-gentoo-lsmod_zpsxmp04vhj.png[/IMG]

Let me know if any more information is needed.

Any help or suggestions would be appreciated.

Thank you !!


Last edited by sbz on Thu Apr 02, 2020 3:48 pm; edited 2 times in total
Back to top
View user's profile Send private message
sbz
n00b
n00b


Joined: 02 Apr 2020
Posts: 5

PostPosted: Thu Apr 02, 2020 1:26 am    Post subject: Reply with quote

I found some Intel SATA drivers under the section "ATA/ATAPI/MFM/RLL support" that was labeled DEPRECATED on the kernel's menuconfig
[IMG]https://i1365.photobucket.com/albums/r758/hiphophe/gentoo/02-gentoo-kernel-sata-deprecated-intel_zpsfn7bbmn8.png[/IMG]

I added them and recompiled my kernel and now I have a slightly different error message on boot (it doesn't even list the cdrom as an available partition anymore)

[IMG]https://i1365.photobucket.com/albums/r758/hiphophe/gentoo/000-gentoo-boot-kernel-panic-cannot-mount-root-fs3_zps3yhjqylc.png[/IMG]

Code:
VFS:  Cannot open root device "sda1" or unknown-block(0,0):  error -6
Please append a correct "root=" boot option: here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0 0)



:?:
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7653
Location: Saint Amant, Acadiana

PostPosted: Thu Apr 02, 2020 10:37 am    Post subject: Reply with quote

Don't reply to your own post, your thread is kicked out from zero-reply pool and the exposure is reduced.

What HDD controller is emulated by VMWare? You need to enable matching driver in your kernel. Do not enable deprecated IDE drivers, they are deprecated and can even cause conflicts.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
sbz
n00b
n00b


Joined: 02 Apr 2020
Posts: 5

PostPosted: Thu Apr 02, 2020 1:38 pm    Post subject: Reply with quote

Hello Jaglover - thank for replying.

I figured it would be too confusing to edit the original post with the new updates. Sorry about that - now I know.

I only tried the deprecated route after things didn't work out initially.
I have reverted those changes now.

As far as HDD controller when I do an lspci I have the following:
Code:

IDE interface:   Intel Corporation 82371aB/EB/MB PIIX4 IDE
SCSI storage controller:  Broadcom / LSI 53c1030 PCI-X Fusion-MPT Dual Ultra329 SCSI (rev 01)


I have a screenshot of this of above.

I found the Intel PIIX4 drivers and enabled them to compile to kernel.
I when ahead and enabled what I saw regarding Broadcom, LSI and Fusion-MPT as well.

However I am still getting the same error on boot.

Maybe lspci is the wrong tool?
I am running this command from the livecd after mounting /dev/sda1 and chrooting into the new system.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7653
Location: Saint Amant, Acadiana

PostPosted: Thu Apr 02, 2020 1:50 pm    Post subject: Reply with quote

I have no VMWare experience, but I think the virtual IDE interface is for virtual optical drive. Leaving SCSI controller for hard drive. Make sure you have all SCSI related options enabled in kernel, Gentoo has wgetpaste utility, you can use it to pastebin your kernel config for us to look at.

Edit: I'm sure we have threads here about VMWare guest setup. Try searching forums.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
sbz
n00b
n00b


Joined: 02 Apr 2020
Posts: 5

PostPosted: Thu Apr 02, 2020 2:24 pm    Post subject: Reply with quote

I finally got it to boot.

I think it was related to the Fusion-MPT device drivers.
I had initially enabled it on top level - but had to enter its submenu and enable the the device drivers in there.

I can send a screenshot later.

This is awesome, I'm excited to finally get here !

Thanks for your help.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7653
Location: Saint Amant, Acadiana

PostPosted: Thu Apr 02, 2020 2:32 pm    Post subject: Reply with quote

Good job. You can edit your initial post and add [Solved] to the subject.

FYI, images are discouraged here, for several good reasons. Copy/paste from terminal or use wgetpaste to post logs.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
sbz
n00b
n00b


Joined: 02 Apr 2020
Posts: 5

PostPosted: Thu Apr 02, 2020 3:47 pm    Post subject: Reply with quote

I can understand why images are discouraged.
I edited original post as solved.
I will be revisiting later to post configs and files.

Thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum