Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Could not find the root block device in UUID
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
skeletor
n00b
n00b


Joined: 05 Apr 2018
Posts: 6

PostPosted: Thu Apr 05, 2018 9:11 am    Post subject: [SOLVED] Could not find the root block device in UUID Reply with quote

Hi there,

I recently acquired a new root server and tried to install gentoo by following the Gentoo installation manual.

However, after reboot, I get the error message "Could not find the root block device in UUID=9c3e84b4..." which happens to be /dev/sda4, my ext4 fs root partition.

I used genkernel to compile my kernel (genkernel --all) along with GRUB2 and followed the manual as closely as possible.

My fstab:

Code:
/dev/sda2   /boot        ext2    defaults,noatime     0 2
/dev/sda3   none         swap    sw                   0 0
/dev/sda4   /            ext4    noatime,discard      0 1


I also checked lspci from live cd to get an idea what drivers are needed:

Code:
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma / Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma / Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma / Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus logic GD5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio SCSI
00:05.0 Unclassified device [00ff]: Red Hat, Inc Virtio memory balloon


Did I miss something while following the manual or are special settings needed due to the virtualized hardware?


Last edited by skeletor on Sun Apr 08, 2018 5:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
fturco
l33t
l33t


Joined: 08 Dec 2010
Posts: 628
Location: Italy

PostPosted: Thu Apr 05, 2018 12:03 pm    Post subject: Reply with quote

Please post the output of:

Code:
lsblk -f


We need to be sure the specified UUID is correct.

Also, please check if support for the ext4 filesystem has been enabled in the kernel as built-in, not as a module.

Edit: I forgot to say one important thing... Welcome to the Gentoo forums! :)
Back to top
View user's profile Send private message
skeletor
n00b
n00b


Joined: 05 Apr 2018
Posts: 6

PostPosted: Thu Apr 05, 2018 1:00 pm    Post subject: Reply with quote

Here is the output of lsblk -f, the UUID for sda4 is matching the one in the error message:

Code:
NAME         FSTYPE    LABEL              UUID                                     MOUNTPOINT
loop0        squashfs
sda
sda1
sda2         ext2                         bee2c808-e362-47d9-afa1-f84a87a2e603     /boot
sda3         swap                         93be7a25-4a66-4722-9cb4-a9c68a33f8d7
sda4         ext4                         9c3e84b4-06c2-4d18-88f0-2d7f738f18e7     /
sr0          iso9660 Gentoo Linux amd64   20170504 2017-05-04-08-06-36-81


Thank you for the warm welcome, but Ive been active here in the forums some years ago but lost my account.. :(
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Thu Apr 05, 2018 1:43 pm    Post subject: Reply with quote

kernel always list drives/partitions it "see" after the error message "Coudn't find"...

if you don't see kernel offering you that list, then kernel cannot see any disks/partiions, which mean you lack proper support for the controller.
lspci -k is your friend to find the driver name to use
Back to top
View user's profile Send private message
skeletor
n00b
n00b


Joined: 05 Apr 2018
Posts: 6

PostPosted: Thu Apr 05, 2018 9:18 pm    Post subject: Reply with quote

Ok, lspci -k returned:

Code:
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
Subsystem: Red Hat, Inc Qemu virtual machine
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma / Triton II]
Subsystem: Red Hat, Inc Qemu virtual machine
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma / Triton II]
Kernel driver in use: ata_piix
Kernel modules: ata_piix, pata_acpi, ata generic
Subsystem: Red Hat, Inc Qemu virtual machine
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma / Triton II]
Subsystem: Red Hat, Inc Qemu virtual machine
Kernel driver in use: uhci_hcd
Kernel modules: uhci_hcd
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
Subsystem: Red Hat, Inc Qemu virtual machine
00:02.0 VGA compatible controller: Cirrus logic GD5446
Subsystem: Red Hat, Inc Qemu virtual machine
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
Subsystem: Red Hat, Inc Qemu virtual machine
Kernel driver in use: virtio-pci
Kernel modules: virtio_pci
00:04.0 SCSI storage controller: Red Hat, Inc Virtio SCSI
Subsystem: Red Hat, Inc Qemu virtual machine
Kernel driver in use: virtio-pci
Kernel modules: virtio_pci
00:05.0 Unclassified device [00ff]: Red Hat, Inc Virtio memory balloon
Subsystem: Red Hat, Inc Qemu virtual machine
Kernel driver in use: virtio-pci
Kernel modules: virtio_pci


I tried

Code:
genkernel --menuconfig all


and ensured that the drivers are present and compiled into the kernel (not modules), but the box still won't start yielding the same error message :(
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Thu Apr 05, 2018 9:22 pm    Post subject: Reply with quote

Try using PARTUUID instead.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
djentoo
n00b
n00b


Joined: 17 Oct 2017
Posts: 37

PostPosted: Thu Apr 05, 2018 9:38 pm    Post subject: Reply with quote

What specific boot image did you use? This could cause some problems in the installation process that could lead to these kinds of problems. If every other option fails, try wiping it and installing with SystemRescueCd.
Back to top
View user's profile Send private message
skeletor
n00b
n00b


Joined: 05 Apr 2018
Posts: 6

PostPosted: Thu Apr 05, 2018 10:51 pm    Post subject: Reply with quote

I used a Gentoo 20170504 image my hoster is providing.
Back to top
View user's profile Send private message
djentoo
n00b
n00b


Joined: 17 Oct 2017
Posts: 37

PostPosted: Fri Apr 06, 2018 12:37 am    Post subject: Reply with quote

skeletor wrote:
I used a Gentoo 20170504 image my hoster is providing.


So you're using a minimal ISO with EFI - this is prone to causing trouble. I have the scars to prove it! Try this instead:

http://www.system-rescue-cd.org/

The problem stems from needing to boot EFI for firmware for the bootloader. There are ways around it, but it's just easier to use another disc image.

I think you should be able to pickup from the firmware step in the handbook and carry forward to the Grub2 installation.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Fri Apr 06, 2018 1:45 am    Post subject: Reply with quote

Cool down now. There is Gentoo installed, it is just the kernel which can't find the root. No need to reinstall. I'm not familiar with genkernel, never used it. Thus can't tell what needs to be done to make it use filesystem UUID. That's why I suggested PARTUUID. A suggestion, as I see, wasn't appreciated.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1048
Location: Massachusetts USA

PostPosted: Fri Apr 06, 2018 1:55 am    Post subject: Reply with quote

Are you using the --disklabel option with genkernel?
Back to top
View user's profile Send private message
skeletor
n00b
n00b


Joined: 05 Apr 2018
Posts: 6

PostPosted: Fri Apr 06, 2018 7:10 am    Post subject: Reply with quote

Jaglover, pls excuse that I didn't try PARTUUID already, but since Im setting up my box while working on a software dev project, Im trying the hints I already have some idea on how to do it first.

If anything else fails, Ill try the things I don't know, and your PARTUUID suggestion is top of the list ;)

Currently, genkernel is compiling with the --disklabel option given.

I will also call the server hosting company this morning and ask if there are known issues with installing Gentoo on their boxes.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Apr 06, 2018 7:41 pm    Post subject: Reply with quote

skeletor,

The kernel understands PARTUUID without and userspace tools in an initrd.
UUID for root= requires mount in an initrd. Genkernel will have done that for you.

You have two choices for your root filesystem
Code:
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma / Triton II]
00:04.0 SCSI storage controller: Red Hat, Inc Virtio SCSI


Genkernel will have included support for ata_piix, as its still fairly popular.
It may not include virtio-pci though, as that's only useful inside a virtual machine.
Which device hosts your root filesystem?
_________________
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
skeletor
n00b
n00b


Joined: 05 Apr 2018
Posts: 6

PostPosted: Sat Apr 07, 2018 11:09 am    Post subject: Reply with quote

I finally managed to get the kernel to boot my /dev/sda4 root partition, NeddySeagoons question pointed me in the right direction.

I enabled scsi, ata_piix and later on virtio, but I missed
Code:
Device Drivers->SCSI Device Support->SCSI-low-level-drivers->virtio-scsi support

(which was only compiled as a module).

The system is now booting and this topic is solved, many thanks to all helping hands here :D

FINALLY BACK INTO OFFICE :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