Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Could 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
XenonBlue
n00b
n00b


Joined: 23 Jan 2018
Posts: 2

PostPosted: Wed Jan 24, 2018 12:37 am    Post subject: Could not find the root block device in . Reply with quote

I get this error when trying to reboot into gentoo after initial install. When I type in /dev/sd4, where my root directory is, the boot begins again for a few seconds then the screen goes black, as in there's no output to my monitor and it goes to sleep. I am dual booting with Windows 10, I have full functionality of Windows 10 and rEFInd AFAIK. I'm thinking maybe the /boot is too small, but it's shared with Windows and I couldn't resize the partion in Windows so for fear of messing things up I avoided resizing it in parted.

my kernel: genkernel-x86_64-4.9.76-gentoo-r1

my boot manager: rEFInd

blkid from live cd
Code:
 /dev/loop0: TYPE="squashfs"
/dev/sda1: LABEL="System Reserved" UUID="68D66901D668D0BC" TYPE="ntfs" PARTUUID="b333679e-f8e7-11e7-8d36-f834415acbd8"
/dev/sda2: UUID="70D46E2BD46DF3AE" TYPE="ntfs" PARTUUID="b333679f-f8e7-11e7-8d36-f834415acbd8"
/dev/sda3: UUID="3AF8-ED0D" TYPE="vfat" PARTLABEL="boot" PARTUUID="b33367a0-f8e7-11e7-8d36-f834415acbd8"
/dev/sda4: UUID="0ac7c60d-d759-4458-81a1-8889228143c3" TYPE="ext4" PARTLABEL="rootfs" PARTUUID="e7eefd8c-4b43-4d90-be8a-4537a4417637"
/dev/sdb2: LABEL="Windows" UUID="9582FC9BC537D6EB" TYPE="ntfs" PARTUUID="4be60f19-4b56-4882-b12b-5ab1875ea998"
/dev/sdb3: UUID="08458f2c-555e-486c-a8f9-ca86acc110c0" TYPE="ext4" PARTLABEL="home" PARTUUID="8d5aa7ed-6b52-440c-aa40-1ba95d965031"
/dev/sdc1: UUID="2018-01-12-01-22-54-66" LABEL="Gentoo amd64 20180111T214502Z" TYPE="iso9660" PTUUID="4d948cef" PTTYPE="dos" PARTUUID="4d948cef-01"
/dev/sdd1: UUID="440B-0D8A" TYPE="vfat" PARTUUID="272452d7-01"
/dev/sdb1: PARTUUID="e2ced318-e278-4e70-ba70-fb958db7d95c"


fstab
Code:
PARTLABEL=boot      /boot      vfat      defaults   0 2
#UUID=58e72203-57d1-4497-81ad-97655bd56494      /      ext4      noatime      0 1
#LABEL=swap      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0
tmpfs         /tmp      tmpfs      rw,nosuid,noatime,nodev,size=8G,mode=1777   0 0
PARTLABEL=home      /home      ext4      noatime      0 2
PARTLABEL=rootfs      /      ext4      noatime,discard      0 1


EDIT:
Extra info:
parted -l : https://paste.pound-python.org/show/EoTqwN1AyBn3Ideshqbd/

lspci -knn : https://paste.pound-python.org/show/RgctLvz6cMMfjNL2ibNh/

kernel .config: https://paste.pound-python.org/show/m1TjUgv4QjvkzlwbiM4s/


Last edited by XenonBlue on Sat Jan 27, 2018 3:49 am; edited 2 times in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7498
Location: Goose Creek SC

PostPosted: Thu Jan 25, 2018 9:38 pm    Post subject: Reply with quote

The windows provided 100 MB EFI Systems Partition (ESP) has been more than adequate on several multiboot machines here.
Sounds like a kernel configuration problem.
Recommend:
boot the install media, preferably system rescue cd/usb, and mount the gentoo partitions
run:
lspci -k | wgetpaste -t
wgetpaste -t /mnt/gentoo/usr/src/linux/.config
parted -l | wgetpaste -t
post the url's returned and lets take a look.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41320
Location: 56N 3W

PostPosted: Thu Jan 25, 2018 9:44 pm    Post subject: Reply with quote

XenonBlue,

Welcome to Gentoo.

Code:
Could not find the root block device in .


That message contains a list of all the block devices the kernel can see.
In this case, none at all.

You have a piece or two missing from your kernel.
Please post your
Code:
lspci -knn
so we can see what hardware you have and tell how you made your kernel.
Put the kernel .config file onto a pastebin site and post a link to it.

Its far to big for a post.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
XenonBlue
n00b
n00b


Joined: 23 Jan 2018
Posts: 2

PostPosted: Sat Jan 27, 2018 3:48 am    Post subject: Reply with quote

parted -l : https://paste.pound-python.org/show/EoTqwN1AyBn3Ideshqbd/

lspci -knn : https://paste.pound-python.org/show/RgctLvz6cMMfjNL2ibNh/

kernel .config: https://paste.pound-python.org/show/m1TjUgv4QjvkzlwbiM4s/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7498
Location: Goose Creek SC

PostPosted: Sat Jan 27, 2018 5:31 am    Post subject: Reply with quote

Do you have an initramfs? If you do, it apparently is not being executed.
The genkernel configuration you posted has "CONFIG_SATA_AHCI=m". If there is no initramfs or if an existing initramfs is not executing the "Could not find the root block device in ." would be explained.
Graphics support section of the configuration: decide between proprietary (follow https://wiki.gentoo.org/wiki/NVidia/nvidia-drivers#Kernel ) or open source (follow https://wiki.gentoo.org/wiki/Nouveau )video drivers.
genkernel --menuconfig or cd /usr/src/linux; make menuconfig will provide the opportunity to edit the kernel configuration. Recommend using one or the other and editing the disk drivers and file systems required for booting to builtin instead of module. Then reconfigure the graphics support section to conform to the wiki for your choice of video driver. In the subsection " Frame buffer hardware drivers" the only choice that should be enabled is "[*] EFI-based Framebuffer Support". I've posted my nouveau graphics support configuration at https://paste.pound-python.org/show/T4mlXDQ635oZBVWqPapd/ .
Enable "<M> EFI Variable Support via sysfs " under "EFI (Extensible Firmware Interface) Support --->" which is under "Firmware Drivers --->"
Recommend enable "[*] Built-in kernel command line
(root=PARTLABEL=rootfs ro) Built-in kernel command string
[*] Built-in command line overrides boot loader arguments" under "Processor type and features --->"
After the configuration changes are made, ensure the boot partition is mounted, then allow genkernel to finish (if genkernel --menuconfig is used) or run "make && make modules_install && make install" (if genkernel is not used), rEFInd should find and run the EFI stub kernel in /boot.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41320
Location: 56N 3W

PostPosted: Sat Jan 27, 2018 12:43 pm    Post subject: Reply with quote

XenonBlue,

What DONAHUE said about initrds.

The kernel and optional initrd together mush be able to mount root.
If you choose to not use an initrd, the kernel binary as loaded from /boot has to mount root on its own.
That means all the the code to find and reed the root filesystem must be configured as <*>.

<m> means put the module in /lib/modules/ on the root filesystem, which can't be read until root is mounted.

How did you make your kernel and optional initrd?
What does your boot loader say about loading the kernel and initrd?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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