Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Error: Block Device is Not a Valid Root Device
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
the_actuary
n00b
n00b


Joined: 04 Apr 2021
Posts: 48

PostPosted: Sun Apr 04, 2021 12:34 pm    Post subject: [Solved] Error: Block Device is Not a Valid Root Device Reply with quote

Greetings everyone,
This is my first gentoo install (in a virtual machine - gnome boxes). I've managed to complete the amd64 handbook steps (with genkernel + boot in legacy mode). However, when I boot, I get the error that the block device is not a valid root device. I tried adding "GRUB_DEVICE=/dev/vda2" & rerun mkconfig but that hasn't worked. I would really appreciate advise on this.

Boot Error:
https://i.ibb.co/HtkdmM8/Screenshot-from-2021-04-04-15-38-34.png

Partition Layout:
https://i.ibb.co/0cYrVJ1/Screenshot-from-2021-04-04-17-43-46.png

FSTAB:
https://i.ibb.co/9p4f1vP/Screenshot-from-2021-04-04-17-44-47.png

BLKID of Partition:
https://i.ibb.co/yVTY01n/Screenshot-from-2021-04-04-17-44-11.png


Last edited by the_actuary on Mon Apr 05, 2021 1:33 am; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Apr 04, 2021 12:46 pm    Post subject: Reply with quote

Hi
Missing kernel drivers
/etc/default/grub->
linux line ".....root=/dev/vda3 rootfstype=ext4.............."
Code:

emerge -av dracut
emerge -1av gentoo-kernel-bin
emerge --noreplace dist-kernel
grub-mkconfig -o /boot/grub/grub.cfg

Reboot
_________________
:)
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3339
Location: Rasi, Finland

PostPosted: Sun Apr 04, 2021 12:48 pm    Post subject: Reply with quote

Boot your system and enter the initramfs shell by typing "shell" when it prompts you.
Then run blkid and see what it returns.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
the_actuary
n00b
n00b


Joined: 04 Apr 2021
Posts: 48

PostPosted: Sun Apr 04, 2021 3:57 pm    Post subject: Reply with quote

alamahant wrote:
Hi
Missing kernel drivers
/etc/default/grub->
linux line ".....root=/dev/vda3 rootfstype=ext4.............."
Code:

emerge -av dracut
emerge -1av gentoo-kernel-bin
emerge --noreplace dist-kernel
grub-mkconfig -o /boot/grub/grub.cfg

Reboot


Thank you! Emerging the dist kernel worked. Need to read up on what kernel parameters to set for virtual machine.

Zucca wrote:
Boot your system and enter the initramfs shell by typing "shell" when it prompts you.
Then run blkid and see what it returns.


It just showed the ISO mount device and not the virtual machine hard disk.

Really appreciate both your help!
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