1 |
Hello all, |
2 |
|
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. |
6 |
|
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: |
9 |
|
10 |
$ qemu-system-i386 -hda /dev/sdb -enable-kvm -m 2G |
11 |
|
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 |
21 |
https://forums.gentoo.org/viewtopic-t-971416.html) |
22 |
|
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. |
26 |
|
27 |
I also found https://forums.gentoo.org/viewtopic-t-701116-start-0.html, |
28 |
I expect the --disklabel option to help but the results are the same. |
29 |
|
30 |
I use both UUIDs in /etc/fstab and /boot/syslinux/syslinux.cfg (tried |
31 |
setting real_root and rootfstype besides root, no difference). |
32 |
|
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? |
39 |
|
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, |
42 |
|
43 |
João Miguel |