Gentoo Archives: gentoo-user

From: "João Miguel" <jmcf125@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Root device as UUID not properly detected
Date: Tue, 06 Oct 2015 16:08:36
Message-Id: 20151006155925.GC2629@jmcf125-Acer-Arch.home
1 Hello all,
3 I have decided to make a pen drive with Gentoo Linux installed, to have
4 a permanent pocket installation I can use in any computer as if it were
5 my own. The Gentoo Wiki guided me very well through it.
7 The problem I'm having only appears when I try to boot the pen drive
8 physically. That is, if I use a VM as such:
10 $ qemu-system-i386 -hda /dev/sdb -enable-kvm -m 2G
12 I have no error messages displayed. However, if I try to boot it from a
13 real PC, I get an error message alike "Could not find the root block
14 device in UUID=...". Now what is weird is this: in some PCs, if I click
15 Enter to try and use the same device, the system boots normally, or if I
16 drop to the shell, I can do blkid and see the root partition (usually
17 sdb4 or sdc4). But in at least one PC, the root device is not detected.
18 The same message appears even if I try for minutes. If I manually enter
19 the UUID or partition, it doesn't work either. It shows "Could not find
20 the root block device in ." (like in this question
23 The command I used to make the kernel and initram was
24 # genkernel --install --disklabel all
25 as I need basic support for any hardware.
27 I also found,
28 I expect the --disklabel option to help but the results are the same.
30 I use both UUIDs in /etc/fstab and /boot/syslinux/syslinux.cfg (tried
31 setting real_root and rootfstype besides root, no difference).
33 What sense does this problem make?! The BIOS sees the pen, syslinux
34 boots it using the UUID, why does the system suddenly forget where the
35 pen is? Why does it have different behaviours in different computers,
36 and no problem as a VM? Is this a problem with the initrd, or with mdev?
37 I had a pen like this with Arch Linux and it ran just fine, maybe it was
38 because it used udev instead?
40 I hope you can help me, it's the 1st time I try Gentoo and it was going
41 so well! Thank you in advance,
43 João Miguel


Subject Author
Re: [gentoo-user] Root device as UUID not properly detected Philip Webb <purslow@××××××××.net>