Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
initramfs does not find the root block device in .
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
xombael
n00b
n00b


Joined: 07 Oct 2016
Posts: 6
Location: Germany

PostPosted: Fri Oct 07, 2016 10:54 pm    Post subject: initramfs does not find the root block device in . Reply with quote

hello gentoo community!

on a freshly installed system i encountered a bug regarding the initramfs boot mechanism.
the initramfs img was build via 'root #genkernel --install initramfs' (seperate file/not emerged)

after selecting Gentoo in Grub2 it starts booting and after loading all necessary kernel modules the following occurs:
Code:

>> Determining root device ...
!! Could not find the root block device in .
!! Please specify another value or:
!! - press Enter for the same
!! - type "shell" for a shell
!! - type "q" to skip...


!! booting /root is possible by entering '/dev/sda4' !!
(samsung evo 850 ssd 120gb, gpt, bios, grub2, manually build kernel, kde/plasma & auto dhcp configured inside the genkernel auto generated initramfs)


so specifying another value to boot gentoo - partition: sda4 - superuser

fdisk -l
Code:

/dev/sda1   2048        8191         6144          3M       BIOS boot
/dev/sda2   8192        258047      249856      122M    Linux File System
/dev/sda3   258047     8288255    8030208    3,8G     Linux File System
/dev/sda4   8288256   68524031   60235776  28,7G   Linux File System
 


blkid shows types: sda2=ext2, sda4=ext4, sda3=swap, sda1=none

/etc/fstab (located on partition: sda4)
Code:

/dev/sda2   /boot            ext2     defaults,noatime      0 2
/dev/sda4   /                  ext4     noatime,discard       0 1
/dev/sda3   none            swap     sw,discard              0 0
/dev/cdrom /mnt/cdrom  auto      noauto,user            0 0


ls
folders: bin,boot,dev,etc,home,lib,lib32,lib64,ment,opt,proc,root,run,sbin,sys,tmp,usr,var

fstab - sda2 to sda4
ls /boot
files: config-4.4.21-gentoo, initramfs-genkernel-x86_64-4.4.21-gentoo, System.map-4.4.21-gentoo, vmlinuz-4.4.21-gentoo
folders: grub

questions:
how is it possible to specify the value '/dev/sda4' into initramfs? (want to maintain current system with seperate linux boot partition)
rm / rebuilding 'root #genkernel --install initramfs' does not work
which genkernel parameter should be used to achieve that?

is there another approach to fix the described issue?


Please answer with some explanation, so that i can really understand what went wrong.
Generally, i think the kernel & grub2 are just fine due to boot attemps & possible manual boot.
Thx for your answers!
Back to top
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 630

PostPosted: Sat Oct 08, 2016 12:39 am    Post subject: Reply with quote

I'm used to using genkernel-next, but I think genkernel is the same or similar in taking a '--real-root' argument. And I don't remember if grub2 is default install but I use grub2 (sys-boot/grub:2).

In /etc/default/grub, I have:

Code:
GRUB_CMDLINE_LINUX="rootfstype=ext4"


My commands are usually,

Code:
# genkernel --menuconfig --real-root=<devname> all
# grub-mkconfig -o /boot/grub/grub.cfg


HTH
Back to top
View user's profile Send private message
xombael
n00b
n00b


Joined: 07 Oct 2016
Posts: 6
Location: Germany

PostPosted: Sat Oct 08, 2016 12:56 am    Post subject: Reply with quote

thx for the fast reply!

as mentioned the bug was initramfs related

typed the following:
root # rm initramfs..
root # genkernel --install --real-root=/dev/sda4 initramfs

everything works fine now! what a nice forum, definetly great!

looking forward to dive deeper into gentoo now :wink:
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