Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Root device as UUID not properly detected
Date: Wed, 07 Oct 2015 10:18:10
Message-Id: 4419537.08q3Ys9htG@andromeda
In Reply to: Re: [gentoo-user] Root device as UUID not properly detected by "João Miguel"
1 On Tuesday, October 06, 2015 11:03:04 PM João Miguel wrote:
2 > > > > Possible causes:
3 > > > > 1. USB stick doesn't work as boot device
4 > >
5 > > Ok, so scratch that one.
6 >
7 > Okay, done.
8 >
9 > > > > 2. USB port is not supported by kernel
10 > > >
11 > > > I'm not sure what you mean. Is there any option I should enable for
12 > > > genkernel? I read on the Wiki page that
13 > >
14 > > It works with Arch, are you using the same kernel options now with Gentoo?
15 >
16 > Yeah, I tried many more here actually, with Arch I only need APPEND root=...
17 > (no rootfstype, ro, rw, rootdelay, etc.).
18
19 What about kernel config?
20
21 > > > > 3. You don't use root_delay as boot option
22 > > >
23 > > > If that's what I think it is, I tell syslinux to wait 5 seconds.
24 >
25 > (turns out it's not what I thought it was, though I did try root_delay, it
26 > is actually rootdelay...)
27 >
28 > > How do you tell it that?
29 >
30 > Here's my syslinux.cfg with more comments:
31 > PROMPT 1
32 > TIMEOUT 50 # <-- here
33
34 That timeout is for the prompt, eg. how long the bootloader waits.
35 It will not have any effect for the drivers in the kernel to finish detecting
36 the USB devices.
37
38 > DEFAULT gentoo
39 >
40 > LABEL gentoo
41 > LINUX ../kernel-genkernel-x86-4.0.5-gentoo
42 > INITRD ../initramfs-genkernel-x86-4.0.5-gentoo
43 > APPEND rootdelay=5 root=UUID="6fc386ff-8342-42a2-be02-51a6eccf8430"
44 > rootfstype=ext4 # ^^--- I added this just now because you said so,
45 > though in the last message I had root_delay # Neither of those has any
46 > effect (conditions 2 and 3 I told you about remain as they were) # (as I
47 > thought this has nthing to do with the bootloader)
48 > # pen (normalmente /dev/sdb4): UUID="6fc386ff-8342-42a2-be02-51a6eccf8430"
49 > TYPE="ext4" PARTLABEL="Root Gentoo GNU/Linux"
50 > PARTUUID="9c4f6479-9dd7-4a8f-86f2-f1320cc15aa5"
51
52 Hmm...
53 I see 2 different UUIDs in your comments.
54 Did you test with the PARTUUID value ("9c...") instead of the other one?
55
56 Also, I always ended up setting the rootdelay to 10 or higher. (It's in
57 seconds, not minutes)
58
59 > > I never used an initrd when building my own USB sticks.
60 >
61 > I don't know, I always used an initrd. Though I must say, that is the
62 > phase of starting the PC I understand the worst.
63
64 On the machines where I use an initrd, I write my own scripts as I find the
65 creators (genkernel, dracut) to not be intelligent enough.
66
67 > > I was talking about:
68 > > rootdelay= [KNL] Delay (in seconds) to pause before
69 > > attempting to
70 > >
71 > > mount the root filesystem
72 > >
73 > > (See the file "kernel-parameters.txt" in the kernel Documentation)
74 >
75 > (I'm guessing I'm not supposed to include this in the boot loader config...)
76
77 The "rootdelay=..." part needs to be added to the boot loader config.
78
79 --
80 Joost

Replies

Subject Author
Re: [gentoo-user] Root device as UUID not properly detected "João Miguel" <jmcf125@×××××××××××.org>
Re: [gentoo-user] Root device as UUID not properly detected "João Miguel" <jmcf125@×××××××××××.org>